PDA

View Full Version : entity.persist() unresolved compilation problem when trying spring and neo4j



memorydoor
Jul 5th, 2011, 03:32 PM
Hi, anyone faced this problem?
It's confused for me

entity.persist() unresolved compilation problem when trying spring and neo4j

Thanks in advance.

MichaelHunger
Jul 6th, 2011, 03:14 AM
Does this only show up in your IDE or also during the maven build?

Does this part of the Spring Data Graph Guide Book help you there:
http://static.springsource.org/spring-data/data-graph/snapshot-site/reference/html/#reference:aspectj

?

Thanks

Michael

srikkanth.m
Jul 14th, 2011, 11:05 PM
I wrote simple test to persist a node. I followed the pattern you outlined in your cineasts example. I get a NullPointerException when I execute the test in my maven build.

java.lang.NullPointerException
at org.springframework.data.graph.neo4j.support.node. Neo4jNodeBacking.ajc$interMethod$org_springframewo rk_data_graph_neo4j_support_node_Neo4jNodeBacking$ org_springframework_data_graph_core_NodeBacked$per sist(Neo4jNodeBacking.aj:120)
at com.liivvo.entity.Media.persist(Media.java:1)
at com.liivvo.test.sample.SampleTest.testPersistMedia (SampleTest.java:34)

The error itself is pretty vague. Any clue what's going on here?

Thanks in advance for your time and effort.

Srikanth

MichaelHunger
Jul 15th, 2011, 02:27 AM
Without seeing your code it's not posdible to diagnose.

Please make sure that the AppCtx is loaded correctly.

Could you please otherwise share your code, maven config and spring configuration. As well as the log file showing that error.

Thanks

Michael