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


Solutions on the web

Solution icon of web
via JIRA by Nick Scavelli, 1 year ago
Attempted to decrement the reference count below 0

Solution icon of web
via JIRA by Nick Scavelli, 1 year ago
Attempted to decrement the reference count below 0

Solution icon of web
via JIRA by Jackson Davis, 6 months ago
Attempted to decrement the reference count below 0

Solution icon of web
via JIRA by Jeff Yemin, 1 year ago
Attempted to decrement the reference count below 0

Solution icon of web
via JIRA by Jeff Yemin, 1 year ago
Attempted to decrement the reference count below 0

Stack trace

java.lang.IllegalStateException: Attempted to decrement the reference count below 0
	at com.mongodb.binding.AbstractReferenceCounted.release(AbstractReferenceCounted.java:23)
	at com.mongodb.binding.AsyncClusterBinding$AsyncClusterBindingConnectionSource.release(AsyncClusterBinding.java:111)
	at com.mongodb.operation.OperationHelper$3$1.onResult(OperationHelper.java:219)
	at com.mongodb.async.SingleResultFuture.init(SingleResultFuture.java:102)
	at com.mongodb.operation.FindOperation$2$1.onResult(FindOperation.java:474)
	at com.mongodb.operation.FindOperation$2$1.onResult(FindOperation.java:468)
	at com.mongodb.async.SingleResultFuture.init(SingleResultFuture.java:102)
	at com.mongodb.connection.SingleResultFutureCallback.onResult(SingleResultFutureCallback.java:32)
	at com.mongodb.connection.QueryResultCallback.callCallback(QueryResultCallback.java:73)
	at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:49)
	at com.mongodb.connection.ResponseCallback.onResult(ResponseCallback.java:24)
	at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:131)
	at com.mongodb.connection.UsageTrackingInternalConnection$3.onResult(UsageTrackingInternalConnection.java:127)
	at com.mongodb.connection.InternalStreamConnection.processPendingResults(InternalStreamConnection.java:525)
	at com.mongodb.connection.InternalStreamConnection.processPendingReads(InternalStreamConnection.java:410)
	at com.mongodb.connection.InternalStreamConnection.access$1200(InternalStreamConnection.java:56)
	at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:445)
	at com.mongodb.connection.InternalStreamConnection$3.onResult(InternalStreamConnection.java:435)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.