DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-34
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Li Yan
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

Calling EntityTransaction.begin twice in a row results in PersistenceException, however javadoc says IllegalStateException is expected

Created: 14/Aug/09 10:01 PM   Updated: 11/Sep/09 08:42 AM   Resolved: 20/Aug/09 10:22 AM
Component/s: API
Affects Version/s: 1.1.4
Fix Version/s: 2.0.0.m2

Datastore: Other

 Description  « Hide
In the javadoc above, it is mentioned that
void begin()
    Start the resource transaction.
        java.lang.IllegalStateException - if isActive() is true.

However the code below in google appengine datastore throws javax.persistence.PersistenceException

EntityTransaction tx;

Andy Jefferson added a comment - 20/Aug/09 10:22 AM
SVN trunk has this.
Won't be applied to 1.1

Andy Jefferson made changes - 20/Aug/09 10:22 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 2.0.0.m2 [ 10743 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 11/Sep/09 08:42 AM
Status Resolved [ 5 ] Closed [ 6 ]