You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Isuru Eranga Suriarachchi (JIRA)" <ji...@apache.org> on 2011/01/17 17:27:43 UTC

[jira] Updated: (AXIS2-4044) NullPointerException on web method with array return value and List parameter

     [ https://issues.apache.org/jira/browse/AXIS2-4044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Isuru Eranga Suriarachchi updated AXIS2-4044:
---------------------------------------------

    Attachment: ArrayReturnService.jar

Attaching a sample jaxws service which returns a String Array. This can be used to test this issue.

Thanks,
~Isuru

> NullPointerException on web method with array return value and List parameter
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-4044
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4044
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.4.1
>         Environment: Windows 2003 server 64 bit, Tomcat 5.5.26, JDK 1.5.0_10
>            Reporter: Steve Park
>            Assignee: Isuru Eranga Suriarachchi
>         Attachments: ArrayReturnService.jar
>
>
> I've deployed a JAXWS web service that uses JAXB binding classes on the client and the server.  I get a NullPointerException when attempting to call a web method with the following signature:
> public String[] webMethod(Object token, List<String> listParam, boolean boolParam)
> I traced the problem to the setReturnType method of the org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCConverter class.  Instead of returning an array class as the type, the method.getGenericReturnType() method returns a GenericTypeArrayImpl object.  Since this type isn't handled in the if clause of the setReturnType method, the return type on the web method is set to null.

-- 
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