This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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(

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.

Don't get me started about those stupid light bulbs.
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()