This one time, at band camp, Toni Charlot said:

TC>Good morning,
TC>
TC>More troubles with m-n during update.  I followed the ManyToMany test
TC>step by step but I keep on getting the following exception.  Is any one
TC>doing this successfully.  By the way I'm using Firebird with the
TC>FirebirdSQL jdbc driver.
TC>
TC>Thanks much.
TC>
TC>org.exolab.castor.jdo.DuplicateIdentityException: update object which is
TC>already in the transaction
TC>     at
TC>org.exolab.castor.persist.TransactionContext.markUpdate(Unknown Source)
TC>     at org.exolab.castor.persist.ClassMolder.update(Unknown Source)
TC>     at org.exolab.castor.persist.LockEngine.update(Unknown Source)
TC>     at
TC>org.exolab.castor.persist.TransactionContext.markUpdate(Unknown Source)
TC>     at org.exolab.castor.persist.TransactionContext.update(Unknown
TC>Source)
TC>     at org.exolab.castor.jdo.engine.DatabaseImpl.update(Unknown
TC>Source)
TC>     at biz.isman.dao.castor.DAOImpl.store(Unknown Source)
TC>     at biz.isman.dao.DAOProxy.update(Unknown Source)
TC>     at biz.isman.web.actions.SuperDispatcher.update(Unknown Source)
TC>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
TC>     at
TC>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
TC>a:39)
TC>     at
TC>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
TC>Impl.java:25)
TC>     at java.lang.reflect.Method.invoke(Method.java:324)
TC>     at
TC>org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j
TC>ava:278)
TC>     at
TC>org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:218
TC>)
TC>     at
TC>org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
TC>ocessor.java:465)
TC>     at
TC>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
TC>274)
TC>     at
TC>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1407)
TC>     at
TC>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:514)
TC>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
TC>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
TC>     at
TC>com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
TC>va:96)
TC>     at
TC>filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.j
TC>ava:147)
TC>     at
TC>com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
TC>:88)
TC>     at
TC>com.caucho.http.security.SecurityFilter.doFilter(SecurityFilter.java:115
TC>)
TC>     at
TC>com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
TC>:88)
TC>     at
TC>com.caucho.server.http.Invocation.service(Invocation.java:312)
TC>     at
TC>com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
TC>     at
TC>com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
TC>     at
TC>com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
TC>)
TC>     at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
TC>     at java.lang.Thread.run(Thread.java:536)
TC>

Toni, 

I've done this sucessfully many times. Please provide us with some
additional detail to troubleshoot the problem. Can you post the relevant
code portions and the relevant mapping portions? What version of Castor
are you using?

Bruce
-- 
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to