You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jacek Kempski <ja...@camline.com> on 2003/10/06 08:20:19 UTC

Linux / Windows SoapFaultBuilder NullPointerException

Hello all,

I am experiencing a strange problem.

My service has a signature 

public String getNames(String meta)

I have 4 machines:
1) Windows 2000, Service Pack 3
2) Windows 2000, Service Pack 3
3) SuSE Linux 8.0
4) SuSE Linux 8.1

All machines but the 4th (JDK1.4.1_01) run JDK1.4.2, axis1.1 and tomcat 5 or,  alternatively, Jetty 4.2.12
which does not change a thing. Also the switch from Xerces 2.0.1 to xerces 2.5 does not change anything.

Each machine is a server and a client simultaneously and tries to talk to all other
machines in a given interval.

The problem is:
1) A linux machine (acting as client) can talk to second linux machine, no issue there.
2) A windows machine (acting as client) can talk to linux machines, also no issue
3) A linux machine cannot get service from windows machine
4) and a windows machine cannot get service from another windows machine.

In other words: when the server is linux, everything is OK, when the server is W2K nothing is OK.

Does somebody have an idea on that? I need the inter OS interoperability ...
Oh, writing this i realize that the String returned by the service is some 400 characters. Just a concatenated list,
with elements separated by a semicolon...

The stack trace is: (copied from previous messages as i don't have the trace at hand, but it's identical)
---------------------------------------------------------------------------------------------------------
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException <http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
 faultSubcode: 
 faultString: java.lang.NullPointerException
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace: <http://xml.apache.org/axis/%7DstackTrace:> AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException <http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
 faultSubcode: 
 faultString: java.lang.NullPointerException
 faultActor: 
 faultNode: 
 faultDetail: 

java.lang.NullPointerException
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(UnknownSource)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(UnknownSource)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:2248)
        at org.apache.axis.client.Call.invoke(Call.java:2171)
        at org.apache.axis.client.Call.invoke(Call.java:1691)
-------------------------------------------------------------------------------------------------------------

Thanks a lot,
Regards,

Jacek Kempski