#213 htmlunit:test results in errors

closed
nobody
None
5
2012-10-21
2005-02-01
Hans Donner
No

the target htmlunit:test results in errors:

[java] There were 4 errors:
[java] 1) testGetPage_insideWebClientTag
(org.apache.commons.jelly.tags.junit.CaseTag$1)
org.apache.commons.jelly.JellyTagException: null:-1:-1:
<null> Attempt to use a script that has been garbage
collected.
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.script(WeakReferenceWrapperScript.java:62)
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.run(WeakReferenceWrapperScript.java:74)
[java] at
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest
(CaseTag.java:59)
[java] 2) testGetPage_outsideWebClientTag
(org.apache.commons.jelly.tags.junit.CaseTag$1)
org.apache.commons.jelly.JellyTagException: null:-1:-1:
<null> Attempt to use a script that has been garbage
collected.
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.script(WeakReferenceWrapperScript.java:62)
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.run(WeakReferenceWrapperScript.java:74)
[java] at
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest
(CaseTag.java:59)
[java] 3) testBrowserVersion
(org.apache.commons.jelly.tags.junit.CaseTag$1)
org.apache.commons.jelly.JellyTagException: null:-1:-1:
<null> Attempt to use a script that has been garbage
collected.
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.script(WeakReferenceWrapperScript.java:62)
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.run(WeakReferenceWrapperScript.java:74)
[java] at
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest
(CaseTag.java:59)
[java] 4) testXmlVarAttribute
(org.apache.commons.jelly.tags.junit.CaseTag$1)
org.apache.commons.jelly.JellyTagException: null:-1:-1:
<null> Attempt to use a script that has been garbage
collected.
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.script(WeakReferenceWrapperScript.java:62)
[java] at
org.apache.commons.jelly.impl.WeakReferenceWrapperSc
ript.run(WeakReferenceWrapperScript.java:74)
[java] at
org.apache.commons.jelly.tags.junit.CaseTag$1.runTest
(CaseTag.java:59)
[java]
[java] FAILURES!!!
[java] Tests run: 2269, Failures: 0, Errors: 4

The target test, or htmlunit:dist work fine.

Discussion

  • Hans Donner
    Hans Donner
    2005-02-01

    Logged In: YES
    user_id=132719

    To reproduce, just run
    maven htmlbuilder:test

     
  • Mike Bowler
    Mike Bowler
    2005-02-02

    Logged In: YES
    user_id=46756

    This is a bug in the current version of commons-jelly. The
    latest jelly code in CVS fixes this bug (I've tested it) but
    I'm waiting for them to put out an official release before
    upgrading.

     
  • Daniel Gredler
    Daniel Gredler
    2005-06-20

    Logged In: YES
    user_id=1109422

    Jelly 1.0 was released the other day and fixes this problem
    for me. Need to update the project.xml file.

     
  • Brad Clarke
    Brad Clarke
    2005-07-11

    Logged In: YES
    user_id=257129

    Upgraded commons-jelly to version 1.0