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 "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/04 13:38:34 UTC

[jira] [Resolved] (AXIS2-5141) An error is thrown when pass null value as the Enum parameter

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

Sagara Gunathunga  resolved AXIS2-5141.
---------------------------------------

    Resolution: Fixed

Fixed in r1178758.
                
> An error is thrown when pass null value as the Enum parameter 
> --------------------------------------------------------------
>
>                 Key: AXIS2-5141
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5141
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, kernel
>    Affects Versions: 1.7.0
>            Reporter: Shameera Rathnayaka
>            Assignee: Shameera Rathnayaka
>              Labels: Enum
>             Fix For: 1.7.0
>
>         Attachments: AXIS2-5141.patch
>
>
> When pass null as parameter to the method which requires Enum as the method parameter it throws following Exception 
> [ERROR] No enum const class org.apache.axis2.axis2userguide.EnumService$Status.
> java.lang.IllegalArgumentException: No enum const class org.apache.axis2.axis2userguide.EnumService$Status.
> 	at java.lang.Enum.valueOf(Enum.java:196)
> 	at org.apache.axis2.databinding.utils.BeanUtil.processEnumObject(BeanUtil.java:1088)
> 	at org.apache.axis2.databinding.utils.BeanUtil.processElement(BeanUtil.java:945)
> 	at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:818)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:182)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:235)

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