axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Jungblut (JIRA)" <>
Subject [jira] Created: (AXIS-1641) NullPointerException with JDK 1.5
Date Wed, 03 Nov 2004 09:44:32 GMT
NullPointerException with JDK 1.5

         Key: AXIS-1641
     Project: Axis
        Type: Bug
    Versions: 1.1    
 Environment: JDK1.5 on both Linux and Windows XP SP1
    Reporter: Thorsten Jungblut
    Priority: Critical

I get the following exception if using JDK 1.5:

	at org.apache.axis.AxisFault.makeFault(
	at org.apache.axis.client.Call.invoke(
	at org.apache.axis.client.Call.invoke(
	at org.apache.axis.client.Call.invoke(
        <some of my own classes>
Caused by: java.lang.NullPointerException
	at java.util.Hashtable.put(
	at org.apache.axis.encoding.DeserializationContextImpl.parse(
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
	at org.apache.axis.Message.getSOAPEnvelope(
	at org.apache.axis.client.Call.invokeEngine(
	at org.apache.axis.client.Call.invoke(
	at org.apache.axis.client.Call.invoke(
	... 8 more

Looking into the sources, this seems to be the problem:


            SAXParser parser = XMLUtils.getSAXParser();
            try {
                parser.setProperty("", this);
                parser.parse(inputSource, this);

                try {
                    // cleanup - so that the parser can be reused.
                    parser.setProperty("", null);
                } catch (SAXException se){
                    // Ignore.

The setProperty("..",null) call throws a NPE if JDK1.5's internal Xerces implementation is
I don't know wheter this is a bug of xerces or axis.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message