Wleong
Wleong
JJanusGraph
Created by Wleong on 4/9/2025 in #questions
Guava com.google.common.base.Preconditions getting java.lang.IllegalArgumentException: null
I am getting the following error java.lang.IllegalArgumentException: null at com.google.common.base.Preconditions.checkArgument(Preconditions.java:129) ~[janusgraph-driver-1.1.0-shaded.jar:?] Note: here i have shaded the guava in janusgraph due to dependency conflict this happens in my code where i am preparing a transaction using for ... g.mergeV(...).option(Merge.onCreate,...).option(Merge.onMerge,...).next() // this is where the error happens g.tx().commit() i have checked that i have no null values in the query
3 replies
JJanusGraph
Created by Wleong on 11/20/2024 in #questions
Gremlin Console in v1.0.0 and v1.1.0
A weird behaviour i am facing in v1.0.0 and v1.1.0 v1.0.0
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
gremlin> :remote console session
gremlin> ConfiguredGraphFactory.getGraphNames()
==>test1
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
gremlin> :remote console session
gremlin> ConfiguredGraphFactory.getGraphNames()
==>test1
v1.1.0
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
gremlin> :remote console session
gremlin> ConfiguredGraphFactory.getGraphNames()
org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException: Please add a key named "ConfigurationManagementGraph" to the "graphs" property in your YAML file and restart the server to be able to use the functionality of the ConfigurationManagementGraph class.

gremlin> :> ConfiguredGraphFactory.getGraphNames()
==>test1
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
gremlin> :remote console session
gremlin> ConfiguredGraphFactory.getGraphNames()
org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException: Please add a key named "ConfigurationManagementGraph" to the "graphs" property in your YAML file and restart the server to be able to use the functionality of the ConfigurationManagementGraph class.

gremlin> :> ConfiguredGraphFactory.getGraphNames()
==>test1
Here if i put :> ConfiguredGraphFactory.getGraphNames() then it is successful Anyone facing similar issue?
5 replies