java.net.MalformedURLException
"Wolfgang Fahl - BITPlan" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | bitplan GmbH |
| Message-ID | <[email protected]> |
The following line is the cause of the problem: result .append( "<!DOCTYPE web-app PUBLIC '- //Sun Microsystems, Inc.// DTD Web Application 2.3//EN ' 'http://java.sun.com/dtd/web-app_2_3.dtd'>" ); If i comment it out all tests run fine. result .append( "<!DOCTYPE web-app>" ); Also works. All other combinations I tried give strange errors e.g. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. It looks like the URL implementation throws java.net.MalformedURLException when a Nullpointer exception happens inside its code when it can't find a handler. This just makes things very hard to debug when a null URL is passed to it. I don't know what the exact chain of actions is but I assume the whole problem has to do with the Xerces used by Eclipse itself and the one used by the application to be tested/debugged. As of Eclipse 3.x this should not be a problem any more according to some web articles. Wolfgang BITPlan - smart solutions Pater-Delp-Str. 1, D-47877 Willich Schiefbahn Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481 Web: http://www.bitplan.de bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, Geschäftsführer: Wolfgang Fahl ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop