Check your classpath.

It is likely due to an issue finding the following service file:

orientdb-core-2.2.12.jar:/META-INF/services/com.orientechnologies.orient.core.engine.OEngine
That file points to "plocal" OEngine : 
com.orientechnologies.orient.core.engine.local.OEngineLocalPaginated

However, orientdb-client-2.2.12 also has this server file.  Is it possible 
that you combined core and client into the same directory thereby 
overwriting the core service file (has plocal and memory) with the client 
service file (has remote)?

Or maybe you have mixed old jar files with 2.2.12 jar files?

On Saturday, November 5, 2016 at 5:51:54 AM UTC-4, Yash Madane wrote:
>
> I am trying to connect Java to Orient database. I am using the OrientDB 
> version 2.2.12. The code is not giving an ouput.It is showing an error 
> called as plocal not found. 
> It is showing only remote found.I have been trying a lot. Could you please 
> me? 
> Thanking You in anticipation, 
> A OrientDB user 
>
>
>
>
>
>
> package orientdb_conn; 
>
> import com.tinkerpop.blueprints.Edge; 
> import com.tinkerpop.blueprints.Vertex; 
> import com.tinkerpop.blueprints.impls.orient.OrientGraph; 
>
> public class Orientdb_conn { 
>
>     /** 
>      * @param args the command line arguments 
>      */ 
>     public static void main(String[] args) { 
>         // TODO code application logic here 
>         OrientGraph graph = new 
> OrientGraph("plocal:D:/orientdb-community-2.2.12/databases"); 
>     try{ 
>   Vertex luca = graph.addVertex(null); // 1st OPERATION: IMPLICITLY BEGINS 
> TRANSACTION 
>   luca.setProperty( "name", "Luca" ); 
>   Vertex marko = graph.addVertex(null); 
>   marko.setProperty( "name", "Marko" ); 
>   Edge lucaKnowsMarko = graph.addEdge(null, luca, marko, "knows"); 
>   graph.commit(); 
> } catch( Exception e ) { 
>   graph.rollback(); 
> }} 
>     
> } 
>
> Output:- 
> Exception in thread "main" 
> com.orientechnologies.orient.core.exception.ODatabaseException: Error on 
> opening database 'plocal:D:/orientdb-community-2.2.12/databases' 
>         at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<init>(ODatabaseDocumentTx.java:191)
>  
>
>         at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<init>(ODatabaseDocumentTx.java:152)
>  
>
>         at 
> com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:1974)
>  
>
>         at 
> com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:162)
>  
>
>         at 
> com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:103)
>  
>
>         at 
> com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:99)
>  
>
>         at 
> com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:76) 
>
>         at orientdb_conn.Orientdb_conn.main(Orientdb_conn.java:25) 
> Caused by: 
> com.orientechnologies.orient.core.exception.OConfigurationException: Error 
> on opening database: the engine 'plocal' was not found. URL was: 
> plocal:D:/orientdb-community-2.2.12/databases. Registered engines are: 
> [remote] 
>         DB name="plocal:D:/orientdb-community-2.2.12/databases" 
>         at 
> com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:462) 
>         at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.<init>(ODatabaseDocumentTx.java:171)
>  
>
>         ... 7 more 
> C:\Users\Chirag 
> Kalyankar\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: 
> Java returned: 1 
> BUILD FAILED (total time: 0 seconds) 
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" 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