You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Titan 0.5 property defined as java.lang.Integer is expected to be int:
rexster[groovy]> g.makeKey("test2").dataType(java.lang.Integer.class).make();
==>test2
rexster[groovy]> g.commit()
==>null
rexster[groovy]> x = g.v(5461996204806111236)
==>v[5461996204806111236]
rexster[groovy]> x.test2 = 3;
==>An error occurred while processing the script for language [groovy]. All transactions across all graphs in the session have been concluded with failure: java.util.concurrent.ExecutionException: javax.script.ScriptException: javax.script.ScriptException:
java.lang.IllegalArgumentException: Value [3] is not an instance of the expected data type for property key [test2] and cannot be converted.
Expected: int, found: class java.lang.Integer
The text was updated successfully, but these errors were encountered:
Have the same issue when running titan05 build in storm topology in production. It also complains about
java.lang.RuntimeException: java.lang.IllegalArgumentException: Value [1] is not an instance of the expected data type for property key [count] and cannot be converted. Expected: int, found: class java.lang.Integer
I figured out what is likely causing the issue... it's related to different version of the kryo serialization library. storm-incubating-0.9.2 uses kryo-2.21 while titan05 depends on kryo-2.22.
If you downgrade titan dependency to kryo-2.21, you can reproduce the silent int vs java.lang.Integer error. If you there is version mismatch you get java.lang.RuntimeException: com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 10 in storm.
The solution, for me at least, is to upgrade storm's kryo dependency to 2.22.
In Titan 0.5 property defined as
java.lang.Integer
is expected to beint
:The text was updated successfully, but these errors were encountered: