4 Replies Latest reply on Sep 5, 2002 9:21 AM by dugu

    Help problem with CMP

    dugu Newbie

      Hi,

      I got the following when I startup JBoss deploying my CMP2 Bean :

      :
      14:14:11,071 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.1/server/default/deploy/MyTestingCMP20.jar
      14:14:11,212 INFO [EjbModule] Creating
      14:14:11,242 INFO [EjbModule] Deploying CMP20Product
      14:14:11,402 INFO [EjbModule] Created
      14:14:11,402 INFO [EjbModule] Starting
      14:14:11,612 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB,jndiName=CMP20Product
      java.lang.NullPointerException
      at javax.naming.InitialContext.getURLScheme(InitialContext.java:224)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:273)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:96)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
      at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
      at org.jboss.ejb.Container.invoke(Container.java:755)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
      at $Proxy6.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:396)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy19.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
      at sun.reflect.GeneratedMethodAccessor20.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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
      at $Proxy6.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:396)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy5.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:394)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at sun.reflect.GeneratedMethodAccessor14.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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:238)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
      at sun.reflect.GeneratedMethodAccessor7.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:491)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:396)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
      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:491)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:142)
      at org.jboss.Main$1.run(Main.java:375)
      at java.lang.Thread.run(Thread.java:536)
      14:14:11,953 INFO [EjbModule] Started
      14:14:11,963 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.1/server/default/deploy/MyTestingCMP20.jar
      14:14:11,963 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.1/server/default/deploy/jmx-console.war/
      14:14:12,263 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=0,context=/jmx-console
      14:14:12,313 INFO [jbossweb] Checking Resource aliases
      14:14:13,575 INFO [jbossweb] Started WebApplicationContext[/jmx-console,file:/D:/jboss-3.0.1/server/default/deploy/jmx-console.war/]
      14:14:13,835 INFO [jbossweb] successfully deployed file:/D:/jboss-3.0.1/server/default/deploy/jmx-console.war/ to /jmx-console
      14:14:13,845 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.1/server/default/deploy/jmx-console.war/
      14:14:13,845 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss-3.0.1/server/default/deploy/test.war/
      14:14:13,936 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=1,context=/test
      14:14:14,566 INFO [jbossweb] Started WebApplicationContext[/test,file:/D:/jboss-3.0.1/server/default/deploy/test.war/]
      14:14:14,596 INFO [jbossweb] successfully deployed file:/D:/jboss-3.0.1/server/default/deploy/test.war/ to /test
      14:14:14,606 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.1/server/default/deploy/test.war/
      14:14:14,616 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:service=EJB,jndiName=CMP20Product
      state: FAILED
      I Depend On:
      Depends On Me: java.lang.NullPointerException]
      14:14:14,667 INFO [URLDeploymentScanner] Started
      14:14:14,667 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.1/server/default/conf/jboss-service.xml
      14:14:14,677 INFO [Server] JBoss (MX MicroKernel) [3.0.1 Date:200208062340] Started in 0m:13s:670ms

      I use MySQL with the correct mysql-access.xml.
      When I use the default Hypersonic DB, there is no problem. Also, using BMP is OK. Why is there a NullPointerException on JndiName? What does it mean to have incomplete deployment descriptor? I double check and all is fine....

      Can somebody give me a clue on what could cause these errors?