Etherpad will not compile - EvaluatorException - syntax error

Bug #503000 reported by John Pugh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This builds fine using Sun's JDK - well...it still needs a patch for Ubuntu, but it will build.

Got an error trying to install on Ubuntu Server 9.04:

building javascript classfiles... org.mozilla.javascript.EvaluatorException?: syntax error (cache_utils.js#17)

    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.primaryExpr(Parser.java:2464) at org.mozilla.javascript.Parser.memberExpr(Parser.java:1950) at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808) at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737) at org.mozilla.javascript.Parser.addExpr(Parser.java:1718) at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698) at org.mozilla.javascript.Parser.relExpr(Parser.java:1672) at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628) at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617) at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606) at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595) at org.mozilla.javascript.Parser.andExpr(Parser.java:1583) at org.mozilla.javascript.Parser.orExpr(Parser.java:1571) at org.mozilla.javascript.Parser.condExpr(Parser.java:1554) at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539) at org.mozilla.javascript.Parser.expr(Parser.java:1518) at org.mozilla.javascript.Parser.statementHelper(Parser.java:1245) at org.mozilla.javascript.Parser.statement(Parser.java:708) at org.mozilla.javascript.Parser.parse(Parser.java:401) at org.mozilla.javascript.Parser.parse(Parser.java:338) at org.mozilla.javascript.optimizer.ClassCompiler?.compileToClassFiles(ClassCompiler?.java:161) at net.appjet.bodylock.compilationutils$.compileToBytes(bodylock.scala:188) at net.appjet.bodylock.Compiler$.compileSingleFile(bodylock.scala:265) at net.appjet.bodylock.Compiler$$anonfun$main$2.apply(bodylock.scala:288) at net.appjet.bodylock.Compiler$$anonfun$main$2.apply(bodylock.scala:277) at scala.Iterator$class.foreach(Iterator.scala:414) at scala.runtime.BoxedArray?$AnyIterator?.foreach(BoxedArray?.scala:45) at scala.Iterable$class.foreach(Iterable.scala:256) at scala.runtime.BoxedArray?.foreach(BoxedArray?.scala:24)

Revision history for this message
James Stansell (jamesstansell) wrote :

Perhaps you need a newer rhino version? Also, do you have access to try the compile with ubuntu 9.10?

I think LP may have another bug about rhino, something about using the system version instead of the version shipped with OpenJDK.

Revision history for this message
tsaitgaist (kevredon) wrote :

it also affects Ubuntu 9.10 (i386 server).

is there already some patch ?

org.mozilla.javascript.EvaluatorException: syntax error (atomfeed.js#17)
 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.primaryExpr(Parser.java:2469)
 at org.mozilla.javascript.Parser.memberExpr(Parser.java:1955)
 at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1813)
 at org.mozilla.javascript.Parser.mulExpr(Parser.java:1742)
 at org.mozilla.javascript.Parser.addExpr(Parser.java:1723)
 at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1703)
 at org.mozilla.javascript.Parser.relExpr(Parser.java:1677)
 at org.mozilla.javascript.Parser.eqExpr(Parser.java:1633)
 at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1622)
 at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1611)
 at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1600)
 at org.mozilla.javascript.Parser.andExpr(Parser.java:1588)
 at org.mozilla.javascript.Parser.orExpr(Parser.java:1576)
 at org.mozilla.javascript.Parser.condExpr(Parser.java:1559)
 at org.mozilla.javascript.Parser.assignExpr(Parser.java:1544)
 at org.mozilla.javascript.Parser.expr(Parser.java:1523)
 at org.mozilla.javascript.Parser.statementHelper(Parser.java:1246)
 at org.mozilla.javascript.Parser.statement(Parser.java:707)
 at org.mozilla.javascript.Parser.parse(Parser.java:401)
 at org.mozilla.javascript.Parser.parse(Parser.java:338)
 at org.mozilla.javascript.optimizer.ClassCompiler.compileToClassFiles(ClassCompiler.java:161)
 at net.appjet.bodylock.compilationutils$.compileToBytes(bodylock.scala:188)
 at net.appjet.bodylock.Compiler$.compileSingleFile(bodylock.scala:265)
 at net.appjet.bodylock.Compiler$$anonfun$main$2.apply(bodylock.scala:288)
 at net.appjet.bodylock.Compiler$$anonfun$main$2.apply(bodylock.scala:277)
 at scala.Iterator$class.foreach(Iterator.scala:414)
 at scala.runtime.BoxedArray$AnyIterator.foreach(BoxedArray.scala:45)
 at scala.Iterable$class.foreach(Iterable.scala:256)
 at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
 at net.appjet.bodylock.Compiler$.main(bodylock.scala:277)
 at net.appjet.bodylock.Compiler.main(bodylock.scala)
 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 scala.tools.nsc.ObjectRunner$$anonfun$run$1.apply(ObjectRunner.scala:75)
 at scala.tools.nsc.ObjectRunner$.withContextClassLoader(ObjectRunner.scala:49)
 at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:74)
 at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:154)
 at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

Revision history for this message
Matthias Klose (doko) wrote :

rhino in the system version of openjdk now has a renamed/mangled java. this should be fixed in lucid. please reopen if appropriate.

Changed in openjdk-6 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.