Issue Details (XML | Word | Printable)

Key: JELLY-166
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: dion gillard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Jelly

Intermittent error with weak reference wrapper

Created: 22/Nov/04 04:21 AM   Updated: 28/Jan/05 02:40 PM
Return to search
Component/s: core / taglib.core
Affects Version/s: 1.0
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive Licensed for inclusion in ASF works includeAndDefineExample.zip 2004-12-16 02:47 PM Paul Libbrecht 0.6 kB

Resolution Date: 28/Jan/05 02:40 PM


 Description  « Hide
The following happens sometimes when running tests:

[junit] Testcase: testChoose(org.apache.commons.jelly.tags.junit.CaseTag$1): Caused an ERROR
[junit] null:-1:-1: <null> Attempt to use a script that has been garbage collected.
[junit] org.apache.commons.jelly.JellyTagException: null:-1:-1: <null> Attempt to use a script that has been garbage collected.
[junit] at org.apache.commons.jelly.impl.WeakReferenceWrapperScript.script(WeakReferenceWrapperScript.java:62)
[junit] at org.apache.commons.jelly.impl.WeakReferenceWrapperScript.run(WeakReferenceWrapperScript.java:74)
[junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59)



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Paul Libbrecht added a comment - 16/Dec/04 02:47 PM
The attached pair of scripts seems to constantly raise the exception "Attempt to use a script that has been garbage collected.".
It combines a defined tag and an included script, quite a common situation, e.g. for Maven.
I could not find a way to reproduce the bug with only one of the two ingredients.

Invoke it with "java -jar target/fatJelly.jar blop.jelly".
paul

PS: this comment was first done on JELLY-85... it might also be done on JELLY-148 where the patch was first prestented
PPS: we badly need to be able to link issues, that's a feature that "just needs to be enabled" in the jira.


Hans Gilde added a comment - 20/Jan/05 02:28 PM
I believe that this is fixed in HEAD.

dion gillard added a comment - 28/Jan/05 02:40 PM
Fixed in SVN trunk