I was able to resolve this issue with a minor change to the
getPullParser(Object, QName, TypeTable, boolean) method of
org.apache.axis2.databinding.utils.BeanUtils.
Changing:
jam_service_parms.addClassLoader(beanObject.getClass().getClassLoader())
;
to:
ClassLoader cl = beanObject.getClass().getClassLoader();
if (cl!=null){
jam_service_parms.addClassLoader(cl);
}else{
jam_service_parms.addClassLoader(Thread.currentThread().getContextClassL
oader());
}
averted the null class loader and properly deserialized my java Boolean.
This seems like a solid resolution and may fix another (seemingly
related?) JIRA I came across:
https://issues.apache.org/jira/browse/AXIS2-2054?page=com.atlassian.jira
.plugin.system.issuetabpanels:all-tabpanel
________________________________
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 10:20 AM
To: [email protected]
Subject: RE: [Axis2] java.lang.IllegalArgumentException: null rcl
Perhaps this is a bug? I removed my custom wsdl and let Axis2 generate
it for me. I am seeing the same issue while trying to get the class
loader for the java.lang.Boolean class. I suspect since this class is in
the boot class loader, null is returned from getClassloader() call? Can
anyone suggest a workaround to force the Boolean class into the webapp
class loader?
If this IS a bug, should I log a JIRA, or is it a KI?
Thanks,
Ted
________________________________
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 6:00 PM
To: [email protected]
Subject: RE: [Axis2] java.lang.IllegalArgumentException: null rcl
More info...
In debug, I can see the issue is spawning from the following call to the
constructor of ReflectClassBuilder in the JamServiceFactoryImpl class
(from the annogen jar):
public ReflectClassBuilder(ClassLoader rcl) {
if (rcl == null) throw new IllegalArgumentException("null rcl");
mLoader = rcl;
}
There is a class loader array with two values: a null and a system class
loader. The null class loader is being passed in this case for a class
of type java Boolean. The java object arrays seem to process fine prior
to this point. Any ideas?
I am using Axis2 1.1.1.
Thanks,
Ted
________________________________
From: Ted Jones [mailto:[EMAIL PROTECTED]
Sent: Friday, February 09, 2007 2:05 PM
To: [email protected]
Subject: [Axis2] java.lang.IllegalArgumentException: null rcl
I am encountering the following exception in the Stax parser of Axis2
while rendering the results from my web service:
org.apache.axiom.om.OMException: java.lang.IllegalArgumentException:
null rcl
I have read some threads indicating there issues related to java
collections returned in Axis2. I have arrays of java objects being
returned. Does anyone know if this is indeed an issue and if there is a
workaround?
Thanks,
Ted