3 Replies Latest reply on Mar 9, 2006 4:04 AM by Peter Kormos

    Could not instantiate bean under Linux (only?)

    Peter Kormos Newbie

      Hi Guys,

      I've got a CMP entity bean and when our bean package is depoyed, JBoss throws this:

      2006-03-02 13:23:42,674 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract java.util.Collection Br
      okerageInPriceHome.findAll() throws java.rmi.RemoteException,javax.ejb.FinderException:
      javax.ejb.EJBException: Could not instantiate bean
       at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
       at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:96)
       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.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
       at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
       at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
       at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
       at org.jboss.ejb.Container.invoke(Container.java:894)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
       at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
       at sun.rmi.transport.Transport$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at sun.rmi.transport.Transport.serviceCall(Unknown Source)
       at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
       at java.lang.Thread.run(Unknown Source)
      


      The funny thing is that I can use that bean in our client program, even findAll() works OK and retrieves the bean references, but that exception at startup is a bit annoying.

      We use jboss4.0.2 server with 1.4.2 JRE under Linux and Windows XP and the error seems to happen only under Linux (RedHat).

      The deployment descriptors are the followings:

      META-INF\ejb-jar.xml:


      <ejb-jar>
       <display-name>EJBModule1</display-name>
       <enterprise-beans>
       <entity>
       <display-name>BrokerageInPriceBean</display-name>
       <ejb-name>BrokerageInPriceBean</ejb-name>
       <home>BrokerageInPriceHome</home>
       <remote>BrokerageInPriceRemote</remote>
       <local-home>BrokerageInPriceLocalHome</local-home>
       <local>BrokerageInPriceLocal</local>
       <ejb-class>BrokerageInPriceBean</ejb-class>
       <persistence-type>Container</persistence-type>
       <prim-key-class>BrokerageInPriceBeanPK</prim-key-class>
       <reentrant>True</reentrant>
       <cmp-version>2.x</cmp-version>
       <abstract-schema-name>BrokerageInPriceBean</abstract-schema-name>
       <cmp-field>
       <field-name>userId</field-name>
       </cmp-field>
       <cmp-field>
       <field-name>groupUserId</field-name>
       </cmp-field>
       <cmp-field>
       <field-name>reutersCode</field-name>
       </cmp-field>
       <cmp-field>
       <field-name>brokerage</field-name>
       </cmp-field>
       <cmp-field>
       <field-name>brokerageCalculationMode</field-name>
       </cmp-field>
       <query>
       <query-method>
       <method-name>findAll</method-name>
       <method-params />
       </query-method>
       <ejb-ql>select OBJECT(o) from BrokerageInPriceBean AS o</ejb-ql>
       </query>
       </entity>
       </enterprise-beans>
      </ejb-jar>



      META-INF\jboss.xml:

      <jboss>
       <enterprise-beans>
       <entity>
       <ejb-name>BrokerageInPriceBean</ejb-name>
       <jndi-name>env/ejb/BrokerageInPriceBeanRemote</jndi-name>
       <local-jndi-name>env/ejb/BrokerageInPriceBeanLocal</local-jndi-name>
       <configuration-name>Standard CMP EntityBean</configuration-name>
       </entity>
       </enterprise-beans>
      </jboss>



      META-INF\jbosscmp-jdbc.xml:

      <jbosscmp-jdbc>
       <defaults>
       <datasource>java:/CDv2DataSource</datasource>
       <datasource-mapping>Oracle8</datasource-mapping>
       </defaults>
       <enterprise-beans>
       <entity>
       <ejb-name>BrokerageInPriceBean</ejb-name>
       <table-name>BROKERAGE_IN_PRICE</table-name>
       <cmp-field>
       <field-name>userId</field-name>
       <column-name>USER_ID</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>groupUserId</field-name>
       <column-name>GROUP_USER_ID</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>reutersCode</field-name>
       <column-name>REUTERS_CODE</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>brokerage</field-name>
       <column-name>BROKERAGE</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>brokerageCalculationMode</field-name>
       <column-name>BROKERAGE_MODE</column-name>
       </cmp-field>
       </entity>
       </enterprise-beans>
      </jbosscmp-jdbc>


        • 1. Re: Could not instantiate bean under Linux (only?)
          Peter Kormos Newbie

          Could anyone give me some pointers what can be wrong?

          Thanks for your help in advance!

          Regards,

          Peter

          • 2. Re: Could not instantiate bean under Linux (only?)
            Peter Kormos Newbie

            Here's more log from server.log, I hope you don't mind copying it here...


            2006-03-02 15:52:45,474 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:module=testBrokerAgeInPriceBean.jar,service=EjbModule
            2006-03-02 15:52:45,474 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:module=testBrokerAgeInPriceBean.jar,service=EjbModule
            2006-03-02 15:52:45,475 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: BrokerageInPriceBean
            2006-03-02 15:52:45,475 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=env/ejb/BrokerageInPriceBeanRemote,service=EJB
            2006-03-02 15:52:45,476 DEBUG [org.jboss.ejb.EntityContainer] Starting jboss.j2ee:jndiName=env/ejb/BrokerageInPriceBeanRemote,service=EJB
            2006-03-02 15:52:45,476 DEBUG [org.jboss.ejb.EntityContainer] Begin java:comp/env for EJB: BrokerageInPriceBean
            2006-03-02 15:52:45,476 DEBUG [org.jboss.ejb.EntityContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@189c12a
            2006-03-02 15:52:45,477 DEBUG [org.jboss.ejb.EntityContainer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not
            registered.
            2006-03-02 15:52:45,502 DEBUG [org.jboss.ejb.EntityContainer] End java:comp/env for EJB: BrokerageInPriceBean
            2006-03-02 15:52:45,662 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJBLocalHome of BrokerageInPriceBean to env/ejb/BrokerageInPriceBeanLo
            cal
            2006-03-02 15:52:45,758 DEBUG [org.jboss.proxy.ejb.ProxyFactory] (re-)Binding Home env/ejb/BrokerageInPriceBeanRemote
            2006-03-02 15:52:45,883 DEBUG [org.jboss.proxy.ejb.ProxyFactory] Bound BrokerageInPriceBean to env/ejb/BrokerageInPriceBeanRemote
            2006-03-02 15:52:45,888 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.BrokerageInPriceBean] Initializing CMP plugin for BrokerageInPriceBean
            2006-03-02 15:52:46,115 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.BrokerageInPriceBean] Loading standardjbosscmp-jdbc.xml : file:/opt/jboss-4.0.2
            /server/default/conf/standardjbosscmp-jdbc.xml
            2006-03-02 15:52:46,936 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract java.util.Collection com.baxter.cdv2.bean.user.Br
            okerageInPriceHome.findAll() throws java.rmi.RemoteException,javax.ejb.FinderException:
            javax.ejb.EJBException: Could not instantiate bean
             at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
             at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:96)
             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.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
             at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
             at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
             at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
             at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
             at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
             at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
             at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
             at org.jboss.ejb.Container.invoke(Container.java:894)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
             at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
             at sun.rmi.transport.Transport$1.run(Unknown Source)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.rmi.transport.Transport.serviceCall(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
             at java.lang.Thread.run(Unknown Source)
            2006-03-02 15:52:48,686 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.BrokerageInPriceBean] jar:file:/opt/jboss-4.0.2/server/default/tmp/deploy/tmp17
            1testBrokerAgeInPriceBean.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
            2006-03-02 15:52:50,381 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 60000 old interval: 9223
            372036854775807
            2006-03-02 15:52:50,382 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1141314800381, new ne
            xt: 1141314800381
            2006-03-02 15:52:50,382 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 30000
            2006-03-02 15:52:50,383 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using properties: {user=cdv2_user, password=--hidden--}
            2006-03-02 15:52:50,383 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Checking driver for URL: jdbc:oracle:thin:@192.168.9.216:1
            521:cdv2
            2006-03-02 15:52:50,384 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver not yet registered for url: jdbc:oracle:thin:@192.1
            68.9.216:1521:cdv2
            2006-03-02 15:52:50,414 DEBUG [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver already registered for url: jdbc:oracle:thin:@192.1
            68.9.216:1521:cdv2
            2006-03-02 15:52:52,307 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract java.util.Collection com.baxter.cdv2.bean.user.Br
            okerageInPriceHome.findAll() throws java.rmi.RemoteException,javax.ejb.FinderException:
            javax.ejb.EJBException: Could not instantiate bean
             at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
             at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:96)
             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.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
             at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
             at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
             at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
             at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
             at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
             at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
             at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
             at org.jboss.ejb.Container.invoke(Container.java:894)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
             at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
             at sun.rmi.transport.Transport$1.run(Unknown Source)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.rmi.transport.Transport.serviceCall(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
             at java.lang.Thread.run(Unknown Source)
            
            2006-03-02 15:52:57,387 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract java.util.Collection com.baxter.cdv2.bean.user.Br
            okerageInPriceHome.findAll() throws java.rmi.RemoteException,javax.ejb.FinderException:
            javax.ejb.EJBException: Could not instantiate bean
             at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
             at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:96)
             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.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
             at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
             at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
             at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
             at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
             at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
             at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
             at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
             at org.jboss.ejb.Container.invoke(Container.java:894)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
             at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             at java.lang.reflect.Method.invoke(Unknown Source)
             at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
             at sun.rmi.transport.Transport$1.run(Unknown Source)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.rmi.transport.Transport.serviceCall(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
             at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
             at java.lang.Thread.run(Unknown Source)
            2006-03-02 15:53:00,285 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.BrokerageInPriceBean] Insert Entity SQL: INSERT INTO BROKERAGE_IN_PRICE
            (USER_ID, REUTERS_CODE, GROUP_USER_ID, BROKERAGE, BROKERAGE_MODE) VALUES (?, ?, ?, ?, ?)
            2006-03-02 15:53:00,286 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.BrokerageInPriceBean] Entity Exists SQL: SELECT COUNT(*) FROM BROKERAGE_
            IN_PRICE WHERE USER_ID=? AND REUTERS_CODE=?
            2006-03-02 15:53:00,287 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.BrokerageInPriceBean] entity-command: [commandName=default,commandClass=class
             org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand,attributes={}]
            


            • 3. Re: Could not instantiate bean under Linux (only?)
              Peter Kormos Newbie

              Hi Guys,

              I think we've found the problem: One of our programs was trying to access the bean via a call to findAll() meanwhile the appserver was starting...and this caused this exception.

              I hope this helps others with the same problem.

              Peter