sim51/logisima-play-neo4j — Issue #3: Class cast exception on use of getByKey
Author: jph303
Created: 2012-01-20 13:27:05+00:00
State: open

Am trying to bring back an existing node using getbykey method: Following error occurs

Execution exception
ClassCastException occured : org.neo4j.kernel.impl.core.NodeProxy cannot be cast to play.modules.neo4j.model.Neo4jModel

In /app/controllers/ManageUser.java (around line 62)

58:
if(key != null)
59:
{
60:
try
61:
{
62:
user = user.getByKey(key);
63:
}
64:
catch (Neo4jException e)
65:
{
66:
Logger.error(e.getMessage(), e);
67:
}
68:
}