0 Replies Latest reply on Feb 26, 2002 10:35 AM by Paul Wisneskey

    NullPointerException when deploying Interest example

    Paul Wisneskey Newbie

      I'm trying out JBoss in consideration of using it for a new project at my company, and am getting the following exeption when working through the documentation examples. This occurs after I try to deploy the Interest example using ant intro-interest-deploy. I am running the JBoss 2.4-4 binary build with Sun JRE build 1.3.1-b24 on SuSe Linux 7.2.

      Any suggestions on resolving this problem would be greatly appreciated!

      - Paul


      [INFO,AutoDeployer] Auto deploy of file:/mnt/data2/projects/JBoss-2.4.4/deploy/interest.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/mnt/data2/projects/JBoss-2.4.4/deploy/interest.jar
      [INFO,J2eeDeployer] Create application interest.jar
      [INFO,J2eeDeployer] install EJB module interest.jar
      [INFO,ContainerFactory] Deploying:file:/mnt/data2/projects/JBoss-2.4.4/tmp/deploy/Default/interest.jar
      [INFO,ContainerFactory] Deploying Interest
      [ERROR,ContainerFactory] InternalError
      java.lang.NullPointerException
      at sun.rmi.server.LoaderHandler.urlsToPath(LoaderHandler.java:410)
      at sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:209)
      at java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:140)
      at sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:76)
      at sun.rmi.server.MarshalOutputStream.annotateProxyClass(MarshalOutputStream.java:84)
      at java.io.ObjectOutputStream.outputClassDescriptor(ObjectOutputStream.java:940)
      at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1156)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
      at java.rmi.MarshalledObject.(MarshalledObject.java:95)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:261)
      at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:240)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.rebind(JRMPContainerInvoker.java:636)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:275)
      at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:192)
      at org.jboss.ejb.Application.start(Application.java:218)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:374)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at java.lang.Thread.run(Thread.java:484)
      [ERROR,J2eeDeployer] Starting interest.jar failed!
      [ERROR,Default] org.jboss.deployment.DeploymentException: Could not deploy file:/mnt/data2/projects/JBoss-2.4.4/tmp/deploy/Default/interest.jar, Cause: java.lang.NullPointerException
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:403)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      [ERROR,Default]
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [ERROR,Default]
      [ERROR,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      [ERROR,Default]
      [ERROR,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      [ERROR,Default]
      [ERROR,Default] at java.lang.Thread.run(Thread.java:484)
      [ERROR,Default]
      [INFO,J2eeDeployer] Module interest.jar is not running
      [INFO,J2eeDeployer] Destroying application interest.jar
      [ERROR,AutoDeployer] DeploymentInfo failed:file:/mnt/data2/projects/JBoss-2.4.4/deploy/interest.jar
      org.jboss.deployment.J2eeDeploymentException: Error while starting interest.jar: Could not deploy file:/mnt/data2/projects/JBoss-2.4.4/tmp/deploy/Default/interest.jar, Cause: org.jboss.deployment.DeploymentException: Could not deploy file:/mnt/data2/projects/JBoss-2.4.4/tmp/deploy/Default/interest.jar, Cause: java.lang.NullPointerException
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at java.lang.Thread.run(Thread.java:484)