Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction in view state exception [DATAGRAPH-37] #604

Closed
spring-projects-issues opened this issue Jan 23, 2011 · 1 comment
Closed

Transaction in view state exception [DATAGRAPH-37] #604

spring-projects-issues opened this issue Jan 23, 2011 · 1 comment
Labels
in: core Issues in core support type: task A general task
Milestone

Comments

@spring-projects-issues
Copy link

Stefan Ollinger opened DATAGRAPH-37 and commented

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)


Affects: 1.0 M3

This issue is a sub-task of DATAGRAPH-45

@spring-projects-issues
Copy link
Author

Michael Hunger commented

Closed in current build-snapshot of spring-data-commons.

Thanks for pointing it out

@spring-projects-issues spring-projects-issues added in: core Issues in core support type: task A general task labels Dec 31, 2020
@spring-projects-issues spring-projects-issues added this to the 1.0 M3 milestone Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant