Hi, Just thought I'd reply to this old e-mail in case anyone else ends up having the same problem.
The parsing exception is caused by a DOCTYPE declaration in the html document. Something to do with how Xerces does cloning of Document elements. I didn't look deeper into it, as I don't need a DOCTYPE in my html. Regards, Daniel Martijn Dashorst wrote: > You might validate that you are using the correct version of xerces, I think that > jwebunit-1.2 is shipped with 2.6.2. Some JDK's supply their own version of xerces, > or your IDE might have. > > If you *are* using the supplied version, you might want to try older versions of the > xerces jar. > These versions are easily downloaded from: > http://www.ibiblio.org/maven/xerces/jars > > Also, could you supply us with some more information regarding the webpage you're > trying to parse? It would be interesting to know on what element the parser chokes. > > Martijn > > > Srinivasan Ranganathan wrote: > > > > > > This is what I get when I upgraded from 1.1.1 to 1.2. Any thoughts? > > > > > > org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The implementation does not > > support the requested type of object or operation. > > at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source) > > at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source) > > at org.apache.html.dom.HTMLDocumentImpl.cloneNode(Unknown Source) > > at com.meterware.httpunit.ParsedHTML.getDOM(ParsedHTML.java:798) > > at com.meterware.httpunit.WebResponse.getDOM(WebResponse.java:461) > > at > > net.sourceforge.jwebunit.HttpUnitDialog.getFormElementNameForLabel(HttpUnitDialog.java:362) > > > > at > > net.sourceforge.jwebunit.HttpUnitDialog.hasFormParameterLabeled(HttpUnitDialog.java:351) > > > > at > > net.sourceforge.jwebunit.WebTester.assertFormElementPresentWithLabel(WebTester.java:333) > > > > at > > net.sourceforge.jwebunit.WebTestCase.assertFormElementPresentWithLabel(WebTestCase.java:140) > > > > at > > au.com.aiaa.claims.web.record.RecordClaimUITest.testRecordClaimWithInvalidShare(RecordClaimUITest.java:875) > > > > at java.lang.reflect.Method.invoke(Native Method) > > at junit.framework.TestCase.runTest(TestCase.java:154) > > at junit.framework.TestCase.runBare(TestCase.java:127) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:118) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at junit.framework.TestSuite.runTest(TestSuite.java:208) > > at junit.framework.TestSuite.run(TestSuite.java:203) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392) > > > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276) > > > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167) > > > > > > > > Regards > > Srini -- Daniel �borg http://daniel.xylt.org/ "People take different roads seeking fulfillment and happiness. Just because they're not on your road doesn't mean they've gotten lost." --H. Jackson Brown, Jr. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=click _______________________________________________ Jwebunit-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
