This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anyone understand what this exception means

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Tony
 
Craig Caulfield
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic