1 Reply Latest reply on Jun 14, 2006 8:39 AM by Bob Johnson

    Problem with load group on deployment (4.0.4.GA)

    Bob Johnson Newbie

      Hi.

      I'm migrating an application from 4.0.4.CR2 to 4.0.4.GA. I get an error when I deploy it:

      12:34:35,479 ERROR [STDERR] java.lang.IllegalStateException: Load group 'lista2' is not defined. Defined load groups: [*, lista1]
      12:34:35,479 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.getLoadGroupMask(JDBCEntityBridge.java:482)
      12:34:35,480 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.getLeftJoinCMRNodes(JDBCAbstractQueryCommand.java:460)
      12:34:35,480 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.selectEntity(JDBCEJBQLCompiler.java:1885)
      12:34:35,480 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:1035)
      12:34:35,480 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.ejbql.ASTSelect.jjtAccept(ASTSelect.java:39)
      12:34:35,480 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:524)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.ejbql.ASTEJBQL.jjtAccept(ASTEJBQL.java:37)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.compileJBossQL(JDBCEJBQLCompiler.java:211)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.<init>(JDBCJBossQLQuery.java:57)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createJBossQLQuery(JDBCCommandFactory.java:87)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:274)
      12:34:35,481 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:505)
      12:34:35,482 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)
      12:34:35,482 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
      12:34:35,482 ERROR [STDERR] at org.jboss.ejb.EntityContainer.startPmAndInterceptors(EntityContainer.java:1063)
      12:34:35,482 ERROR [STDERR] at org.jboss.ejb.EjbModule.startService(EjbModule.java:422)
      12:34:35,483 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      12:34:35,483 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      12:34:35,483 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      12:34:35,483 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:34:35,483 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      12:34:35,483 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      12:34:35,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      12:34:35,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      12:34:35,484 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      12:34:35,484 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      12:34:35,484 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      12:34:35,484 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      12:34:35,485 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      12:34:35,485 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      12:34:35,485 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:34:35,485 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      12:34:35,485 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      12:34:35,485 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      12:34:35,486 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      12:34:35,486 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      12:34:35,486 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      12:34:35,486 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      12:34:35,486 ERROR [STDERR] at $Proxy32.start(Unknown Source)
      12:34:35,486 ERROR [STDERR] at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:662)
      12:34:35,486 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      12:34:35,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      12:34:35,487 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:34:35,487 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      12:34:35,487 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      12:34:35,487 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      12:34:35,488 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      12:34:35,488 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      12:34:35,488 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      12:34:35,488 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      12:34:35,488 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      12:34:35,488 ERROR [STDERR] at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
      12:34:35,489 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      12:34:35,489 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      12:34:35,489 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      12:34:35,489 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      12:34:35,489 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      12:34:35,489 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      12:34:35,490 ERROR [STDERR] at $Proxy33.start(Unknown Source)
      12:34:35,490 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      12:34:35,490 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
      12:34:35,490 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      12:34:35,490 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      12:34:35,490 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
      12:34:35,491 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12:34:35,491 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      12:34:35,491 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      12:34:35,491 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      12:34:35,491 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      12:34:35,491 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      12:34:35,492 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      12:34:35,492 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      12:34:35,492 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      12:34:35,492 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      12:34:35,492 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      12:34:35,492 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
      12:34:35,493 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      12:34:35,493 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      12:34:35,493 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      12:34:35,493 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
      12:34:35,493 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      12:34:35,494 WARN [ServiceController] Problem starting service jboss.j2ee:service=EjbModule,module=ejbCertificazioneSpese.jar
      org.jboss.deployment.DeploymentException: Error compiling JBossQL statement 'select object(o) from Progetto as o order by o.nome'; - nested throwable: (java.lang.IllegalStateException: Load group 'lista2' is not defined. Defined load groups: [*, lista1])
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.<init>(JDBCJBossQLQuery.java:66)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createJBossQLQuery(JDBCCommandFactory.java:87)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:274)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:505)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)
       at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
       at org.jboss.ejb.EntityContainer.startPmAndInterceptors(EntityContainer.java:1063)
       at org.jboss.ejb.EjbModule.startService(EjbModule.java:422)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy32.start(Unknown Source)
       at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:662)
       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:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.start(Unknown Source)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.IllegalStateException: Load group 'lista2' is not defined. Defined load groups: [*, lista1]
       at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.getLoadGroupMask(JDBCEntityBridge.java:482)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.getLeftJoinCMRNodes(JDBCAbstractQueryCommand.java:460)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.selectEntity(JDBCEJBQLCompiler.java:1885)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:1035)
       at org.jboss.ejb.plugins.cmp.ejbql.ASTSelect.jjtAccept(ASTSelect.java:39)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:524)
       at org.jboss.ejb.plugins.cmp.ejbql.ASTEJBQL.jjtAccept(ASTEJBQL.java:37)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.compileJBossQL(JDBCEJBQLCompiler.java:211)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.<init>(JDBCJBossQLQuery.java:57)
       ... 72 more
      


      The section of jbosscmp-jdbc.xml:

      ...
       <entity>
       <ejb-name>Atsati</ejb-name>
      
       <read-ahead>
       <strategy>on-find</strategy>
       <page-size>10</page-size>
       <eager-load-group>lista1</eager-load-group>
       </read-ahead>
      
       <table-name>atsati</table-name>
      
       <load-groups>
       <load-group>
       <load-group-name>lista1</load-group-name>
       <field-name>nome</field-name>
       </load-group>
       </load-groups>
      
       <query>
       <query-method>
       <method-name>findAll</method-name>
       <method-params></method-params>
       </query-method>
       <jboss-ql>select object(o) from Atsati as o order by o.nome</jboss-ql>
       <!-- <lazy-resultset-loading>true</lazy-resultset-loading> -->
       </query>
       </entity>
      
       <entity>
       <ejb-name>Progetto</ejb-name>
      
       <table-name>progetto</table-name>
      
       <load-groups>
       <load-group>
       <load-group-name>lista2</load-group-name>
       <field-name>nome</field-name>
       <field-name>numerofascicolo</field-name>
       <field-name>tipologia</field-name>
       </load-group>
       </load-groups>
      
       <query>
       <query-method>
       <method-name>findAll</method-name>
       <method-params></method-params>
       </query-method>
       <jboss-ql>select object(o) from Progetto as o order by o.nome</jboss-ql>
      
       <read-ahead>
       <strategy>on-find</strategy>
       <page-size>5500</page-size>
       <eager-load-group>lista2</eager-load-group>
      
      
       <left-join cmr-field="capofila" eager-load-group="lista2" />
       <left-join cmr-field="decretiImpegno" eager-load-group="lista2" />
       <left-join cmr-field="adgoisProgetto" eager-load-group="lista2" />
      
      
       </read-ahead>
       </query>
      
       <query>
       </entity>
      ...
      


      The application was originally developed and deployed on JBoss 3.2.6, but it's working on JBoss 4.0.4.CR2 as well.

      Thanks.