[JBossWS] - Call.setReturnType gives NPE
by p_repetti
Hello
I am using JBossWS inside JBoss AS 4.2.2GA. I guess the WS version is 2.0.1GA.
I get a NullPointer calling setReturnType(null) on an instance of Call.
The Java EE doc for setReturnType javax.xml.rpc.Call says that
"Invoking setReturnType(null) removes the return type for this Call object."
and so does the JBoss implementation, org.jboss.ws.core.jaxrpc.client.CallImpl.
The jboss stack trace is
Caused by: java.lang.NullPointerException
at org.jboss.ws.core.binding.TypeMappingImpl$IQName.(TypeMappingImpl.java:702)
at org.jboss.ws.core.binding.TypeMappingImpl.getJavaType(TypeMappingImpl
.java:214)
at org.jboss.ws.core.jaxrpc.client.CallImpl.setReturnType(CallImpl.java:
239)
I downloaded the sources and followed the stack trace. It looks to me that the NPE is justified, since the IQName constructor does not check the passed qname against null:
public IQName(QName name)
{
namespace = name.getNamespaceURI() != null ? name.getNamespaceURI().intern() : "".intern();
localPart = name.getLocalPart() != null ? name.getLocalPart().intern() : "".intern();
prefix = name.getPrefix() != null ? name.getPrefix().intern() : "".intern();
hash = name.hashCode();
}
Has anyone had the same problem ? Is it necessary to open a bug ?
-- Pierangelo
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221957#4221957
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221957
15 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: axis.jar incompatibility
by jaikiran
"BjPenn" wrote : mmmmmmmmm my aplication is packaged as a WAR and i include the axis.jar in my web-inf/lib.so i dont think i need to change my classloader or classpath cause i include the jar in the web-inf/lib.
|
Good point :) The WARs have isolated classloaders by default.
"BjPenn" wrote :
| get me out of the darkeness ;)
|
|
Looking at the exception:
anonymous wrote : Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.commons.collections.map.LazyMap.decorate
I think you don't have a complete set of required jar files in your application package. I think you might be missing the jar file containing the org.apache.commons.* and other related packages. Can you post the output of
jar -tf myapp.war
I'm mainly interested in the contents of the lib folder of the war
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221949#4221949
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221949
15 years, 3 months