You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by Anthony Elder <an...@uk.ibm.com> on 2003/03/17 18:05:46 UTC

Re: Bugzilla Bug 18029-  WSIFUtils.readWSDL() and refering to WSDLdocuments with and without line breaks

Hi Dominique,

I've not been able to recreate this, and looking at the Java code I think
this could be a Tomcat config problem highlighting a bug in Java.

The null pointer exception is in the Java URLConnection.stripOffParameters
method, probably because URLConnection.getContentHandler called it with a
null String. The getContentHandler is getting the value of the string from
the mime type, so that appears to be null. If you go to the WSDL url on
your browser to display the WSDL, and display the WSDL, and look at the
mime type (on Mozilla View -> Page Info) what mime type does it show? Mine
says type: text/xml. If tomcat is returning no mime header for the WSDL
then the Java getContentHandler isn't going to check that and will call
stripOffParameters with a null value, hence the NPE.

       ...ant

Anthony Elder
ant.elder@uk.ibm.com
Web Services Development
IBM UK Laboratories,  Hursley Park
(+44) 01962 818320, x248320, MP208.