graph databases - NullPointerException while trying to update OrientDB Vertex -
i trying update vertex of type user following code. using orientdb enterprise 2.7
public static vertex updatevertex(string id, map<string, object> properties) { orientgraph graph = getgraphfactory().gettx(); // add vertex types int retry = 0; vertex vertex = null; while (retry++ != max_retry) { try { vertex = graph.getvertex(id); (string property : properties.keyset()) { vertex.setproperty(property, properties.get(property)); } graph.commit(); return vertex; } catch (oneedretryexception ex) { logger.warn("retry exception - " + id); } catch (exception e) { logger.error("can not create vertex - ", e); e.printstacktrace(); graph.rollback(); break; } } return vertex; }
i following on commit step. not sure wrong code, had similar code working while back.
com.orientechnologies.orient.core.exception.otransactionexception: error on committing distributed transaction db name="socialposts3" db name="socialposts3" @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:423) @ com.orientechnologies.orient.client.binary.ochannelbinaryasynchclient.throwserializedexception(ochannelbinaryasynchclient.java:428) @ com.orientechnologies.orient.client.binary.ochannelbinaryasynchclient.handlestatus(ochannelbinaryasynchclient.java:379) @ com.orientechnologies.orient.client.binary.ochannelbinaryasynchclient.beginresponse(ochannelbinaryasynchclient.java:261) @ com.orientechnologies.orient.client.binary.ochannelbinaryasynchclient.beginresponse(ochannelbinaryasynchclient.java:153) @ com.orientechnologies.orient.client.remote.ostorageremote.beginresponse(ostorageremote.java:2133) @ com.orientechnologies.orient.client.remote.ostorageremote$28.execute(ostorageremote.java:1316) @ com.orientechnologies.orient.client.remote.ostorageremote$28.execute(ostorageremote.java:1289) @ com.orientechnologies.orient.client.remote.ostorageremote$2.execute(ostorageremote.java:198) @ com.orientechnologies.orient.client.remote.ostorageremote.basenetworkoperation(ostorageremote.java:230) @ com.orientechnologies.orient.client.remote.ostorageremote.networkoperation(ostorageremote.java:195) @ com.orientechnologies.orient.client.remote.ostorageremote.commit(ostorageremote.java:1289) @ com.orientechnologies.orient.core.tx.otransactionoptimistic.docommit(otransactionoptimistic.java:560) @ com.orientechnologies.orient.core.tx.otransactionoptimistic.commit(otransactionoptimistic.java:106) @ com.orientechnologies.orient.core.db.document.odatabasedocumenttx.commit(odatabasedocumenttx.java:2733) @ com.orientechnologies.orient.core.db.document.odatabasedocumenttx.commit(odatabasedocumenttx.java:2703) @ com.tinkerpop.blueprints.impls.orient.orienttransactionalgraph.commit(orienttransactionalgraph.java:175) @ com.readypulse.influencergraphmanager.graphutils.graphutil.updatevertex(graphutil.java:199) @ com.readypulse.influencergraphmanager.userrandomdatapopulator.main(userrandomdatapopulator.java:48) caused by: java.lang.nullpointerexception
server logs:
2016-08-24 05:08:25:772 warni error deserializing record id #30:968 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeuwowaaafrbaaaavt0aaabnnwaaago/aaaacduaaab1abqxoti5otu4ndm3aqaaaaeajqaaaaaaaiq6qcizmy4ymtuxtia5ny4xnde3v56ebgpuzxhhcwhnquxfderlbnrvbg== [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:25:817 warni error deserializing record id #30:969 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeqwowaaaf1baaaaxj0aaabwnwaaahm/aaaaeduaaab9abi4nde1njq5mjkbaaaaagalaaaaaaacjn8ajqaaaaaaait4icizos4xmzk5tia4nc41mdy0v4lkbwhpaglvce1bteuuq2luy2lubmf0aq== [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:25:843 warni error deserializing record id #30:970 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeqwowaaafnbaaaavd0aaabvnwaaafg/aaaaytuaaabmabixotq3mjq3ndmbaaaaaqalaaaaaaacjazkajk7brbwaxjnaw5pyqhnquxffenozxnhcgvha2u= [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:26:120 warni error deserializing record id #30:971 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeqwowaaagdbaaaaad0aaab7nwaaah4/aaaaituaaacoabizmjc4njk0otebaaaaawalaaaaaaackpiajaaaaaaaaieuacqaaaaaaainrh4kmzgumju2oe4gmtiyljazotdxkpmjfenhbglmb3juaweitufmrrjgywlyzmllbgq= [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:26:161 warni error deserializing record id #30:972 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeqwowaaaolbaaaa6j0aaad8nwaaap8/aaabcduaaaepabi0nja2mzuyntkbaaaaeaalaaaaaaackruajaaaaaaaaifqacqaaaaaaaioagalaaaaaaackvyajqaaaaaaailwacuaaaaaaaipvgakaaaaaaackaeajqaaaaaaailiacuaaaaaaaipvgalaaaaaaackvyajqaaaaaaailgacuaaaaaaaipvgalaaaaaaackvyajqaaaaaaailhacuaaaaaaaipvgalaaaaaaackvyqijm4lja0mdjoidg0ljq1odrxjpqgeetlbnr1y2t5dezftufmrrjmzxhpbmd0b24= [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:26:196 warni error deserializing record id #30:973 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeqwowaaafnbaaaavd0aaabnnwaaago/aaaaczuaaab4abiznzi4mzk4otybaaaaaqalaaaaaaackziijdm5ljkxodboidewnc45ndu0v/rfcbbdb2xvcmfkbwhnquxfefrob3judg9u [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception 2016-08-24 05:08:26:245 warni error deserializing record id #30:974 send data debugging: aahvc2vymqaaadoub3v0x1bvc3rlzaaaaeuwowaaajrbaaacnt0aaajhnwaaako/aaactzuaaajuabqxode1mdq0ntm1aqaaadeajaaaaaaaaijyacqaaaaaaaioyaalaaaaaaackf8ajaaaaaaaaijjacuaaaaaaaiqagakaaaaaaackm0ajqaaaaaaaioracqaaaaaaaiozgalaaaaaaackhiajaaaaaaaaijpacqaaaaaaaio0aalaaaaaaackggajqaaaaaaaiojacqaaaaaaaio0qakaaaaaaackniajqaaaaaaaiobacqaaaaaaaio1aakaaaaaaacknmajqaaaaaaaiozacuaaaaaaaiqhaakaaaaaaacknuajqaaaaaaaioyacuaaaaaaaiqnwakaaaaaaacko0ajqaaaaaaaio/acuaaaaaaaiqhqalaaaaaaackiaajaaaaaaaaijwacuaaaaaaaiqhgakaaaaaaackncajaaaaaaaaijaacuaaaaaaaiqiqalaaaaaaackiiajaaaaaaaaijcacuaaaaaaaiqjaakaaaaaaackn0ajaaaaaaaaijeacqaaaaaaaio4qalaaaaaaackigajqaaaaaaaiopacuaaaaaaaiqlgakaaaaaaackocajqaaaaaaaiplacuaaaaaaaiqoaalaaaaaaackjeajaaaaaaaaijwacuaaaaaaaiqnqalaaaaaaackksajqaaaaaaaiplqcizos43nzc0tia4nc4xotk2v5rrbghpaglvce1bteumrgf5dg9u [orecordserializerbinary][batman] error on distributed transaction commit java.lang.nullpointerexception
Comments
Post a Comment