java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main]

Spring JIRA | Stefan Ollinger | 6 years ago
  1. 0

    When using Transaction in view with the Scalate template engine and SpringSource tc Server Developer Edition v2.1 i get an exception when trying to fetch a 1:n property from inside the view. This occurs only if "Enable gathering of metrics" is enabled in the SpringSource Server configuration. When disabled, there is no exception. The issue seems to be related to this commit: http://git.springsource.org/spring-data/datastore-cross-store/commit/5379ba04a227621d0b6bee30b3fef2468249f0c2 This is the strack trace: java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main] at org.springframework.persistence.support.StateProvider.setUnderlyingState(StateProvider.java:13) at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.fromStateInternal(AbstractConstructorEntityInstantiator.java:46) at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.createEntityFromState(AbstractConstructorEntityInstantiator.java:22) at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:63) at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:1) at org.springframework.data.graph.neo4j.support.GraphDatabaseContext.createEntityFromState(GraphDatabaseContext.java:119) at org.springframework.data.graph.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor.createEntitySetFromRelationshipEndNodes(AbstractNodeRelationshipFieldAccessor.java:97) at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:72) at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:1) at org.springframework.data.graph.neo4j.fieldaccess.DefaultEntityStateAccessors.getValue(DefaultEntityStateAccessors.java:75) at org.springframework.data.graph.neo4j.fieldaccess.DetachableEntityStateAccessors.getValue(DetachableEntityStateAccessors.java:67) at test.domain.User.tracks_aroundBody69$advice(User.java:241) at test.domain.User.getTracks(User.java:196) at scalate.views.$_scalate_$user_show_scaml$.$_scalate_$render(user.show.scaml.scala:42) at scalate.views.$_scalate_$user_show_scaml.render(user.show.scaml.scala:75)

    Spring JIRA | 6 years ago | Stefan Ollinger
    java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main]
  2. 0

    When using Transaction in view with the Scalate template engine and SpringSource tc Server Developer Edition v2.1 i get an exception when trying to fetch a 1:n property from inside the view. This occurs only if "Enable gathering of metrics" is enabled in the SpringSource Server configuration. When disabled, there is no exception. The issue seems to be related to this commit: http://git.springsource.org/spring-data/datastore-cross-store/commit/5379ba04a227621d0b6bee30b3fef2468249f0c2 This is the strack trace: java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main] at org.springframework.persistence.support.StateProvider.setUnderlyingState(StateProvider.java:13) at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.fromStateInternal(AbstractConstructorEntityInstantiator.java:46) at org.springframework.persistence.support.AbstractConstructorEntityInstantiator.createEntityFromState(AbstractConstructorEntityInstantiator.java:22) at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:63) at org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:1) at org.springframework.data.graph.neo4j.support.GraphDatabaseContext.createEntityFromState(GraphDatabaseContext.java:119) at org.springframework.data.graph.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor.createEntitySetFromRelationshipEndNodes(AbstractNodeRelationshipFieldAccessor.java:97) at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:72) at org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:1) at org.springframework.data.graph.neo4j.fieldaccess.DefaultEntityStateAccessors.getValue(DefaultEntityStateAccessors.java:75) at org.springframework.data.graph.neo4j.fieldaccess.DetachableEntityStateAccessors.getValue(DetachableEntityStateAccessors.java:67) at test.domain.User.tracks_aroundBody69$advice(User.java:241) at test.domain.User.getTracks(User.java:196) at scalate.views.$_scalate_$user_show_scaml$.$_scalate_$render(user.show.scaml.scala:42) at scalate.views.$_scalate_$user_show_scaml.render(user.show.scaml.scala:75)

    Spring JIRA | 6 years ago | Stefan Ollinger
    java.lang.IllegalStateException: StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main]
  3. 0

    RxAndroid and RxBinding Must be called from the main thread on EditText

    Stack Overflow | 5 months ago | EGHDK
    java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to implement search feature with SearchView, Retrofit and RxJava (RxBindings)?

    Stack Overflow | 3 months ago | Dev
    java.lang.IllegalStateException: Must be called from the main thread. Was: Thread[RxIoScheduler-2,5,main]
  6. 0

    Untitled - FTB Paste

    feed-the-beast.com | 1 year ago
    java.lang.IllegalStateException: From thread Thread[Client thread,5,main]: Thread[Thread-7,5,main] already has the context current

    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

      StateHolder already contains state Node[4210] in thread Thread[tomcat-http--2,5,main]

      at org.springframework.persistence.support.StateProvider.setUnderlyingState()
    2. org.springframework.persistence
      AbstractConstructorEntityInstantiator.createEntityFromState
      1. org.springframework.persistence.support.StateProvider.setUnderlyingState(StateProvider.java:13)
      2. org.springframework.persistence.support.AbstractConstructorEntityInstantiator.fromStateInternal(AbstractConstructorEntityInstantiator.java:46)
      3. org.springframework.persistence.support.AbstractConstructorEntityInstantiator.createEntityFromState(AbstractConstructorEntityInstantiator.java:22)
      3 frames
    3. org.springframework.data
      DetachableEntityStateAccessors.getValue
      1. org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:63)
      2. org.springframework.data.graph.neo4j.support.node.PartialNeo4jEntityInstantiator.createEntityFromState(PartialNeo4jEntityInstantiator.java:1)
      3. org.springframework.data.graph.neo4j.support.GraphDatabaseContext.createEntityFromState(GraphDatabaseContext.java:119)
      4. org.springframework.data.graph.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor.createEntitySetFromRelationshipEndNodes(AbstractNodeRelationshipFieldAccessor.java:97)
      5. org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:72)
      6. org.springframework.data.graph.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory$OneToNRelationshipFieldAccessor.getValue(OneToNRelationshipFieldAccessorFactory.java:1)
      7. org.springframework.data.graph.neo4j.fieldaccess.DefaultEntityStateAccessors.getValue(DefaultEntityStateAccessors.java:75)
      8. org.springframework.data.graph.neo4j.fieldaccess.DetachableEntityStateAccessors.getValue(DetachableEntityStateAccessors.java:67)
      8 frames
    4. test.domain
      User.getTracks
      1. test.domain.User.tracks_aroundBody69$advice(User.java:241)
      2. test.domain.User.getTracks(User.java:196)
      2 frames
    5. scalate.views
      $_scalate_$user_show_scaml.render
      1. scalate.views.$_scalate_$user_show_scaml$.$_scalate_$render(user.show.scaml.scala:42)
      2. scalate.views.$_scalate_$user_show_scaml.render(user.show.scaml.scala:75)
      2 frames