hi,
After putting
OrientGraph graph = factory.getTx();
Inside the Writer.run() method, it gives below exception.
Exception in thread "pool-3-thread-2"
com.orientechnologies.orient.core.exception.ODatabaseException: Cannot
create database 'MyOdb'
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:440)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:353)
at
com.orientechnologies.orient.core.db.OPartitionedDatabasePool.openDatabase(OPartitionedDatabasePool.java:329)
at
com.orientechnologies.orient.core.db.OPartitionedDatabasePool.acquire(OPartitionedDatabasePool.java:304)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:166)
at
com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:78)
at
com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:128)
at
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getTx(OrientGraphFactory.java:74)
at trheadorient.GraphWriter.run(GraphWriter.java:23)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.orientechnologies.orient.core.exception.OStorageException:
Cannot create new storage 'MyOdb' because it is not closed
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.create(OAbstractPaginatedStorage.java:235)
at
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.create(OLocalPaginatedStorage.java:111)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.create(ODatabaseDocumentTx.java:375)
... 11 more
On Tuesday, July 21, 2015 at 2:51:24 PM UTC+5:30, Arpit Jain wrote:
>
> Hello,
>
> Please suggest me how can i overcome from this exception?
>
> Exception in thread "pool-3-thread-2"
> com.orientechnologies.orient.core.exception.OTransactionException:
> Transaction was rolled back more times than it was started.
> at
> com.orientechnologies.orient.core.tx.OTransactionOptimistic.rollback(OTransactionOptimistic.java:176)
> at
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.rollback(ODatabaseDocumentTx.java:2498)
> at
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.rollback(ODatabaseDocumentTx.java:2477)
> at
> com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.rollback(OrientTransactionalGraph.java:176)
>
> Regards:
> Arpit
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.