[jboss-user] [EJB/JBoss] - java.lang.IllegalStateException: Underlying collection has b
Filot
do-not-reply at jboss.com
Mon Aug 27 11:57:07 EDT 2007
Hello all,
I' using bonita with Jboss. I try to execute this code:
|
| try{
| new InitialContext(env);
|
| ProjectSessionHome projectSessionh=ProjectSessionUtil.getHome();
| ProjectSession pss=projectSessionh.create();
|
|
|
|
| // Check if the process model exists
| if (pss.existingProject("test33","1.0"))
| {
| System.out.println("model Manif exists");
| //String instName = pss.instantiateProject("test33","1.0");
|
| try{
| String instName = pss.instantiateProject("test33");
| } catch (Exception ex){
| System.out.println("bonita " + ex);
| }
|
and then I have this exception:
|
| 17:26:50,937 ERROR [STDERR] java.lang.IllegalStateException: Underlying collection has been modified
| 17:26:50,937 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet$1.next(RelationSet.java:404)
| 17:26:50,937 ERROR [STDERR] at hero.session.ProjectSessionBean.mapRole(ProjectSessionBean.java:7250)
| 17:26:50,953 ERROR [STDERR] at hero.session.ProjectSessionBean.importInstance(ProjectSessionBean.java:6199)
| 17:26:50,968 ERROR [STDERR] at hero.session.ProjectSessionBean.instantiateProject(ProjectSessionBean.java:6830)
| 17:26:50,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 17:26:50,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 17:26:50,968 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:26:50,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:26:50,968 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.jav
| a:598)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| 17:26:50,968 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterce
| ptor.java:158)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIntercep
| tor.java:330)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| 17:26:50,968 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| 17:26:50,984 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| 17:26:50,984 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:1
| 36)
| 17:26:50,984 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| 17:26:50,984 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
| 17:26:50,984 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
| 17:26:50,984 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:26:50,984 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:26:50,984 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 17:26:50,984 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 17:26:50,984 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 17:26:50,984 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 17:26:50,984 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 17:26:50,984 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| 17:26:50,984 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| 17:26:50,984 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:295)
| 17:26:51,000 ERROR [STDERR] at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61
| )
| 17:26:51,000 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| 17:26:51,000 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| 17:26:51,000 ERROR [STDERR] at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
| 17:26:51,000 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| 17:26:51,000 ERROR [STDERR] at $Proxy681.instantiateProject(Unknown Source)
| 17:26:51,000 ERROR [STDERR] at servicesFacades.BdCitizenServicesImpl.registerEventCP(BdCitizenServicesImpl.java:62)
| 17:26:51,000 ERROR [STDERR] at web.actions.citizen.MnfAcEnregistrerManifestation.execute(MnfAcEnregistrerManifestation.java:10
| 5)
| 17:26:51,000 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
| 17:26:51,000 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
| 17:26:51,000 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| 17:26:51,000 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
| 17:26:51,000 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| 17:26:51,000 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25
| 2)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 17:26:51,015 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20
| 2)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 17:26:51,015 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175
| )
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 17:26:51,015 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 17:26:51,015 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 17:26:51,031 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 17:26:51,031 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11Bas
| eProtocol.java:664)
| 17:26:51,031 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 17:26:51,031 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 17:26:51,031 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 17:26:51,031 ERROR [STDERR] hero.util.HeroException: Instantiate process error Underlying collection has been modified
| 17:26:51,046 ERROR [STDERR] at hero.session.ProjectSessionBean.importInstance(ProjectSessionBean.java:6212)
| 17:26:51,046 ERROR [STDERR] at hero.session.ProjectSessionBean.instantiateProject(ProjectSessionBean.java:6830)
| 17:26:51,046 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 17:26:51,046 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 17:26:51,046 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:26:51,046 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:26:51,046 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| 17:26:51,046 ERROR [STDERR] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.jav
| a:598)
| 17:26:51,046 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| 17:26:51,046 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterce
| ptor.java:158)
| 17:26:51,046 ERROR [STDERR] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceIntercep
| tor.java:330)
| 17:26:51,046 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| 17:26:51,046 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:1
| 36)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| 17:26:51,062 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
| 17:26:51,062 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
| 17:26:51,062 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 17:26:51,062 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 17:26:51,062 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 17:26:51,062 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 17:26:51,062 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 17:26:51,062 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 17:26:51,062 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 17:26:51,062 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| 17:26:51,078 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| 17:26:51,078 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:295)
| 17:26:51,078 ERROR [STDERR] at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61
| )
| 17:26:51,078 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| 17:26:51,078 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| 17:26:51,078 ERROR [STDERR] at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
| 17:26:51,078 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| 17:26:51,078 ERROR [STDERR] at $Proxy681.instantiateProject(Unknown Source)
| 17:26:51,078 ERROR [STDERR] at servicesFacades.BdCitizenServicesImpl.registerEventCP(BdCitizenServicesImpl.java:62)
| 17:26:51,078 ERROR [STDERR] at web.actions.citizen.MnfAcEnregistrerManifestation.execute(MnfAcEnregistrerManifestation.java:10
| 5)
| 17:26:51,078 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
| 17:26:51,078 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
| 17:26:51,078 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| 17:26:51,078 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
| 17:26:51,093 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| 17:26:51,093 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:25
| 2)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 17:26:51,093 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:20
| 2)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 17:26:51,093 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175
| )
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 17:26:51,093 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 17:26:51,093 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 17:26:51,109 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 17:26:51,109 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 17:26:51,109 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 17:26:51,109 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 17:26:51,109 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11Bas
| eProtocol.java:664)
| 17:26:51,109 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 17:26:51,109 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 17:26:51,109 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 17:26:58,687 INFO [STDOUT] bonita javax.ejb.CreateException: Instantiate process error Underlying collection has been modified
|
Bonita uses version 2 of the EJB's...
anyone can help!?
thanks...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078410#4078410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078410
More information about the jboss-user
mailing list