File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 595
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(

at com.meterware.httpunit.WebResponse.getDOM(



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

at sun.reflect.NativeMethodAccessorImpl.invoke(

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(

at junit.framework.TestCase.runTest(

at junit.framework.TestCase.runBare(

at junit.framework.TestResult$1.protect(

at junit.framework.TestResult.runProtected(



at junit.framework.TestSuite.runTest(


at junit.textui.TestRunner.doRun(

at junit.textui.TestRunner.start(

at junit.textui.TestRunner.main(

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:
subject: Anyone understand what this exception means
It's not a secret anymore!