ODatabaseException: Error on saving record

20 views
Skip to first unread message

Felix Ng

unread,
Jun 18, 2011, 11:43:21 PM6/18/11
to OrientDB
Hi all,

I am trying massively insert around 100millions records to a clean
database.

After using the correctly JVM parameters, the performance is very nice
now. But I randomly got the following exception.

Exception in thread "main"
com.orientechnologies.orient.core.exception.ODatabaseException: Error
on saving record #5:-1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.createException(OChannelBinary.java:
366)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.handleStatus(OChannelBinary.java:
322)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynch.beginResponse(OChannelBinaryAsynch.java:
66)
at
com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:
1100)
at
com.orientechnologies.orient.client.remote.OStorageRemote.createRecord(OStorageRemote.java:
218)
at
com.orientechnologies.orient.client.remote.OStorageRemoteThread.createRecord(OStorageRemoteThread.java:
127)
at
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.save(ODatabaseRaw.java:
213)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeSaveRecord(ODatabaseRecordAbstract.java:
502)
at
com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:
58)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:
201)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:
1)
at
com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.save(ODatabaseRecordWrapperAbstract.java:
200)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:
159)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:
1)
at
com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.save(ODatabaseRecordWrapperAbstract.java:
1)
at
com.orientechnologies.orient.core.record.ORecordAbstract.save(ORecordAbstract.java:
283)
at
com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.save(ORecordSchemaAwareAbstract.java:
65)
at
com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.save(ORecordSchemaAwareAbstract.java:
56)
at
com.admomo.scrape.server.tools.FacebookCommentUpdater.main(FacebookCommentUpdater.java:
53)
Caused by: java.lang.NullPointerException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.createException(OChannelBinary.java:
368)
... 18 more



Any idea what cause this problem? Any workaround?

Thanks

Luca Garulli

unread,
Jun 19, 2011, 3:52:11 AM6/19/11
to orient-...@googlegroups.com
Hi,
it seems that a NullPointer exception happens at server side. Take a look at the log files under the "log" directory of the server, if there's some exception reported.

By the way if you want to go faster use the "local" protocol for the massive insertion.

Lvc@
Reply all
Reply to author
Forward
0 new messages