Failed to hack HtmlUnit-2.4 XPathUtils.PROCESS_XPATH_

Roman Kažimír <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi,

I've just switched to Canoo Webtest 3.0 form earlier version. My test stoped
working.
So I tried to run empty project. It ended up with the same error
*
*
*java.lang.RuntimeException: Failed to hack HtmlUnit-2.4
XPathUtils.PROCESS_XPATH_*
*
*

Running win 7 64bit with
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

Thanx for any advice.

Roman.



Buildfile:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\build.xml

wt.init:

wt.init.headless:

wt.defineTimestamps:

wt.defineTasks.init:

~wt.defineTasks.defineClasspath:

wt.defineTasks:
Trying to override old definition of task retry

wt.webtestMonitor:
     [echo]
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build/tools/WebTestMonitor.groovy

wt.defineMacros:
     [echo] Defining project macros and custom steps (if any)

wt.generateDtd:
[groovyScript] Scanning for entities...
[groovyScript] 1 entities found
[groovyScript] Already uptodate:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\dtd\Project.dtd

wt.generateDefinitions:
[groovyScript] Scanning
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\definitions
for definitions...
[groovyScript] 2 definitions found
[groovyScript] Already uptodate:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\definitions.xml

wt.createReportsFolder:

wt.deleteReports:

wt.htmlReports.init:
    [mkdir] Created dir:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\results\resources
     [copy] Copying 22 files to
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\results\resources
     [copy] Copying 1 file to
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\results

wt.parallel.init:

wt.before.testInWork:

wt.testInWork:
     [echo] Execution allTests.xml in dir
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\tests

test:

test:
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using
haltonerror from project property wt.config.haltonerror: false
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using
haltonfailure from project property wt.config.haltonfailure: false
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using
resultpath from project property wt.config.resultpath:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\em
pty-project\results
  [webtest]  INFO (com.canoo.webtest.engine.Configuration) - Using
saveresponse from project property wt.config.saveresponse: true
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - No configuration
defined, using default configuration.
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest
"check that WebTest is Google's top 'WebTest' result"
(c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resour
ces\empty-project\tests\googleWebTest.xml:9: )
  [webtest]  INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest:
R_1811.

BUILD FAILED
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\webtest.xml:242:
The following error occurred while executing this line:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\tests\allTests.xml:5:
The following error occurred while executing this line:
c:\DEVELOP\MAKLERPLATTFORM\Javadev\Tests\Canoo\versions\2.5\Build\resources\empty-project\tests\googleWebTest.xml:9:
java.lang.RuntimeException: Failed to hack HtmlUnit-2.4
XPathUtils.PROCESS_XPATH_
        at
com.canoo.webtest.engine.xpath.XPathHelper.<init>(XPathHelper.java:177)
        at com.canoo.webtest.engine.Context.<init>(Context.java:41)
        at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:199)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:809)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.NoSuchFieldException: PROCESS_XPATH_
        at java.lang.Class.getDeclaredField(Class.java:1882)
        at
com.canoo.webtest.engine.xpath.XPathHelper.<init>(XPathHelper.java:172)
        ... 42 more

Total time: 3 seconds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.