Ticket #4693 (closed Bug: wontfix)

Opened 5 years ago

Last modified 16 months ago

Cannot run CKPackager jar on JDK 6 on Linux

Reported by: toga98 Owned by: wwalc
Priority: High Milestone:
Component: Project : CKPackager Version: SVN (CKEditor) - OLD
Keywords: Cc:

Description

Due to the packager jar bundling rhino and the JDK including rhino and the way that the package path is determined you get the following error.

java -jar ckpackager.jar Exception in thread "main" org.mozilla.javascript.EvaluatorException: Couldn't read source file "file:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar!/org/mozilla/javascript_source/includes/ckpackager.js: /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar!/org/mozilla/javascript_source/includes/ckpackager.js (No such file or directory)". (D:\xampp\htdocs\CKPackager\_source/ckpackager.js#49)

at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96) at org.mozilla.javascript.Context.reportError(Context.java:897) at org.mozilla.javascript.Context.reportError(Context.java:915) at org.mozilla.javascript.tools.shell.Main.readFileOrUrl(Main.java:615) at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:465) at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:452) at org.mozilla.javascript.tools.shell.Global.load(Global.java:244) 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:161) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at ckpackager.ckpackager._c0(D:\xampp\htdocs\CKPackager\_source/ckpackager.js:49) at ckpackager.ckpackager.call(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065) at ckpackager.ckpackager.call(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at ckpackager.ckpackager.exec(D:\xampp\htdocs\CKPackager\_source/ckpackager.js) at org.mozilla.javascript.optimizer.OptRuntime$1.run(OptRuntime.java:252) at org.mozilla.javascript.Context.call(Context.java:515) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:507) at org.mozilla.javascript.optimizer.OptRuntime.main(OptRuntime.java:240) at ckpackager.ckpackager.main(D:\xampp\htdocs\CKPackager\_source/ckpackager.js)

Discussion. http://cksource.com/forums/viewtopic.php?f=11&t=15629&p=42247#p42247

This can be worked around by using the JRE or JDK < 6.

Attachments

ckpackager-openjdk.log (4.8 KB) - added by mosipov 5 years ago.

Change History

comment:1 Changed 5 years ago by mosipov

Seems like you are using Ubuntu. Did you try sun jdk? It maybe a bug in OpenJDK.

comment:2 Changed 5 years ago by toga98

Yeah I tried it with Sun JDK 1.6.0_14 in addition to just running java on the command line to generate the thead dump that is in this report.

On Ubuntu with Java downloaded from sun where Java version 1.6.0_xx:

this will not work:

$JAVA_HOME/bin/java -jar ckpackager.jar

this will work:

$JAVA_HOME/jre/bin/java -jar ckpackager.jar

Changed 5 years ago by mosipov

comment:3 Changed 5 years ago by mosipov

  • Keywords Ubuntu JDK6 added
  • Priority changed from Normal to High
  • Version set to SVN (CKEditor)
  • Cc Confirmed added

I can confirm that, having Ubuntu 9.10 and OpenJDK

mosipov@ubuntu910:~/Projekte/ckpackager-trunk/bin$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

In my opinion, this jar is completely fucked up. It assumes that rhino is in the classpath of the JRE + some file on the builder's windows system.

comment:4 Changed 5 years ago by mosipov

Well, I just ran ant to compile the lib myself, the exe target fails completely + the produced jar suffers from the same problem.

This should be taken seriously by the app author.

comment:5 Changed 5 years ago by wwalc

  • Owner set to wwalc
  • Cc Confirmed removed
  • Keywords Confirmed added; Ubuntu JDK6 removed

Moved "Confirmed" keyword added by mosipov to the right place (I didn't try to reproduce it yet).

comment:6 Changed 5 years ago by mosipov

Wiktor,

if you need any Java/Ant assistance, contact me!

comment:7 Changed 16 months ago by Reinmar

  • Status changed from confirmed to closed
  • Resolution set to wontfix

CKPackager is not supported any more. It was replaced by completely new builder in v4.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy