Opened 14 years ago

Closed 11 years ago

#4693 closed Bug (wontfix)

Cannot run CKPackager jar on JDK 6 on Linux

Reported by: Russ Tennant Owned by: Wiktor Walc
Priority: Must have (possibly next milestone) 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 (1)

ckpackager-openjdk.log (4.8 KB) - added by Michael Osipov 14 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 years ago by Michael Osipov

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

comment:2 Changed 14 years ago by Russ Tennant

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 14 years ago by Michael Osipov

Attachment: ckpackager-openjdk.log added

comment:3 Changed 14 years ago by Michael Osipov

Cc: Confirmed added
Keywords: Ubuntu JDK6 added
Priority: NormalHigh
Version: SVN (CKEditor)

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 14 years ago by Michael Osipov

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 14 years ago by Wiktor Walc

Cc: Confirmed removed
Keywords: Confirmed added; Ubuntu JDK6 removed
Owner: set to Wiktor Walc

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

comment:6 Changed 14 years ago by Michael Osipov

Wiktor,

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

comment:7 Changed 11 years ago by Piotrek Koszuliński

Resolution: wontfix
Status: confirmedclosed

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

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy