axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Resolved: (AXIS-1641) NullPointerException with JDK 1.5
Date Wed, 03 Nov 2004 12:22:32 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1641?page=history ]
     
Davanum Srinivas resolved AXIS-1641:
------------------------------------

     Resolution: Fixed
    Fix Version: 1.2RC2

Has been already fixed in 1.2

thanks,
dims

> NullPointerException with JDK 1.5
> ---------------------------------
>
>          Key: AXIS-1641
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1641
>      Project: Axis
>         Type: Bug
>     Versions: 1.1
>  Environment: JDK1.5 on both Linux and Windows XP SP1
>     Reporter: Thorsten Jungblut
>     Priority: Critical
>      Fix For: 1.2RC2

>
> I get the following exception if using JDK 1.5:
> java.lang.NullPointerException
> 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
> 	at org.apache.axis.client.Call.invoke(Call.java:2213)
> 	at org.apache.axis.client.Call.invoke(Call.java:2133)
> 	at org.apache.axis.client.Call.invoke(Call.java:1656)
>         <some of my own classes>
> Caused by: java.lang.NullPointerException
> 	at java.util.Hashtable.put(Hashtable.java:396)
> 	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:385)
> 	at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2545)
> 	at org.apache.axis.client.Call.invoke(Call.java:2515)
> 	at org.apache.axis.client.Call.invoke(Call.java:2210)
> 	... 8 more
> Looking into the sources, this seems to be the problem:
> org.apache.axis.encoding.DeserializationContextImpl.parse():
>             SAXParser parser = XMLUtils.getSAXParser();
>             try {
>                 parser.setProperty("http://xml.org/sax/properties/lexical-handler", this);
>                 parser.parse(inputSource, this);
>                 try {
>                     // cleanup - so that the parser can be reused.
>                     parser.setProperty("http://xml.org/sax/properties/lexical-handler",
null);
>                 } catch (SAXException se){
>                     // Ignore.
>                 }
> The setProperty("..",null) call throws a NPE if JDK1.5's internal Xerces implementation
is used.
> 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:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message