Could you move the line:
OrientGraph graph = factory.getTx();
Inside the Writer.run() method?
Best Regards,
Founder & CEO
OrientDB <http://orientdb.com/>
On 28 July 2015 at 14:35, Arpit Jain <[email protected]> wrote:
> Hi,
>
> But i am also using OrientGraphFactory .
>
> public void writeData(OrientGraphFactory factory,Long max_no_of_graph) {
>
> for (int i = 0; i < 10; i++) {
>
> OrientGraph graph = factory.getTx();
>
> Runnable write = new Writer(graph , max_no_of_graph);
>
> executor.execute(write);
>
> }
>
> 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.
>
--
---
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.