Adding all titan10/lib/*.jar as used libraries seems to work (at first I added the folder itself, wich did not work).
Now my gremlin/groovy code compiles and runs, opens the existing db and fetches correct graph-data from there.
It is the exact same code, I used with gremlin.sh -e. Thats fine. So no need for Gremlin.load?
However, I get lot of output like the following:
15:59:33.107 [main] DEBUG c.t.t.diskstorage.lucene.LuceneIndex - Configured Lucene to use base directory [/home/alexp/dsesRuns/runDir7/titan/conf/../db/searchindex]
15:59:33.118 [main] INFO c.t.titan.diskstorage.Backend - Initiated backend operations thread pool of size 8
15:59:33.122 [main] DEBUG c.t.t.d.b.BerkeleyJEStoreManager - Opened database titan_ids
15:59:32.876 [main] DEBUG c.t.t.d.b.BerkeleyJEStoreManager - Opened database system_properties
java.lang.Throwable: null
at com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.openDatabase(BerkeleyJEStoreManager.java:172) [titan-berkeleyje-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.openDatabase(BerkeleyJEStoreManager.java:34) [titan-berkeleyje-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.keyvalue.OrderedKeyValueStoreManagerAdapter.openDatabase(OrderedKeyValueStoreManagerAdapter.java:76) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.keyvalue.OrderedKeyValueStoreManagerAdapter.openDatabase(OrderedKeyValueStoreManagerAdapter.java:69) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.diskstorage.keycolumnvalue.keyvalue.OrderedKeyValueStoreManagerAdapter.openDatabase(OrderedKeyValueStoreManagerAdapter.java:25) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.diskstorage.Backend.getStandaloneGlobalConfiguration(Backend.java:449) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1322) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94) [titan-core-1.0.1-SNAPSHOT.jar:na]
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:62) [titan-core-1.0.1-SNAPSHOT.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [groovy-2.4.1-indy.jar:2.4.1]
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) [groovy-2.4.1-indy.jar:2.4.1]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(StaticMetaMethodSite.java:130) [groovy-2.4.1-indy.jar:2.4.1]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88) [groovy-2.4.1-indy.jar:2.4.1]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-2.4.1-indy.jar:2.4.1]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) [groovy-2.4.1-indy.jar:2.4.1]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) [groovy-2.4.1-indy.jar:2.4.1]
at dses.dcerebra.groovy.resultGraphs.SimGraph.main(SimGraph.groovy:36) [classes/:na]
There a many lines wit [main] DEBUG ... which is some information about what happened.
But there is some java.lang.Throwable: null stuff.
I'm not sure about these - do I have a problem there?
Thx
Alexander