java.lang.IllegalStateException: open

Spring JIRA | Sri | 2 years ago
  1. 0

    Very randomly calls to Spring repository fails from Thread, StackTrace below. Attached Java Classes {noformat} Exception in thread "Thread-2" java.lang.IllegalStateException: open at org.bson.util.Assertions.isTrue(Assertions.java:36) at com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:377) at com.mongodb.Mongo.isMongosConnection(Mongo.java:645) at com.mongodb.DBCollection.findOne(DBCollection.java:866) at com.mongodb.DBCollection.findOne(DBCollection.java:844) at com.mongodb.DBCollection.findOne(DBCollection.java:790) at org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1985) at org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1970) at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1744) at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTemplate.java:1562) at org.springframework.data.mongodb.core.MongoTemplate.findById(MongoTemplate.java:547) at org.springframework.data.mongodb.repository.support.SimpleMongoRepository.findOne(SimpleMongoRepository.java:100) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy18.findOne(Unknown Source) at com.test.SpringApp.executeInternal(SpringApp.java:59) at com.test.SpringApp.access$0(SpringApp.java:56) at com.test.SpringApp$1.run(SpringApp.java:69) at java.lang.Thread.run(Thread.java:745) {noformat} *Update 1* This issue could be related to [JAVA-1311|https://jira.mongodb.org/browse/JAVA-1311]

    Spring JIRA | 2 years ago | Sri
    java.lang.IllegalStateException: open
  2. 0

    Very randomly calls to Spring repository fails from Thread, StackTrace below. Attached Java Classes {noformat} Exception in thread "Thread-2" java.lang.IllegalStateException: open at org.bson.util.Assertions.isTrue(Assertions.java:36) at com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:377) at com.mongodb.Mongo.isMongosConnection(Mongo.java:645) at com.mongodb.DBCollection.findOne(DBCollection.java:866) at com.mongodb.DBCollection.findOne(DBCollection.java:844) at com.mongodb.DBCollection.findOne(DBCollection.java:790) at org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1985) at org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1970) at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1744) at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTemplate.java:1562) at org.springframework.data.mongodb.core.MongoTemplate.findById(MongoTemplate.java:547) at org.springframework.data.mongodb.repository.support.SimpleMongoRepository.findOne(SimpleMongoRepository.java:100) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy18.findOne(Unknown Source) at com.test.SpringApp.executeInternal(SpringApp.java:59) at com.test.SpringApp.access$0(SpringApp.java:56) at com.test.SpringApp$1.run(SpringApp.java:69) at java.lang.Thread.run(Thread.java:745) {noformat} *Update 1* This issue could be related to [JAVA-1311|https://jira.mongodb.org/browse/JAVA-1311]

    Spring JIRA | 2 years ago | Sri
    java.lang.IllegalStateException: open
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Mongo org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: Failed to load document with 0:/

    Stack Overflow | 2 years ago | unknown
    org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: Failed to load document with 0:/

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      open

      at org.bson.util.Assertions.isTrue()
    2. MongoDB Java Driver
      DBCollection.findOne
      1. org.bson.util.Assertions.isTrue(Assertions.java:36)
      2. com.mongodb.DBTCPConnector.isMongosConnection(DBTCPConnector.java:377)
      3. com.mongodb.Mongo.isMongosConnection(Mongo.java:645)
      4. com.mongodb.DBCollection.findOne(DBCollection.java:866)
      5. com.mongodb.DBCollection.findOne(DBCollection.java:844)
      6. com.mongodb.DBCollection.findOne(DBCollection.java:790)
      6 frames
    3. Spring Data MongoDB - Core
      SimpleMongoRepository.findOne
      1. org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1985)
      2. org.springframework.data.mongodb.core.MongoTemplate$FindOneCallback.doInCollection(MongoTemplate.java:1970)
      3. org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1744)
      4. org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTemplate.java:1562)
      5. org.springframework.data.mongodb.core.MongoTemplate.findById(MongoTemplate.java:547)
      6. org.springframework.data.mongodb.repository.support.SimpleMongoRepository.findOne(SimpleMongoRepository.java:100)
      6 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    5. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:405)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:390)
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:344)
      3 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    7. com.sun.proxy
      $Proxy18.findOne
      1. com.sun.proxy.$Proxy18.findOne(Unknown Source)
      1 frame
    8. com.test
      SpringApp$1.run
      1. com.test.SpringApp.executeInternal(SpringApp.java:59)
      2. com.test.SpringApp.access$0(SpringApp.java:56)
      3. com.test.SpringApp$1.run(SpringApp.java:69)
      3 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame