5 Replies Latest reply on Apr 26, 2005 3:56 AM by Arun Kumar

    createBeanClassInstanceCommand == null

    skully Newbie

      I am trying out the rc2 with JBoss 3.2.3 using MS Sequel Server 2000. After I converted my EJB's to the pure CMP model as described in the wiki and from examples from the "released" modules, the createBeanClassInstanceCommand == null error shows up when the module is started and tries to use a findAll(). The modules worked before I converted them and the quotes module worked before I added the fileset attributes (include name="org/jboss/nukes/core/ejb/UserEJB.java"...) in the build.xml.

      Not sure what is wrong and any help is appreciated.

      Here is the stack trace for the quotes module, if you need anything else...

      15:52:46,682 ERROR [LogInterceptor] RuntimeException:
      java.lang.IllegalStateException: createBeanClassInstanceCommand == null
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance(JDBCStoreManager.java:542)
      at org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:119)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:250)
      at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:226)
      at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:168)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
      at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:483)
      at org.jboss.ejb.Container.invoke(Container.java:720)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:293)
      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
      at $Proxy121.findAll(Unknown Source)
      at org.jboss.nukes.addons.modules.quotes.QuotesModule.updateQuotesCache(QuotesModule.java:641)
      at org.jboss.nukes.addons.modules.quotes.QuotesModule.start(QuotesModule.java:106)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectReferenceInterceptor.java:59)
      at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttributeInterceptor.java:43)
      at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceInterceptor2.java:93)
      at org.jboss.nukes.mx.LifeCycleInterceptor.transition(LifeCycleInterceptor.java:172)
      at org.jboss.nukes.mx.LifeCycleInterceptor.start(LifeCycleInterceptor.java:134)
      at org.jboss.nukes.mx.LifeCycleInterceptor.invoke(LifeCycleInterceptor.java:64)
      at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at org.jboss.system.ServiceController.start(ServiceController.java:411)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy113.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)

        • 1. Re: createBeanClassInstanceCommand == null
          Viet Master

          this seem to be a CMP bug, never seen before

          • 2. Re: createBeanClassInstanceCommand == null
            Aaron Tang Newbie

            In the latest nukes snapshot, the same problem exists in news module, I have to change the generated jbosscmp-jdbc.xml from

            <post-table-create>
            <sql-statement>CREATE UNIQUE name ON nukes_news_topics (name);</sql-statement>
            </post-table-create>

            to

            <post-table-create>
            <sql-statement>CREATE UNIQUE name ON nuke_news_topics (name);</sql-statement>
            </post-table-create>

            I don't know why:(

            • 3. Re: createBeanClassInstanceCommand == null
              Viet Master

              I have looked at my version and the statement is corrected, try to get it from the CVS, the snapshot may be lagging behind the CVS (I hope not)

              • 4. Re: createBeanClassInstanceCommand == null
                skully Newbie

                For some reason the only way to get the modules to work is to actually remove the fileset with the include UserEJB et. al. block from their build files. I'm not sure what limitations that will pose on the modules, but they seem to work fine for the moment.

                I also cannot get the source from the cvs due to a company firewall or blocked port problem and my project isn't of dire importance to bother the help desk with it. I can try the cvs snapshot again and see if that is working, it should be updated by now right?

                I appreciate your quick responses and the help you have provided. I would be lost without this forum. Thank you.

                • 5. Re: createBeanClassInstanceCommand == null
                  Arun Kumar Newbie

                  This is in thread to last message : createBeanClassInstanceCommand == null . This error is generated when I try to create an instance of Entity bean through its home.create() method .
                  Will you ellaborate in details what type of configuration error it is. I am using SQL server 2000, EJB CMP, jsdk1.4.
                  Also let me know the exact configuration that I need to made in number of files ?.xml, ?.xml etc....
                  This is an urgent request .. pls make it fast ..
                  thanks in advance