Hi Michael thanks a lot for your hints, below test which expose the problem. It seems as follows: after deserialization entity state is null. Maybe this is acceptable behavior - meaning entities are not supposed to be serializable, or it is an issue which should be fixed? I added this test case to WorldRepositoryTest in spring-data-neo4j-hello-worlds-aspects project:
@Test public void testSerialization() throws Exception { World myWorld = new World( "mine", 0 ).persist(); EntityState<Node> entityState = myWorld.getEntityState(); assertNotNull(entityState); Iterable<World> foundWorlds = galaxy.findAll(); World mine = foundWorlds.iterator().next(); byte[] serializedWorld = SerializationUtils.serialize(mine); World deserializedWorld = (World) SerializationUtils.deserialize(serializedWorld); assertNotNull(deserializedWorld); EntityState<Node> deserializedEntityState = deserializedWorld.getEntityState(); assertNotNull(deserializedEntityState); //Test fails at this assertion template.save(deserializedWorld);//This invocation leads to NPE since entityState is null assertEquals(myWorld.getName(),deserializedWorld.getName()); } Running similar operation in project with no aspectj doesn't lead to this problem. Thanks a lot for your feedback. Greets from Berlin, Marcin -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/SDG-2-0-0-M1-cross-store-does-not-work-properly-tp3481372p3488532.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user