Error when including Ext library

96 views
Skip to first unread message

Ben

unread,
Aug 7, 2008, 3:07:21 PM8/7/08
to crosscheck
Hi please help.
When I do - crosscheck.require("src/main/webapp/js/lib/yui-
utilities.js");

I get the following java error.
If you can give me any hint as to what is going wrong I would greatly
appreciate it!
Is the fact that the file has very long lines with no break a problem?

test_open_and_send_XMLHttpRequest: Wrapped
java.lang.IllegalArgumentException (file:/C:/usr/workspace/mywebapp/./
src/main/webapp/js/lib/yui-utilities.
js#15)
at file:/C:/usr/workspace/mywebapp/./src/main/webapp/js/lib/yui-
utilities.js:15
at file:/C:/usr/workspace/mywebapp/./src/main/webapp/js/lib/yui-
utilities.js:16
at file:/C:/usr/workspace/mywebapp/./src/main/webapp/js/lib/yui-
utilities.js:16
at file:/C:/usr/workspace/mywebapp/./src/main/webapp/js/lib/yui-
utilities.js:-1
at overtimeFromModuleBehaviorTest.jst:3
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:597)
at
net.thefrontside.crosscheck.js.DelegateFunction.call(DelegateFunction.java:
93)
at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:
97)
at org.mozilla.javascript.gen.c16._c106(file:/C:/usr/workspace/
mywebapp/./src/main/webapp/js/lib/yui-utilities.js:15)
at org.mozilla.javascript.gen.c16.call(file:/C:/usr/workspace/
mywebapp/./src/main/webapp/js/lib/yui-utilities.js)

Thank you,
Ben

Ben

unread,
Aug 8, 2008, 11:31:48 AM8/8/08
to crosscheck
This seems to be an issue with Rhino. When I run my compressed js file
through 1_7R1 is seems to parse fine.
Is there an easy way to swap out the crosscheck rhino in 0.2.1 for the
latest one?

When I make a quick attempt to use the new Rhino I get the following
error -
Running: src\test\javascript\events.jst
Failure: src\test\javascript\events.jst: java.lang.RuntimeException:
Can't find top level scope for ClassCache.get

Is there a quick fix for this?

Thanks,
Ben

Charles Lowell

unread,
Aug 8, 2008, 12:50:46 PM8/8/08
to cross...@googlegroups.com
Ben,

You can build crosscheck without all the dependent jars, and then just
use the version of rhino that you want in the classpath.

Ben

unread,
Aug 8, 2008, 5:15:52 PM8/8/08
to crosscheck
I tried that and get the following error. Any easy way to fix this? -

java -classpath just-crosscheck.jar;lib/commons-lang.jar;lib/
tagsoup.jar;lib/js-1.7R1.jar
net.thefrontside.crosscheck.framework.ConsoleRunner docs/sarissa/

Running tests in environment: Internet Explorer 6
java.lang.RuntimeException: Can't find top level scope for
ClassCache.get
at org.mozilla.javascript.ClassCache.get(ClassCache.java:84)
at
org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:831)
at
org.mozilla.javascript.NativeJavaObject.initMembers(NativeJavaObject.java:
90)

Aaron

unread,
Sep 5, 2008, 2:18:22 PM9/5/08
to crosscheck
I had the same problem with Rhino v1.7R1. It went away when I
downgraded to 1.6R3.
Reply all
Reply to author
Forward
0 new messages