- priority: 5 --> 9
- status: open --> open-accepted
when deleting a Issue the exception below is thrown
*********
USECASE
*********
try to create and than delete a Issue.
*********
TRACE
*********
2004-08-18 10:18:27,910 DEBUG [org.xinity.base.CommandBroker]
############################################
recieved execute-call >>> Command:
class org.xinity.base.Command: Issue.delete
__command__=Issue.delete
confirm=true
carry_form.data=false
id=1092761136320:81
############################################
2004-08-18 10:18:27,911 DEBUG [org.xinity.base.Session] execute()...
2004-08-18 10:18:27,911 DEBUG [org.xinity.base.Session] > washing expressions in incoming command.
2004-08-18 10:18:27,911 DEBUG [org.xinity.base.Session] parameters for command 'Issue.delete' washed - executiontime: 0
2004-08-18 10:18:27,911 DEBUG [org.xinity.base.Session] 1092761136320:81
2004-08-18 10:18:27,912 DEBUG [org.xinity.base.Session] > trying to invoke method delete on org.xinity.xcp.IssueFactory
2004-08-18 10:18:27,912 DEBUG [org.xinity.xcp.IssueFactory] delete() on uid = '1092761136320:81'
2004-08-18 10:18:27,912 DEBUG [org.xinity.base.Session] remove transient object: uid='1092761136320:81' session holds 2 transient objects.
2004-08-18 10:18:27,913 DEBUG [org.xinity.xcp.Issue] execute delete() on uid = '1092761136320:81'
2004-08-18 10:18:27,913 DEBUG [org.xinity.xcp.Issue] - deleting entity
2004-08-18 10:18:27,913 INFO [org.xinity.xcp.Issue] entity 1092761136320:81 has been successfully deleted.
2004-08-18 10:18:27,914 DEBUG [org.xinity.base.Session] > writing changes to entities in hibernateSession.
2004-08-18 10:18:27,915 ERROR [org.xinity.base.Session] could not flush HibernateSession!
net.sf.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): 1092761136320:81, of class: org.xinity.xcp.Issue
at net.sf.hibernate.impl.SessionImpl.forceFlush(SessionImpl.java:752)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:730)
at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1375)
at net.sf.hibernate.engine.Cascades$4.cascade(Cascades.java:114)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:436)
at net.sf.hibernate.engine.Cascades.cascadeCollection(Cascades.java:526)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:452)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482)
at net.sf.hibernate.impl.SessionImpl.preFlushEntities(SessionImpl.java:2669)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2246)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2235)
at org.xinity.base.Session$FormSession.flush(Unknown Source)
at org.xinity.base.Session$FormSession.access$6(Unknown Source)
at org.xinity.base.Session.saveMarkedEntities(Unknown Source)
at org.xinity.base.Factory.delete(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.xinity.base.Session.execute(Unknown Source)
at org.xinity.base.SessionController.execute(Unknown Source)
at org.xinity.base.CommandBroker.execute(Unknown Source)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)