2 Replies Latest reply on May 3, 2002 2:22 PM by Adrian Brock

    NullPointerException when deploying Interest Example

    Mark Hunter Newbie

      I have installed JBoss on Win XP, with JDK 1.4.0. I have set up the JDIST_HOME, CLASSPATH and JAVA_HOME environment variables.

      When I attempt to deploy the Interest Example (or a simply WorldWorld Stateless Session bean I get the following:

      [Container factory] Deploying Interest
      [Container factory] Container Invoker RMI Port='4444'
      [Container factory] Container Invoker Client SocketFactory='Default'
      [Container factory] Container Invoker Server SocketFactory='Default'
      [Container factory] Container Invoker Server SocketAddr='Default'
      [Container factory] Container Invoker Optimize='true'
      [Container factory] Begin java:comp/env for EJB: Interest
      [Container factory] TCL: java.net.URLClassLoader@dada24
      [Container factory] End java:comp/env for EJB: Interest
      [Container factory] Mapped calculateCompoundInterest 130738471to public double org.jboss.docs.interest.InterestBean.calculateCompoundInterest(double,double,double)
      [Container factory] Mapped Container method remove HASH -1842617161
      [Container factory] Mapped Container method getEJBHome HASH -993218923
      [Container factory] Mapped Container method getHandle HASH 1182305581
      [Container factory] Mapped Container method getPrimaryKey HASH -131865408
      [Container factory] Mapped Container method isIdentical HASH 285457048
      [Container factory] Mapping create
      [Container factory] Mapping remove
      [Container factory] Mapping remove
      [Container factory] Mapping getEJBMetaData
      [Container factory] Mapping getHomeHandle
      [Container factory] JRMP 1.3 CI initialized
      [Container factory] java.lang.NullPointerException
      [Container factory] at sun.rmi.server.LoaderHandler.urlsToPath(LoaderHandler.java:766)
      [Container factory] at sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:236)
      [Container factory] at java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java:648)
      [Container factory] at java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:378)
      [Container factory] at sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)
      [Container factory] at sun.rmi.server.MarshalOutputStream.annotateProxyClass(MarshalOutputStream.java:86)
      [Container factory] at java.io.ObjectOutputStream.writeProxyDesc(ObjectOutputStream.java:1121)
      [Container factory] at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1098)
      [Container factory] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1239)
      [Container factory] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
      [Container factory] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
      [Container factory] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      [Container factory] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:261)
      [Container factory] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:240)
      [Container factory] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.rebind(JRMPContainerInvoker.java:604)
      [Container factory] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:274)
      [Container factory] at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:192)
      [Container factory] at org.jboss.ejb.Application.start(Application.java:218)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:374)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [Container factory] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [Container factory] at java.lang.reflect.Method.invoke(Method.java:324)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [Container factory] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [Container factory] at java.lang.reflect.Method.invoke(Method.java:324)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at java.lang.Thread.run(Thread.java:536)
      [Container factory] java.lang.NullPointerException
      [Container factory] at sun.rmi.server.LoaderHandler.urlsToPath(LoaderHandler.java:766)
      [Container factory] at sun.rmi.server.LoaderHandler.getClassAnnotation(LoaderHandler.java:236)
      [Container factory] at java.rmi.server.RMIClassLoader$2.getClassAnnotation(RMIClassLoader.java:648)
      [Container factory] at java.rmi.server.RMIClassLoader.getClassAnnotation(RMIClassLoader.java:378)
      [Container factory] at sun.rmi.server.MarshalOutputStream.annotateClass(MarshalOutputStream.java:78)
      [Container factory] at sun.rmi.server.MarshalOutputStream.annotateProxyClass(MarshalOutputStream.java:86)
      [Container factory] at java.io.ObjectOutputStream.writeProxyDesc(ObjectOutputStream.java:1121)
      [Container factory] at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1098)
      [Container factory] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1239)
      [Container factory] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
      [Container factory] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
      [Container factory] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      [Container factory] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:261)
      [Container factory] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:240)
      [Container factory] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.rebind(JRMPContainerInvoker.java:604)
      [Container factory] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:274)
      [Container factory] at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:192)
      [Container factory] at org.jboss.ejb.Application.start(Application.java:218)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:374)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [Container factory] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [Container factory] at java.lang.reflect.Method.invoke(Method.java:324)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Container factory] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [Container factory] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [Container factory] at java.lang.reflect.Method.invoke(Method.java:324)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Container factory] at java.lang.Thread.run(Thread.java:536)
      [J2EE Deployer Default] Starting interest.jar failed!

      Please can someone help as I can't get anything working at all.

      Thanks.