Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF Transaction] Exception during closing a commited transaction
[EMF Transaction] Exception during closing a commited transaction [message #486644] Fri, 18 September 2009 13:42 Go to next message
Eclipse UserFriend
Originally posted by: tim.baumgartner.innovations.de

Hi!

We are using EMF Transaction 1.2.3. Althaugh we don't use the transaction
objects internally created by the framework, a user of our API runs into the
following exception during command execution:

java.lang.IllegalArgumentException: Can only deactivate the active
transaction

at
org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.deactivate(TransactionalEditingDomainImpl.java:494)

at
org.eclipse.emf.transaction.impl.TransactionImpl.close(Trans actionImpl.java:623)

at
org.eclipse.emf.transaction.impl.TransactionImpl.commit(Tran sactionImpl.java:415)

at
org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:172)


The user has not been able to reproduce this in a test case.

My question: are there any scenarios known that might lead to this
exception?

Regards,
Tim
Re: [EMF Transaction] Exception during closing a commited transaction [message #486702 is a reply to message #486644] Fri, 18 September 2009 15:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Tim,

I guess it would be good to understand why the transaction being closed
isn't the active one. Perhaps something is being done twice or being
done recursively?


Tim Baumgartner wrote:
> Hi!
>
> We are using EMF Transaction 1.2.3. Althaugh we don't use the transaction
> objects internally created by the framework, a user of our API runs into the
> following exception during command execution:
>
> java.lang.IllegalArgumentException: Can only deactivate the active
> transaction
>
> at
> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.deactivate(TransactionalEditingDomainImpl.java:494)
>
> at
> org.eclipse.emf.transaction.impl.TransactionImpl.close(Trans actionImpl.java:623)
>
> at
> org.eclipse.emf.transaction.impl.TransactionImpl.commit(Tran sactionImpl.java:415)
>
> at
> org.eclipse.emf.workspace.AbstractEMFOperation.execute(Abstr actEMFOperation.java:172)
>
>
> The user has not been able to reproduce this in a test case.
>
> My question: are there any scenarios known that might lead to this
> exception?
>
> Regards,
> Tim
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [EMF Transaction] Exception during closing a commited transaction [message #486706 is a reply to message #486702] Fri, 18 September 2009 16:11 Go to previous message
Eclipse UserFriend
Originally posted by: tim.baumgartner.innovations.de

Hi Ed,

> I guess it would be good to understand why the transaction being closed
> isn't the active one. Perhaps something is being done twice or being done
> recursively?

I don't think so but I can't be absolutely sure. The problem is that I don't
have access to all code and models necessary to reproduce.
When I posted, I hoped perhaps there is a typical problem known that leads
to this situation.

If I find and solve the real problem, I will post it.

Thanks,
Tim
Previous Topic:[CDO] How can I get information on new objects in a view
Next Topic:Ecore2Ecore data migration when reference's type is removed
Goto Forum:
  


Current Time: Fri Apr 26 12:18:13 GMT 2024

Powered by FUDForum. Page generated in 0.02965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top