[JAVA-4897] Why does MongoClient assert "state should be open"? Created: 01/Mar/23  Updated: 27/Oct/23  Resolved: 07/Apr/23

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 4.9.0
Fix Version/s: None

Type: Question Priority: Unknown
Reporter: chaoyang jia Assignee: Jeffrey Yemin
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-03-01-21-01-34-139.png    

 Description   

 

我使用任何操作都会出现一个错误,我无法解决:java.lang.IllegalStateException: state should be: open
    at com.mongodb.assertions.Assertions.isTrue(Assertions.java:79) ~[mongodb-driver-core-4.4.2.jar:na]
    at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:166) ~[mongodb-driver-core-4.4.2.jar:na] 



 Comments   
Comment by PM Bot [ 07/Apr/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by PM Bot [ 09/Mar/23 ]

Hey j15030047216@163.com, We need additional details to investigate the problem. If this is still an issue for you, please provide the requested information.

Comment by Jeffrey Yemin [ 01/Mar/23 ]

Hi j15030047216@163.com 

It looks like the application is attempting to use a MongoClient instance that has been closed.  Please check for this possibility.

Generated at Thu Feb 08 09:03:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.