Just tried 3.0.6 and it works :-) Thx.
-----Original Message----- From: Mike Lecza [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:39 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] CMP Entity Bean commit-option problem Not yet... -Lex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dain Sundstrom Sent: Tuesday, March 11, 2003 12:07 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] CMP Entity Bean commit-option problem Have you tried 3.0.6? -dain On Tuesday, March 11, 2003, at 08:32 AM, Mike Lecza wrote: > Can someone confirm that this works for them so at least I know it may > be something that I am doing wrong? > > ? > > Best Regards > > ? > > ? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf OfMike Lecza > Sent: Monday, March 10, 2003 6:53 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] CMP Entity Bean commit-option problem > > ? > > Thought I’d refresh this thread to too if anyone has any ideas… > > ? > > ? > > ? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf OfMike Lecza > Sent: Thursday, March 06, 2003 2:39 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] CMP Entity Bean commit-option problem > > ? > > JBoss 3.0.4/ Postgres 7.3 > > I have a servlet that updates a table via this bean. I hit the servlet > and the row is created just fine. An external application (not using > beans) remove the record from the db. I then hit the servlet again - > this time when the code does the create() method I get the exception > at the end of this message. > > If I hit the servlet again - it goes through fine. > > I tried using commit-option B and C in the standardjboss.xml file(yes, > restarting the server each time I changed the options). > > I even tried adding it to the jboss.xml for that bean like this: > . > . > . > > <container-configurations> > <container-configuration> > <container-name>Standard CMP 2.x EntityBean</container-name> > <commit-option>B</commit-option> > </container-configuration> > </container-configurations> > </jboss> > > Any idea why its not working on that first hit after the record is > removed by the external app? > > > 14:09:21,009 ERROR [LogInterceptor] RuntimeException: > > java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN, > ID = 12345600000000000000000000000000 > > ??????? at > org.jboss.ejb.plugins.AbstractInstanceCache.insert(AbstractInstanceCach > e.java:222) > > ??????? at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstan > ceInterceptor.java:103) > > ??????? at > org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterc > eptor.java:79) > > ??????? at > org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreati > onInterceptor.java:44) > > ??????? at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterc > eptor.java:111) > > ??????? at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercepto > rCMT.java:178) > > ??????? at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java > :52) > > ??????? at > org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercepto > r.java:105) > > ??????? at > org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129 > ) > > ??????? at > org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487) > > ??????? at org.jboss.ejb.Container.invoke(Container.java:730) > > ??????? at > org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058) > > ??????? at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) > > ??????? at > org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) > > ??????? at > org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java: > 102) > > ??????? at > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.ja > va:77) > > ??????? at > org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) > > ??????? at > org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198) > > ??????? at > org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) > > ??????? at $Proxy173.create(Unknown Source) > > ??????? at > com.newnetco.trivialpursuit.servlets.LoginServlet.handleRequest(LoginSe > rvlet.java:185) > > ??????? at > com.newnetco.trivialpursuit.servlets.TrivialPursuitServlet.doRequest(Tr > ivialPursuitServlet.java:264) > > ??????? at > com.newnetco.tools.servlet.BaseServlet.service(BaseServlet.java:516) > > ??????? at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > ??????? at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic > ationFilterChain.java:247) > > ??????? at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil > terChain.java:193) > > ??????? at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal > ve.java:260) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:643) > > ??????? at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > ??????? at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > ??????? at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal > ve.java:191) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:643) > > ??????? at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato > rBase.java:471) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:641) > > ??????? at > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j > ava:246) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:641) > > ??????? at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > ??????? at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > ??????? at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 > 96) > > ? ??????at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav > a:180) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:643) > > ??????? at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV > alve.java:170) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:641) > > ??????? at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav > a:172) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:641) > > ??????? at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 > 9) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:641) > > ??????? at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > ??????? at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > ??????? at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve > .java:174) > > ??????? at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invokeNext(StandardPipeline.java:643) > > ??????? at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > ??????? at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > ??????? at > org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) > > ??????? at > org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) > > ??????? at java.lang.Thread.run(Thread.java:536) > ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user