Issue Details (XML | Word | Printable)

Key: NUCCORE-435
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Max Ross (App Engine)
Votes: 0
Watchers: 0
Operations

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

CascadeType.ALL on ManyToOne causes StackOverflow

Created: 25/Dec/09 01:10 AM   Updated: 03/Apr/10 10:45 AM   Resolved: 25/Dec/09 12:29 PM
Component/s: Persistence
Affects Version/s: None
Fix Version/s: 2.0.0.release

File Attachments: 1. Zip Archive testcase.zip (3 kB)

Environment: os x 10.5.8, java 6

Datastore: HSQL, Other
Severity: Production


 Description  « Hide
Bug was reported on App Engine forums but I confirmed it with an rdbms plugin built from trunk.
Here's the app engine issue:
http://code.google.com/p/datanucleus-appengine/issues/detail?id=178

Basically, CascadeType.ALL on a ManyToOne causes a StackOverflow error when deleting the owning object if the OneToMany is also CascadeType.ALL. I'll attach a JPA project reproduces the issue. I haven't tried it with JDO. Let me know if you need any more info.

Thanks,
Max

Max Ross (App Engine) made changes - 25/Dec/09 01:10 AM
Field Original Value New Value
Attachment testcase.zip [ 11080 ]
Andy Jefferson added a comment - 25/Dec/09 12:29 PM
TODO in DeleteFieldManager now completed

Andy Jefferson made changes - 25/Dec/09 12:29 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.0.0.release [ 10703 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 03/Apr/10 10:45 AM
Status Resolved [ 5 ] Closed [ 6 ]