14 Replies Latest reply on Oct 26, 2004 8:35 AM by Thomas Diesler

    NullpointerException in Axis

    Robert Szalai Newbie

      I'm trying to access a remote web service from a session bean.
      I have followed the instructions in this Wiki page:
      http://www.jboss.org/wiki/Wiki.jsp?page=WSClientEJB

      Service lookup from JNDI is successful and I can obtain the web service
      port, but when I invoke a method on the service endpoint interface I get
      the following exception:

      2004-10-04 13:24:59,868 ERROR [org.jboss.webservice.client.PortProxy] Port error
      java.lang.NullPointerException
       at org.apache.axis.client.AxisClientProxy.proxyParams2CallParams(AxisClientProxy.java:130)
       at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:249)
       at $Proxy284.getPresence(Unknown Source)
       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.webservice.client.PortProxy.invoke(PortProxy.java:93)
       at $Proxy284.getPresence(Unknown Source)
       ....


      Does anyone know what to do?