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.6.1, 1.5.6
            Reporter: Sagara Gunathunga 
            Assignee: Sagara Gunathunga 
            Priority: Critical


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: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to