0 Replies Latest reply on Sep 22, 2002 11:22 AM by Yi-Shan Ho

    JBoss 3.0.2 + MySql 3.2.3 cause a NullPointerException?

    Yi-Shan Ho Newbie

      I'm new for JBoss. And I create an entity bean using MySQL. I copied the driver of MySql to JBOSS_HOME\lib, modified the mysql-service.xml and jbosscmp-jdbc.xml. But when I deploy it, jboss throws a NullPointerException shows below:

      21:22:40,168 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB,jndiName=AccountRemote

      java.lang.NullPointerException

      at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38)

      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:103)

      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:764)

      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

      at $Proxy5.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:396)

      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:517)

      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

      at $Proxy24.start(Unknown Source)

      at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)

      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:517)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)

      at $Proxy5.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:396)

      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:517)

      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

      at $Proxy10.start(Unknown Source)

      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:394)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)

      at sun.reflect.GeneratedMethodAccessor10.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:517)

      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$ScannerThread.doScan(AbstractDeploymentScanner.java:212)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)

      Can anyone tell me what's the problem?