IllegalStateException: Queue full
See original GitHub issuethis is on a rather big multiproject sbt build
JNA: Callback io.methvin.watchservice.MacOSXListeningWatchService$MacOSXListeningCallback@4778113f threw the following exception:
java.lang.IllegalStateException: Queue full
at java.util.AbstractQueue.add(AbstractQueue.java:98)
at java.util.concurrent.ArrayBlockingQueue.add(ArrayBlockingQueue.java:312)
at io.methvin.watchservice.AbstractWatchKey.signalEvent(AbstractWatchKey.java:156)
at io.methvin.watchservice.MacOSXListeningWatchService$MacOSXListeningCallback.invoke(MacOSXListeningWatchService.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:485)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:515)
at com.sun.jna.Native.invokeVoid(Native Method)
at com.sun.jna.Function.invoke(Function.java:374)
at com.sun.jna.Function.invoke(Function.java:323)
at com.sun.jna.Library$Handler.invoke(Library.java:236)
at com.sun.proxy.$Proxy11.CFRunLoopRun(Unknown Source)
at io.methvin.watchservice.MacOSXListeningWatchService$CFRunLoopThread.run(MacOSXListeningWatchService.java:105)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Queue Full, On depth of the Blocking Queue, clarification ...
When populating the queue from the contents of the file, depth does not seem to ever increase, as elements are not added in...
Read more >java.lang.IllegalStateException: Queue full - Ubiquiti Community
IllegalStateException : Queue full for each inform. The menagement interface also become unresponsive and eventually timeout. Restarting the sevice fix the issue ...
Read more >java.lang.IllegalStateException: Queue full · Issue #50 - GitHub
java.lang.IllegalStateException: Queue full at java.util.AbstractQueue.add(AbstractQueue.java:98) at com.github.brainlag.nsq.
Read more >Fatal Exception: java.lang.IllegalStateException "Queue full"
Smack automatically asks for a SM ack once the unacknoledgedStanzas queues has reached 80% of its maximum capacity. If you see this exception, ......
Read more >[KAFKA-85] java.lang.IllegalStateException: Queue full is ...
All other settings use the default. org.apache.kafka.connect.errors.ConnectException: java.lang.IllegalStateException: Queue full\n\tat com.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Okay I see the bug. We should be calling
queue.offerinstead ofqueue.add. If the offer is rejected we can send anOVERFLOWevent. It also probably wouldn’t hurt to make the queue size configurable.It is https://github.com/swoval/MacOSXWatchService. Looks like the author has copied the code from this project and made some changes.