java.lang.IllegalStateException: Attempted to decrement the reference count below 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Jeff Yemin, 1 year ago
Attempted to decrement the reference count below 0
via JIRA by Jeff Yemin, 1 year ago
Attempted to decrement the reference count below 0
via JIRA by Nick Scavelli, 1 year ago
Attempted to decrement the reference count below 0
via JIRA by Nick Scavelli, 1 year ago
Attempted to decrement the reference count below 0
via JIRA by Jackson Davis, 7 months ago
Attempted to decrement the reference count below 0
java.lang.IllegalStateException: Attempted to decrement the reference count below 0
at com.mongodb.binding.AbstractReferenceCounted.release(AbstractReferenceCounted.java:39)
at com.mongodb.binding.AsyncClusterBinding$AsyncClusterBindingConnectionSource.release(AsyncClusterBinding.java:113)
at com.mongodb.operation.AsyncQueryBatchCursor.killCursor(AsyncQueryBatchCursor.java:154)
at com.mongodb.operation.AsyncQueryBatchCursor.close(AsyncQueryBatchCursor.java:79)
at com.mongodb.operation.AsyncQueryBatchCursor.next(AsyncQueryBatchCursor.java:93)
at com.mongodb.async.client.OperationIterable.loopCursor(OperationIterable.java:130)
at com.mongodb.async.client.OperationIterable.access$000(OperationIterable.java:30)
at com.mongodb.async.client.OperationIterable$4.onResult(OperationIterable.java:141)
at com.mongodb.async.client.OperationIterable$4.onResult(OperationIterable.java:130)
at com.mongodb.operation.AsyncQueryBatchCursor.next(AsyncQueryBatchCursor.java:90)
at com.mongodb.async.client.OperationIterable.loopCursor(OperationIterable.java:130)
at com.mongodb.async.client.OperationIterable.access$000(OperationIterable.java:30)
at com.mongodb.async.client.OperationIterable$1.onResult(OperationIterable.java:51)
at com.mongodb.async.client.OperationIterable$1.onResult(OperationIterable.java:45)
at com.mongodb.async.client.MongoClientImpl$2$1.onResult(MongoClientImpl.java:129)
at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
at com.mongodb.operation.OperationHelper$ConnectionReleasingWrappedCallback.onResult(OperationHelper.java:140)
at com.mongodb.operation.FindOperation$2$1.onResult(FindOperation.java:433)
at com.mongodb.operation.FindOperation$2$1.onResult(FindOperation.java:427)
at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor$1.onResult(DefaultServer.java:171)
at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
at com.mongodb.connection.QueryResultCallback.callCallback(QueryResultCallback.java:64)
at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:48)
at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:23)
at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:446)
at com.mongodb.connection.DefaultConnectionPool$PooledConnection$2.onResult(DefaultConnectionPool.java:440)
at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:127)
at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:123)
at com.mongodb.internal.async.ErrorHandlingResultCallback.onResult(ErrorHandlingResultCallback.java:53)
at com.mongodb.connection.InternalStreamConnection.executeCallbackAndReceiveResponse(InternalStreamConnection.java:375)
at com.mongodb.connection.InternalStreamConnection.access$1700(InternalStreamConnection.java:65)
at com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:417)
at com.mongodb.connection.InternalStreamConnection$ResponseBuffersCallback.onResult(InternalStreamConnection.java:386)
at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.onSuccess(InternalStreamConnection.java:555)
at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback.access$2200(InternalStreamConnection.java:514)
at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:577)
at com.mongodb.connection.InternalStreamConnection$ResponseHeaderCallback$ResponseBodyCallback.onResult(InternalStreamConnection.java:561)
at com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:444)
at com.mongodb.connection.InternalStreamConnection$3.completed(InternalStreamConnection.java:441)
at com.mongodb.connection.AsynchronousSocketChannelStream$BasicCompletionHandler.completed(AsynchronousSocketChannelStream.java:217)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:281)
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.completed(WindowsAsynchronousSocketChannelImpl.java:579)
at sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:397)
at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 8 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.