axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4758) JAX-WS: A NullPointerException may occur when calling an async method
Date Tue, 29 Jun 2010 20:03:50 GMT
JAX-WS: A NullPointerException may occur when calling an async method
---------------------------------------------------------------------

                 Key: AXIS2-4758
                 URL: https://issues.apache.org/jira/browse/AXIS2-4758
             Project: Axis2
          Issue Type: Bug
            Reporter: Rich Scheuerle
            Assignee: Rich Scheuerle


The following NullPointerException may occur when invoking a JAX-WS async method

 java.lang.NullPointerException
at
org.apache.axis2.jaxws.marshaller.factory.MethodMarshallerFactory.
getMarshaller(MethodMarshallerFactory.java:106) at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.
getFaultResponse(JAXWSProxyHandler.java:473) at org.apache.axis2.jaxws.client.proxy.ProxyAsyncListener.
getFaultResponse(ProxyAsyncListener.java:70) at org.apache.axis2.jaxws.client.async.AsyncResponse.
processFaultResponse(AsyncResponse.java:431) at org.apache.axis2.jaxws.client.async.AsyncResponse.onError
(AsyncResponse.java:129)
...

The problem occurs because the JAX-WS runtime must find and inspect the JAX-WS synchronous
method in some cases.
For example, the synchronous method contains the checked exceptions and must be examined when
the web service
returns a fault.

If the synchronous method has a name that is different than the wsdl operation name, the search
may fail.
This triggers the NullPointerException.


Proposed Solutoin:

I have a small change to the search algorithm which will guarantee that the synchronous method
is found.

Kudos to Paul Mariduena for providing a test and testing this fix.

I will be committing the change later today.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message