ttamaris / oryx-editor

Automatically exported from code.google.com/p/oryx-editor
Other
0 stars 0 forks source link

Dispatcher leave an open transaction unclosed. #456

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Embed the editor in another application
2.Save/update an object
3.The other action which has a more strict transaction level and then an 
exception reported.

What is the expected output?
Successfully with following actions

What do you see instead?
An exception saying the setting a read-only property

Please provide any additional information below.
In the class Dispatcher, the end of the dispatch method, a finally block get 
the session and close it.
The method is Persistence.getSession(), however, in this method, it will start 
a new transacation and then unclosed. It is suggested to revise the finally 
block or add a method in the Persistence.

Original issue reported on code.google.com by xinyi...@gmail.com on 7 Sep 2010 at 5:25