java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Stefan Ollinger,
  • 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)
    via by Stefan Ollinger,
    • 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)
    No Bugmate found.