Lines 143 and 144 of org.apache.axis.encoding.ser.ArraySerializer need to be reversed. When the componentType of the array is an interface rather than a class, the first call to searchCls.getSuperclass() returns null (interfaces have no superclass), which causes an NPE in the bowels of axis.


Here's the code snippet:


if (componentQName == null) {
Class searchCls = componentType;
while(searchCls != null && componentQName == null) {
searchCls = searchCls.getSuperclass(); <- 143
componentQName = context.getQNameForClass(searchCls); <- 144
}
if (componentQName != null) {
componentType = searchCls;
}
}

-- Peter Molettiere Senior Engineer Truereq, Inc. http://www.truereq.com/



Reply via email to