#255 ✓resolved
Stephen Ierodiaconou

OJUnit and objj errors in linux

Reported by Stephen Ierodiaconou | March 19th, 2009 @ 12:59 PM

On Ubuntu 8.10

bash 3.2.39

"java version "1.6.0_0" IcedTea6 1.3.1 (6b12-0ubuntu6.1) Runtime Environment (build 1.6.0_0-b12) OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)"

Objj:

objj spits out the following errors when used interactively:
objj> @import <Foundation/CPString.j>
/usr/local/share/objj/lib/Frameworks-Rhino/Foundation/CPObject.j
InternalError: missing ; before statement
InternalError: missing ; before statement

OJUnit:

on running:

objj ojunit/OJTestRunnerText.j cappuccino/Tests/Foundation/CPDateTest.j

The following occurs:

objj ojunit/OJTestRunnerText.j cappuccino/Tests/Foundation/CPDateTest.j                                                
/usr/local/bin/objj: 44: [[: not found
Setting up Rhino utilties
/usr/local/share/objj/lib/Frameworks-Rhino/Foundation/CPObject.j
InternalError: missing ; before statement
OBJJ EXCEPTION: InternalError: missing ; before statement
Name:    InternalError
Message: missing ; before statement                                                                                  
File:    /usr/local/share/objj/lib/Frameworks-Rhino/Foundation/CPObject.j                                            
Line:    0                                                                                                           
Rhino Exception: org.mozilla.javascript.EvaluatorException: missing ; before statement                               




Message: missing ; before statement
Source name: /usr/local/share/objj/lib/Frameworks-Rhino/Foundation/CPObject.j
Line number: 0
Column number: 19
Line Source: function(){ion "-c"
Filtered stack trace:
Unknown Source
Unknown Source
Unknown Source
Unknown Source
Unknown Source
*** Script stack trace:

*** Raw stack trace: org.mozilla.javascript.EvaluatorException: missing ; before statement
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
    at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)        
    at org.mozilla.javascript.Parser.addError(Parser.java:146)                                
    at org.mozilla.javascript.Parser.reportError(Parser.java:160)                             
    at org.mozilla.javascript.Parser.statementHelper(Parser.java:1265)                        
    at org.mozilla.javascript.Parser.statement(Parser.java:708)                               
    at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:463)                       
    at org.mozilla.javascript.Parser.function(Parser.java:592)                                
    at org.mozilla.javascript.Parser.parse(Parser.java:394)                                   
    at org.mozilla.javascript.Parser.parse(Parser.java:338)                                   
    at org.mozilla.javascript.Context.compileImpl(Context.java:2252)                          
    at org.mozilla.javascript.Context.compileFunction(Context.java:1281)                      
    at org.mozilla.javascript.Context.compileFunction(Context.java:1270)                      
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                            
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)          
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
    at java.lang.reflect.Method.invoke(Method.java:616)                                       
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)                            
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)                
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)                  
    at objj._c186(Unknown Source)                                                             
    at objj.call(Unknown Source)                                                              
    at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)               
    at objj._c182(Unknown Source)                                                             
    at objj.call(Unknown Source)                                                              
    at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)             
    at objj._c184(Unknown Source)                                                             
    at objj.call(Unknown Source)                                                              
    at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
    at objj._c11(Unknown Source)
    at objj.call(Unknown Source)
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at objj._c0(Unknown Source)
    at objj.call(Unknown Source)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
    at objj.call(Unknown Source)
    at objj.exec(Unknown Source)
    at org.mozilla.javascript.optimizer.OptRuntime$1.run(OptRuntime.java:252)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at org.mozilla.javascript.Context.call(Context.java:461)
    at org.mozilla.javascript.optimizer.OptRuntime.main(OptRuntime.java:240)
    at objj.main(Unknown Source)




Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Attachments

Referenced by

Pages