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

Sagara Gunathunga  resolved AXIS2-5293.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.3
                   1.7.0

Fixed in r1328228.
                
> Axis2 should not generate minOccurs="0"  for java primitive types. 
> -------------------------------------------------------------------
>
>                 Key: AXIS2-5293
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5293
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.6, 1.6.1
>            Reporter: Sagara Gunathunga 
>            Assignee: Sagara Gunathunga 
>            Priority: Critical
>             Fix For: 1.7.0, 1.6.3
>
>
> Axis2 POJO support generate minOccurs="0"  elements for java primitive 
> parameters that will allows to omit relevant XML element from request 
> messages. During the unmarshallings process null value is used to represent 
> values of those omitted request elements.  Finally this will result into 
> IllegalArgumentException when it try to pass null value for primitive 
> parameters through Java reflection. As a solution Axis2 should not generate 
> minOccurs="0" for primitive parameters.
> java.lang.IllegalArgumentException
>     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:597)
>     at 
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
>     at 
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>     at 
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>         

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to