iBugs Rhino e4x regressions not runnable

37 views
Skip to first unread message

Kevin Hoffman

unread,
Jul 3, 2008, 4:43:33 PM7/3/08
to iBugs
Hello,

I've got the Rhino version 1.0 setup. I can checkout, compile, and run
most test cases. However, I'm having trouble with test cases that are
part of the e4x package, which some bugs are related to. For example:

$ ./do-ant runtest -DfixId=271545 -Dtag=post-fix -
DtestFileName=mozilla/js/tests/e4x/Regress/regress-271545.js
ant.java.version: 1.4
Buildfile: build.xml

init-properties:

checkDefaultParams:

runtest:
[java] STATUS: XML("") should create empty text node
[java] BUGNUMBER: 271545
[java] js: "/Users/kevinhoffman/Documents/prog/java/evolution-
study/ibugs/ibugs_rhino-0.1/versions/271545/post-fix/mozilla/js/tests/
e4x/Regress/regress-271545.js", line 45: uncaught JavaScript runtime
exception: ReferenceError: "XML" is not defined.
[java] Java Result: 3

BUILD SUCCESSFUL
Total time: 0 seconds

So I modified build.xml to include xbean.jar in the classpath:

<pathelement location="${versiondirectory}/mozilla/js/rhino/lib/
xbean.jar"/>

This seemed to help resolve the XML is not defined error. However, it
still has trouble at the same place on the first usage of the XML
object:

$ ./do-ant runtest -DfixId=271545 -Dtag=post-fix -
DtestFileName=mozilla/js/tests/e4x/Regress/regress-271545.js
ant.java.version: 1.4
Buildfile: build.xml

init-properties:

checkDefaultParams:

runtest:
[java] STATUS: XML("") should create empty text node
[java] BUGNUMBER: 271545
[java] js: "/Users/kevinhoffman/Documents/prog/java/evolution-
study/ibugs/ibugs_rhino-0.1/versions/271545/post-fix/mozilla/js/tests/
e4x/Regress/regress-271545.js", line 45: uncaught JavaScript runtime
exception: TypeError: Not Parsable as XML
[java] Java Result: 3

BUILD SUCCESSFUL
Total time: 0 seconds

In newer versions of Rhino, it looks like it can use the XML DOM3
classes built into Java5. I tried running ant (and therefore the test)
using Java 1.5 instead of Java 1.4, but that didn't change any of the
above errors (with or without xbean.jar in the class path).

I also tried adding xml-apis.jar to the classpath, but that didn't
change anything.

Have you been able to run bugs related to the e4x package, such as
271545? Any ideas on what is going on? I will post anything here if I
find out more information.

Thanks,
Kevin

Valentin Dallmeier

unread,
Jul 8, 2008, 3:33:00 AM7/8/08
to ib...@googlegroups.com
Kevin-

Apologies for the delay, I have been out of town over the weekend and
did not read my mail. I just tried executing the test using the
default Rhino mechanism for executing tests and it failed with the
same error message. Looks like these tests have unmet dependencies and
therefore cannot be executed (which is bad...). Please let me know if
you find out more regarding this problem.

Valentin

David Schuler

unread,
Nov 19, 2008, 4:26:48 AM11/19/08
to Valentin Dallmeier, ib...@googlegroups.com
Hi,

I ran into the same problem.
The solution for me was to put xbean.jar (version 2.2.0 from
http://xmlbeans.apache.org/sourceAndBinaries/index.html#XMLBeans+Binary+and+Development+Kit)
and jsr173_1.0_api.jar (comes with XMLBeans) on the classpath.
(see: http://markmail.org/message/6n25lzkgbz7wiceu)

Cheers
David

On Jul 8, 8:33 am, "Valentin Dallmeier" <dallme...@st.cs.uni-sb.de>
wrote:

John Riedl

unread,
Jan 16, 2009, 9:17:56 PM1/16/09
to iBugs
I ran into the same problem ... but the fix below did not work for me
with rhino 1.6R7 (the version that comes with Ubuntu). I tried
XMLBeans 2.2.0 and 2.4.0, and I tried putting everything in sight onto
my CLASSPATH. No luck. I tried JDKs from 1.5 to 1.6R7. No luck.

Finally I downloaded the 1.7R1 version of rhino, and it works no
problem, even with no XMLBeans jar files.

The key difference appears to be the presence of the xmlimpl classes
in js.jar. They're missing in the 1.6R7 version that aptitude
installed for Ubuntu.

I write this note because it would have saved me a lot of time to know
that the 1.6R7 version of rhino is broken.

John

On Nov 19 2008, 3:26 am, David Schuler <schulerda...@googlemail.com>
wrote:
> Hi,
>
> I ran into the same problem.
> The solution for me was to put xbean.jar (version 2.2.0 fromhttp://xmlbeans.apache.org/sourceAndBinaries/index.html#XMLBeans+Bina...)

Valentin Dallmeier

unread,
Jan 19, 2009, 4:15:50 AM1/19/09
to ib...@googlegroups.com
Hi John!

I'm sorry that you ran into problems. Could you tell me, which
revision of the rhino subject in ibugs you were using?

Regards,

Valentin
Reply all
Reply to author
Forward
0 new messages