Giter Club home page Giter Club logo

Comments (4)

mozinrat avatar mozinrat commented on September 28, 2024

Exception in thread "Thread-3" Exception in thread "Thread-4" com.squareup.tape.FileException: Failed to peek.
at com.squareup.tape.FileObjectQueue.peek(FileObjectQueue.java:59)
at com.example.FileQueueConsumer.run(FileQueueConsumer.java:19)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.StreamCorruptedException: invalid type code: AC
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1381)
at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:463)
at com.squareup.tape.SerializedConverter.deserialize(SerializedConverter.java:27)
at com.squareup.tape.SerializedConverter.from(SerializedConverter.java:37)
at com.squareup.tape.SerializedConverter.from(SerializedConverter.java:20)
at com.squareup.tape.FileObjectQueue.peek(FileObjectQueue.java:57)
... 3 more
Here is what I did?
Create producer1, producer2,consumer1,consumer2 all on same FileObjectQueue. I believe there is some issue in multithreading handling.

Looks relevant to this
http://stackoverflow.com/questions/3182240/java-io-streamcorruptedexception-invalid-type-code-ac

from tape.

f2prateek avatar f2prateek commented on September 28, 2024

FileObjectQueue is not thread safe.

from tape.

mozinrat avatar mozinrat commented on September 28, 2024

Is there a threadsafe file based queue in the current api?

from tape.

JakeWharton avatar JakeWharton commented on September 28, 2024

No

On Sat, Aug 6, 2016, 9:51 AM Rohit Verma [email protected] wrote:

Is there a threadsafe file based queue in the current api?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#87 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEEEQuG8KCB5YO4S626x0UUjG5YRgbfks5qdJFJgaJpZM4JeJwv
.

from tape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.