wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Anyone understand what this exception means Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Anyone understand what this exception means" Watch "Anyone understand what this exception means" New topic

Anyone understand what this exception means

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
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:975)

at com.meterware.httpunit.WebResponse.getDOM(WebResponse.java:538)

at uk.co.blueskyts.itour.ui.test.reason.TestReasonPage.printDocumentModel(TestReasonPage.java:438)

at uk.co.blueskyts.itour.ui.test.reason.TestReasonPage.testCreateAReason(TestReasonPage.java:124)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

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:111)

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.textui.TestRunner.doRun(TestRunner.java:116)

at junit.textui.TestRunner.start(TestRunner.java:172)

at junit.textui.TestRunner.main(TestRunner.java:138)

The code is as follows:

import org.w3c.dom.Document;

private void printDocumentModel(WebResponse webresponse) throws Exception
Document doc = webresponse.getDOM();

xerces.jar is in my path

Thanks for any help

Craig Caulfield

Joined: Dec 12, 2005
Posts: 3
It looks like you are trying to use a DOM feature which hasn't been implemented in Xerces, which from the stack trace looks like the HTML module. Try the following program to check what modules your implementation supports.

I agree. Here's the link: http://aspose.com/file-tools
subject: Anyone understand what this exception means
Similar Threads
HttpUnit Help..
HttpUnit-Net Connection Error
test won't go through try block in gui
Getting a exception with httpunit WebResponse.getDOM()