I'm getting a remove Exception but I'm not sure why. I have a sfsb that issues the remove command within a transaction context. The sql debug prints that jboss is issuing the command "delete from ... where id =?" The data is actually deleted from the database. (This is because the myEJB.remove() is within a try catch block. if I let the RemoveException be thrown, the data is rolled back.) Regardless, the removeexception is thrown. If I catch it, the data stayes removed.
I'm not sure why the RemoveException is being thrown in the first place. Maybe someone can tell from the stack trace. Thanks Dennis 09:40:08,462 ERROR [STDERR] javax.ejb.RemoveException: Could not remove entity 09:40:08,464 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEntityCommand.java:107) 09:40:08,464 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManager.java:559) 09:40:08,464 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManager.java:542)09:40:08,464 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntity(CachedConnectionInterceptor.java:431) 09:40:08,464 ERROR [STDERR] at org.jboss.ejb.EntityContainer.remove(EntityContainer.java:506) 09:40:08,464 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 09:40:08,465 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 09:40:08,465 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 09:40:08,465 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 09:40:08,465 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1174) 09:40:08,465 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:190) 09:40:08,465 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:340) 09:40:08,465 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) 09:40:08,466 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 09:40:08,467 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) 09:40:08,467 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:296) 09:40:08,467 ERROR [STDERR] at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) 09:40:08,467 ERROR [STDERR] at $Proxy2068.remove(Unknown Source) 09:40:08,467 ERROR [STDERR] at com.datemate.ejb.messaging.MessageCenterBean.deleteFolder(MessageCenterBean.java:90) 09:40:08,467 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 09:40:08,467 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 09:40:08,467 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 09:40:08,468 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:823) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) 09:40:08,468 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:266) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) 09:40:08,468 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 09:40:08,469 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 09:40:08,469 ERROR [STDERR] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380) 09:40:08,469 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:705) 09:40:08,469 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) 09:40:08,469 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362) 09:40:08,469 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) 09:40:08,469 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 09:40:08,469 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 09:40:08,470 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) 09:40:08,470 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:148) 09:40:08,470 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 09:40:08,470 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:144) 09:40:08,470 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) 09:40:08,470 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) 09:40:08,470 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536) _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user