axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "parimalb (JIRA)" <>
Subject [jira] Commented: (AXIS2-1835) return a java.lang.List return a java.lang.IllegalArgumentException: null rcl
Date Tue, 08 Jul 2008 10:04:01 GMT


parimalb commented on AXIS2-1835:

Hi Deepal,


I am using Axis2 1.4. I want to return object (Weather) from web method
which contains list of another object (Season object). Season object also
contains list of another objects.  

>From web service client, I am able to access all other properties
(tempreture, rain etc)   except list of season object.  If I convert the
datatype of season list from java.util.list to simple array then it works
fine. But our java classes are already developed and now we want to expose
them as webservice.    


Therefore could you please tell me is there any way to access java list from
object returned from web service? 





"Legal Disclaimer: This electronic message and all contents contain information from Cybage
Software Private Limited which may be privileged, confidential, or otherwise protected from
disclosure. The information is intended to be for the addressee(s) only. If you are not an
addressee, any disclosure, copy, distribution, or use of the contents of this message is strictly
prohibited. If you have received this electronic message in error please notify the sender
by reply e-mail to and destroy the original message and all copies. Cybage has taken every
reasonable precaution to minimize the risk of malicious content in the mail, but is not liable
for any damage you may sustain as a result of any malicious content in this e-mail. You should
carry out your own malicious content checks before opening the e-mail or attachment." 

> return a java.lang.List return a java.lang.IllegalArgumentException: null rcl
> -----------------------------------------------------------------------------
>                 Key: AXIS2-1835
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.1
>         Environment: jdk 1.5
>            Reporter: Benoit Decherf
>            Assignee: Deepal Jayasinghe
>         Attachments: patchBeanUtil.patch, patchSimpleTypeMapper.patch
> I want to create a service which return an object containing a List:
> The object to return:
> public class Container {
>   private List myList = new ArrayList();
>   public List getList() {
>     return myList;
>   }
> }
> The service (pojo) :
> public class MyService {
>   private Container container = new Container();
>   public Container getContainer() {
>     container.getList().add("a test");
>     return container;
>   }
> }
> When I try to access the service I receive an Exception:
> Caused by: java.lang.IllegalArgumentException: null rcl
>         at org.codehaus.jam.internal.reflect.ReflectClassBuilder.<init>(
>         at org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(
> I checked the code, and I saw in the class org/apache/axis2/databinding/utils/BeanUtil,
The only object I can use to send a list is the ArrayList. Why ?
> I change the isArrayList method in org/apache/axis2/databinding/typemapping/SimpleTypeMapper
to detect a java.util.List instead of just the ArrayList and it works fine. So why limit to
ArrayList (and not just Collection)?
> I think there is an other bug which return the IllegalArgumentException in
> In the method getPullParser of the class BeanUtil, there is no check on what returns
beanObject.getClass().getClassLoader() before doing the addClassLoader.
> Some implementations may use null to represent the bootstrap class loader. This method
will return null in such implementations if this class was loaded by the bootstrap class loader.
So that explain why the error is "null rcl".
> Thanks,
> Benoit

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:
For additional commands, e-mail:

View raw message