1 Reply Latest reply on Sep 18, 2002 10:37 AM by dhulley

    NullPointerException on EJB invocation

    dhulley

      Hi,

      JBOSS version: jboss-3.0.0_tomcat-4.0.3
      ANT version: jakarta-ant-1.4.1
      OS version: Windows XP pro

      I receive a wrapped NullPointerException that doesn't have a stack trace or an error message when attempting to invoke a method on a stateless session bean. The wrapper exception's stack trace is given below.

      I am running it using the JBOSS 'default' configuration. Unfortunately, I am unable to attach the file to this post for some reason, but if the stack trace below interests you, then email me and I will gratefully mail you the source.

      Any help would be greatly appreciated, even if it is just to say that you compiled and tested and it worked on your machine.

      Thank you in advance
      Regards
      Derek
      ==================================
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy1.setFileName(Unknown Source)
      at test.com.activiti.jmx.ejb.TestReaderEJBTest.testX(TestReaderEJBTest.java:66)
      ...blah...

        • 1. Re: NullPointerException on EJB invocation
          dhulley

          I started using the 3.0.2 default installation, and got the log message on the server.

          My fault: The ejbActivate message was quite correctly not being called, and the log category was therefore null, causing the NullPointerException.

          Sorry to waste anyone's time.

          Derek