Remove xerces-2.4.0.jar from the classpath. This one is duplicate and
much older than xercesImpl-2.6.2.jar.
Martijn
On May 16, 2005, at 5:43 AM, John Lianoglou wrote:
Whenever I attempt to call WebTester.assertElementPresent() ... I'm
using the latest Eclipse, and my project contains the following
versions of the libraries:
+ xerces-2.4.0.jar
+ xercesImpl-2.6.2.jar
+ xml-apis-1.0.b2.jar
+ jwebunit-1.2.jar
Here's the stack trace:
java.lang.RuntimeException: 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.getElement
(HttpUnitDialog.java:886)
at net.sourceforge.jwebunit.WebTester.assertElementPresent
(WebTester.java:692)
at org.fulbrightonline.jwebunit.admin.SimpleTest.testLogin
(SimpleTest.java:52)
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: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
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:192)
at net.sourceforge.jwebunit.HttpUnitDialog.getElement
(HttpUnitDialog.java:888)
at net.sourceforge.jwebunit.WebTester.assertElementPresent
(WebTester.java:692)
at org.fulbrightonline.jwebunit.admin.SimpleTest.testLogin
(SimpleTest.java:52)
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: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
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:192)
Strangely enough, I can invoke assertFormPresent("my-form-id")
without any problems... which is weird coz it references the form
i'm looking for by ID... why would it work for forms, but not for
general elements?
Best,
jL
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users