Mozilla
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Mozilla

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 10th, 2007, 08:01 AM
james.r.carr
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
undefined: invalid label (<cmd>; line 1)

Hi All,

I am using the 1.6 release of rhino.

I'm trying to use rhino to evaulate some js objects created by a java
object in one of my unit tests, but I've reached a very annoying and
frustrating roadblock just trying get the line evaluated. I took the
following from the embedding rhino tutorial:

String output = service.generateJ(getDetails());
result = cx.evaluateString(scope, , "<cmd>", 1,
null);
System.out.println(cx.toString(result));

However, this fails to work at all. Here is the exception and
stacktrace I get. I have tried all kinds of values where <cmdis
names of real blank files, files that don't exist, tried it with null
and empty string nothing works.

undefined: invalid label (<cmd>; line 1)
at
(NativeGlobal.java:
580)
at
(TokenStream.java:
1370)
at (Parser.java:75)
at (Parser.java:748)
at (Parser.java:334)
at (Parser.java:262)
at (Parser.java:723)
at (Parser.java:334)
at (Parser.java:133)
at (Context.java:1787)
at (Context.java:1735)
at (Context.java:852)
at (Context.java:770)
at (Context.java:737)
at
(ProcessedVinServiceTest.java:
69)
at (Native Method)
at (Unknown Source)
at (Unknown Source)
at (Unknown Source)
at
(TestMethodRunner.java:
99)
at
(TestMethodRunner.java:
81)
at
(BeforeAndAfterRunner.java:
34)
at
(TestMethodRunner.java:
75)
at
(TestMethodRunner.java:
45)
at
(TestClassMethodsRunner.java:
71)
at
(TestClassMethodsRunner.java:
35)
at
$1.runUnprotected(TestClassRunner.java:42)
at
(BeforeAndAfterRunner.java:
34)
at
(TestClassRunner.java:
52)
at
(JUnit4TestReference.java:
38)
at
(TestExecution.java:
38)
at
(RemoteTestRunner.java:
460)
at
(RemoteTestRunner.java:
673)
at
(RemoteTestRunner.java:
386)
at
(RemoteTestRunner.java:
196)

Thanks,
James


dev-tech-js-engine mailing list
dev-tech-js-engine (AT) lists (DOT) mozilla.org

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Mozilla > undefined: invalid label (<cmd>; line 1)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT