I am using the embedded version of the server. My application runs from the 
IDE, but after packaging the code as an executable jar, the following 
exception is thrown at runtime:

18-02-26 19:14:41 SP-450-L019 INFO [com.securiport.schema.core:155] - 
Configuration:  
jar:file:/C:/Users/rbergstrom/repos/orientdb-schema/target/orientdb-schema.jar!/db.config

2018-02-26 14:14:43:102 INFO  Loading configuration from input stream
2018-02-26 14:14:43:677 INFO  OrientDB Server v3.0.0RC1 (build 
d2a4b9a6dd51d591bd5088533c9eb67ae452798a, branch develop) is starting 
up...Exception in thread "main" java.lang.NullPointerException
        at 
com.orientechnologies.orient.core.Orient.onEmbeddedFactoryInit(Orient.java:916)
        at 
com.orientechnologies.orient.core.db.OrientDBEmbedded.<init>(OrientDBEmbedded.java:63)
        at 
com.orientechnologies.orient.core.db.OrientDBInternal.embedded(OrientDBInternal.java:107)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.getOrCreateEmbeddedFactory(ODatabaseDocumentTx.java:149)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTxInternal.getOrCreateEmbeddedFactory(ODatabaseDocumentTxInternal.java:27)
        at 
com.orientechnologies.orient.server.OServer.startupFromConfiguration(OServer.java:331)
        at 
com.orientechnologies.orient.server.OServer.startup(OServer.java:288)
        at com.securiport.schema.core$_main.invokeStatic(core.clj:160)
        at com.securiport.schema.core$_main.doInvoke(core.clj:152)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.AFn.applyToHelper(AFn.java:152)
        at clojure.lang.RestFn.applyTo(RestFn.java:132)
        at com.securiport.schema.core.main(Unknown Source)

I am using the following simple configuration file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
    <network>
        <protocols>
            <protocol 
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"
 
name="binary"/>
        </protocols>
        <listeners>
            <listener protocol="binary" socket="default" 
port-range="2424-2430" ip-address="0.0.0.0"/>
        </listeners>
    </network>
    <users>
    <user name="root" password="root" resources="*"/>
    <user resources="connect,server.listDatabases" password="guest" 
name="guest"/>
    </users>
    <properties>
      <entry value="C:/orientdb/databases" name="server.database.path" />
    <entry name="log.console.level" value="finest"/>
    <entry name="log.file.level" value="fine"/>
    </properties>
 </orient-server>

Can anyone provide some insight? My guess is a missing dependency in the 
jar. Is there an example pom.xml file that builds a executable jar with the 
embedded server? This is actually a Clojure application,  but I might be 
able to extrapolate.

TIA

-- 

--- 
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