[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-dev
Subject:    [jira] Created: (AXIS2-4758) JAX-WS: A NullPointerException may
From:       "Rich Scheuerle (JIRA)" <jira () apache ! org>
Date:       2010-06-29 20:03:50
Message-ID: 21398963.121421277841830899.JavaMail.jira () thor
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic