Hi Dominique,
>From what you say it sounds like the mime type is being sent correctly, so
its puzzling why the Java URLConnection method is getting a null pointer
exception. What JDK version are you using, could you send me the output
from the command: java -version
Thanks,
...ant
Anthony Elder
[EMAIL PROTECTED]
Web Services Development
IBM UK Laboratories, Hursley Park
(+44) 01962 818320, x248320, MP208.
Dominique Plante <[EMAIL PROTECTED]> on 19/03/2003 18:49:43
To: Anthony Elder/UK/[EMAIL PROTECTED]
cc:
Subject: RE: Bugzilla Bug 18029 -� WSIFUtils.readWSDL() and refering to
WSDL documents with and without line breaks
Anthony:
Thanks for your explanation of what is likely happening - it would
certainly explain what I am seeing.
I am in a Windows XP environment, with Netscape 7 and IE 6 browsers.
In IE 6, When I right click on the page with the WSDL being displayed, I
select properties, and for 'Type', it shows 'XML Document'
In Netscape 7, when I go to the URL that should display the WSDL
(http://localhost:8080/axis/services/urn:SmallEightBall?WSDL), the main
browser area is blank. When I do a 'view page source', I can see the
XML document that should have been displayed. When I go to 'view page
info', it shows the Type as text/xml. Does this mean that tomcat is
properly returning a mime header?
I am running currently running Tomcat 4.0.1.
Thank you for all your help!
Sincerely,
Dominique
-----Original Message-----
From: Anthony Elder [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 9:06 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Bugzilla Bug 18029 -� WSIFUtils.readWSDL() and refering to
WSDL documents 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
[EMAIL PROTECTED]
Web Services Development
IBM UK Laboratories, Hursley Park
(+44) 01962 818320, x248320, MP208.