1 Reply Latest reply on May 4, 2003 9:15 PM by Marc

    NullPointerException deploying RAR in 3.2

    Marc Newbie

      I have a fairly simple connection factory configuration file, kodo-ds.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <connection-factories>
      <tx-connection-factory>
      <jndi-name>kodo</jndi-name>
      <adapter-display-name>Kodo JDO Adapter</adapter-display-name>
      <config-property name="LicenseKey" type="java.lang.String">ENTERME</config-property>
      </tx-connection-factory>
      </connection-factories>


      When trying to deploy this against the kodo.rar file (which worked perfectly with JBoss version 3.0.X), I see a NPE in the server log:

      20:54:13,999 DEBUG [LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceDeployer,type=org.jboss.deployment.SubDeployer.create,sequenceNumber=36,timeStamp=1052096053998,message=null,userData=org.jboss.deployment.DeploymentInfo@f64999e4 { url=file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@e8a591
      status: null
      state: CREATE_DEPLOYER
      watch: file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml
      lastDeployed: 1052096053628
      lastModified: 1052096053000
      mbeans:
      jboss.jca:service=TxCM,name=kodo state: Stopped
      jboss.jca:service=ManagedConnectionPool,name=kodo state: Stopped
      jboss.jca:service=ManagedConnectionFactory,name=kodo state: Stopped
      ]
      20:54:14,016 DEBUG [MainDeployer] Done with create step of deploying kodo-ds.xml
      20:54:14,020 DEBUG [MainDeployer] Begin deployment start file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml
      20:54:14,024 DEBUG [SARDeployer] Deploying SAR, start step: url file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml
      20:54:14,026 DEBUG [ServiceController] starting service jboss.jca:service=TxCM,name=kodo
      20:54:14,029 DEBUG [ServiceController] waiting in start jboss.jca:service=TxCM,name=kodo on jboss.jca:service=ManagedConnectionPool,name=kodo
      20:54:14,032 DEBUG [ServiceController] starting service jboss.jca:service=ManagedConnectionPool,name=kodo
      20:54:14,035 DEBUG [ServiceController] waiting in start jboss.jca:service=ManagedConnectionPool,name=kodo on jboss.jca:service=ManagedConnectionFactory,name=kodo
      20:54:14,040 DEBUG [ServiceController] starting service jboss.jca:service=ManagedConnectionFactory,name=kodo
      20:54:14,042 DEBUG [ServiceController] waiting in start jboss.jca:service=ManagedConnectionFactory,name=kodo on jboss.jca:service=RARDeployment,name=Kodo JDO Adapter
      20:54:14,044 DEBUG [LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceDeployer,type=org.jboss.deployment.SubDeployer.start,sequenceNumber=37,timeStamp=1052096054044,message=null,userData=org.jboss.deployment.DeploymentInfo@f64999e4 { url=file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml }
      deployer: org.jboss.deployment.XSLSubDeployer@e8a591
      status: Starting
      state: START_DEPLOYER
      watch: file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml
      lastDeployed: 1052096053628
      lastModified: 1052096053000
      mbeans:
      jboss.jca:service=TxCM,name=kodo state: Stopped
      jboss.jca:service=ManagedConnectionPool,name=kodo state: Stopped
      jboss.jca:service=ManagedConnectionFactory,name=kodo state: Stopped
      ]
      20:54:14,058 DEBUG [JCAResource] Could not create JSR-77 JCAResource: kodo
      java.lang.NullPointerException
      at org.jboss.management.j2ee.J2EEResource.getParentKeys(J2EEResource.java:68)
      at org.jboss.management.j2ee.J2EEManagedObject.(J2EEManagedObject.java:145)
      at org.jboss.management.j2ee.J2EEResource.(J2EEResource.java:52)
      at org.jboss.management.j2ee.JCAResource.(JCAResource.java:133)
      at org.jboss.management.j2ee.JCAResource.create(JCAResource.java:65)
      at org.jboss.management.j2ee.factory.JCAResourceFactory.create(JCAResourceFactory.java:69)
      at org.jboss.management.j2ee.LocalJBossServerDomain.handleNotification(LocalJBossServerDomain.java:362)
      at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:71)
      at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:82)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:245)
      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:549)
      at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:177)
      at $Proxy16.start(Unknown Source)
      at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:220)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor28.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:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:280)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      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:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      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:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:242)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      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:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:361)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:268)
      at org.jboss.Main.boot(Main.java:156)
      at org.jboss.Main$1.run(Main.java:394)
      at java.lang.Thread.run(Thread.java:554)
      20:54:14,084 DEBUG [MainDeployer] End deployment start on package: kodo-ds.xml
      20:54:14,084 INFO [MainDeployer] Deployed package: file:/Users/mprudhom/Applications/JBoss/jboss-3.2.0/server/default/deploy/kodo-ds.xml



      Can anyone provide a hint about how to get around this problem?

        • 1. Re: NullPointerException deploying RAR in 3.2
          Marc Newbie

          I think I figured it out. I fixed the "adapter-display-name" element to match the ra.xml's "display-name", and it seems to have deployed fine.

          As a suggestion, a more descriptive error message than a NPE would be useful in tracking down the cause of this potentially common misconfiguration.