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

Spring JIRA | Stefan Ollinger | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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]

    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