Hi,

I have some code that works fine prior to 2.2.0 M2, but failed with the 
following error:

Exception in thread "main" java.lang.UnsupportedOperationException: No 
query engine installed.
    at 
org.neo4j.kernel.impl.query.NoQueryEngine.noQueryEngine(NoQueryEngine.java:56)
    at 
org.neo4j.kernel.impl.query.NoQueryEngine.executeQuery(NoQueryEngine.java:33)
    at 
org.neo4j.kernel.InternalAbstractGraphDatabase.execute(InternalAbstractGraphDatabase.java:935)
    at 
org.neo4j.kernel.InternalAbstractGraphDatabase.execute(InternalAbstractGraphDatabase.java:926)

The code is the following:

graphDb = new GraphDatabaseFactory()
        .newEmbeddedDatabaseBuilder(neo4jDbLocation)
        .loadPropertiesFromFile(neo4jConfigFile)
        .newGraphDatabase();
String cypher = "CREATE CONSTRAINT ON (s:" + nodeLabel + ") ASSERT s." + 
nodeKey + " IS UNIQUE";
Result result = graphDb.execute(cypher);

(minus the transaction, db close code).
It failed at the last line.

My maven has
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j</artifactId>
    <version>2.2.0-M02</version>
</dependency>


Any help is appreciated. Google doesn't help at all with this error, so I 
guess this is something new in 2.2.0?

Thanks,
Rick

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to