some additional information:
the test graphson file I use is as simple as this
{"id":{"@type":"g:Int64","@value":1},"label":"test"}
also with
I get the UnsupportedOperationException
with
I get:
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.propertyValueCanNotBeNull(Property.java:143) ~[gremlin-core-3.3.3.jar:3.3.3]
I create the connection to the janusgraph server with
conf = new PropertiesConfiguration(propFileName);
// using the remote driver for schema
try {
cluster = Cluster.open(conf.getString("gremlin.remote.driver.clusterFile"));
client = cluster.connect();
} catch (Exception e) {
throw new ConfigurationException(e);
}
// using the remote graph for queries
graph = EmptyGraph.instance();
g = graph.traversal().withRemote(conf);
and my properties file looks like this:
gremlin.remote.remoteConnectionClass=org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection
gremlin.remote.driver.clusterFile=conf/remote-objects.yaml
gremlin.remote.driver.sourceName=g
and the remote-objects.yaml like this:
hosts: [localhost]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { bufferSize: 8192, ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
general connection between java client and janusgraph server is available as
g.addV("titan").property("name", "saturn3").property("age", 10000);works.
Regards
Stefan