Error thrown from cross-store with mysql and rest neo4j

23 views
Skip to first unread message

Katat Choi

unread,
Sep 28, 2012, 10:16:05 AM9/28/12
to ne...@googlegroups.com
I tried to change the restaurant-social sample project a bit to let it use mysql and rest neo4j instead.
It was working fine with mysql and the local store neo4j. When the local store neo4j is changed to be the rest one to be able to call the remote neo4j server, the listFriends method in the UserAccountRelationshipsTest throws the following error.
...
Caused by: org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.springone.myrestaurants.domain.UserAccount. Expected: class java.lang.Long, got class java.lang.Integer
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:135)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:997)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:990)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:610)
... 47 more

Is it because there are somewhere else I need to configure for the rest neo4j to be able to work properly? Any clues for this error would be very appreciated!

Thanks.

Michael Hunger

unread,
Sep 28, 2012, 10:33:48 AM9/28/12
to ne...@googlegroups.com
Good point,

unfortunately this is a problem with the REST implementation.
Usually the cross-store / aspectj versions are targeted at an embedded neo4j instance.

Can you raise an issue on http://spring.neo4j.org/issues ?

Thanks a lot

Michael
> --
>
>

Katat Choi

unread,
Sep 28, 2012, 10:48:32 AM9/28/12
to ne...@googlegroups.com
Yes, I have just create this issue on jira. Thanks for the reply!
> --
>
>

Reply all
Reply to author
Forward
0 new messages