jkiwi crashes on start

Bug #376098 reported by Vicente Ruiz
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
jKiwi
Confirmed
Undecided
mihai.ile

Bug Description

I just downloaded the last version and I installed it. When I try to run it, I see the follow error :

$ jkiwi
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:120)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Exception in thread "main" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Caused by: java.lang.IllegalArgumentException: Argument not valid
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:155)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 ... 4 more

I can see the splashscreen, but after jkiwi crashes. I'm using karmic koala (ubuntu 9.10) for amd64.

More info:

$ dpkg -l jkiwi
Desired=Unknown/Install/Remove/Purge/Hold
| Estado=No/Instalado/Config-files/Desempaquetado/Fallo-config/Medio-inst/espera-disparo/pendiente-disparo
|/ Err?=(ninguno)/Retenido/Requiere-reinst/X=ambos problemas (Estado,Err: mayúsc.=malo)
||/ Nombre Versión Descripción
+++-==============-==============-============================================
ii jkiwi 0.9.5 A virtual makeover and hairstyler applicatio

$ uname -r
2.6.28-11-generic

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu karmic (development branch)
Release: 9.10
Codename: karmic

$ dpkg -l sun-java6* | grep ii
ii sun-java6-bin 6-13-1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
ii sun-java6-jdk 6-13-1 Sun Java(TM) Development Kit (JDK) 6
ii sun-java6-jre 6-13-1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent file
ii sun-java6-plugin 6-13-1 The Java(TM) Plug-in, Java SE 6

Revision history for this message
Vicente Ruiz (uve) wrote :

The same error using openjdk

$ dpkg -l openjdk-* | grep ii
ii openjdk-6-jre 6b16~pre2-0ubuntu2 OpenJDK Java runtime, using Hotspot Zero
ii openjdk-6-jre-headless 6b16~pre2-0ubuntu2 OpenJDK Java runtime, using Hotspot Zero (he
ii openjdk-6-jre-lib 6b16~pre2-0ubuntu2 OpenJDK Java runtime (architecture independe

Revision history for this message
Vicente Ruiz (uve) wrote :

The same error with intrepid. More info:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid

$ uname -r
2.6.27-7-generic

$ dpkg -l sun-java6-jre
Deseado=Desconocido(U)/Instalar(I)/Eliminar(R)/Purgar(P)/Mantener(H)
| Estado=No(N)/Inst(I)/Arch-conf(C)/Descomp(U)/Fallo-conf(F)/Medio-inst(H)/Espera-trig(W)/Pendiente-trig(T)
|/ Err?=(nada)/Mantener(H)/Reinst-requerida(R)/X=ambos-problemas (Estado,Err: mayúsculas=malo)
||/ Nombre Versión Descripción
+++-=================================-=================================-==================================================================================
ii sun-java6-jre 6-10-0ubuntu2 Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)

Revision history for this message
mihai.ile (mihai.ile) wrote :

This is a known issue with some systems configurations (I never had an 64bit CPU until now, so I think this time I am going to fix it finally)

Changed in jkiwi:
assignee: nobody → mihai007 (mihai-ile)
status: New → Confirmed
Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

Just another confirmation running it on 64-bit
Best regards, Nikos

--%<---%<---%<--
jkiwi
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:120)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Exception in thread "main" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Caused by: java.lang.IllegalArgumentException: Argument not valid
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:155)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 ... 4 more
--%<---%<---%<--

Revision history for this message
Νίκος Αλεξανδρής (nikos.alexandris) wrote :

Sorry, that was ...running on 64-bit Jaunty with...

dpkg -l sun-java6* | grep ii
ii sun-java6-bin 6-14-0ubuntu1.9.04 Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
ii sun-java6-jdk 6-14-0ubuntu1.9.04 Sun Java(TM) Development Kit (JDK) 6
ii sun-java6-jre 6-14-0ubuntu1.9.04 Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent file

Nikos

Revision history for this message
yomisma (ladypunk39) wrote :

Confirming same problem with Lucid and 64bits processor.

Revision history for this message
Maunier (mmaunier2001) wrote :

And another one ... running on 64 bits Lucid.

---------------8<--------------------------------------------------------------------------------------------------
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:120)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Exception in thread "main" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Caused by: java.lang.IllegalArgumentException: Argument not valid
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:155)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 ... 4 more

Revision history for this message
Scot Bernard (pablo-bueti) wrote :
Download full text (3.1 KiB)

Same here running Ubuntu 10.04 64 bits ( Linux user-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux )

java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:120)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Exception in thread "main" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
 at core.Loader.main(Loader.java:235)
Caused by: java.lang.IllegalArgumentException: Argument not valid
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.SWT.error(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at org.eclipse.swt.graphics.ImageData.<init>(Unknown Source)
 at utils.GtkStockIconSWT.createImage(GtkStockIconSWT.java:155)
 at utils.StockIcon.getGTKImageData(StockIcon.java:275)
 at utils.StockIcon.getIcon(StockIcon.java:161)
 at core.MainWindow.createSShell(MainWindow.java:227)
 at core.MainWindow.<init>(MainWindow.java:200)
 at core.Loader$Worker$3.run(Loader.java:495)
 at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
 ... 4 more

Here info about my java installation:

dpkg -l *java* | grep ii
ii ca-certificates-java 20100406ubuntu1 Common CA certificates (JKS keystore)
ii java-common 0.34 Base of all Java packages
ii libaccess-bridge-java 1.26.2-3 Java Access Bridge for GNOME
ii libaccess-bridge-java-jni 1.26.2-3 Java Access Bridge for GNOME (jni bindings)
ii tzdata-java 2010k-0ubuntu0.10.04 time zone and daylight-saving time data for

dpkg -l *jdk* | grep ii
ii openjdk-6-jre 6b18-1.8-4ubuntu3 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-6-jre-headless 6b18-1.8-4ubuntu3 OpenJDK Java runtime, using Hotspot JIT (hea
ii openjdk-6-jre-lib 6b18-1.8-4ubuntu3 OpenJDK Java runtime (architecture independe

Thank your for reviewing this...

Read more...

Revision history for this message
michaelcochez (michaelcochez) wrote :

The tip on the following page helped me solving the problem
http://forum.ubuntu-fr.org/viewtopic.php?id=400480
Shortly:

1) Change in 'src/utils/GtkStockIconSWT.java' in the lines 120, 121 et 128 (Integer) by (Long).

2) Then recompile
cd src
javac -classpath ../lib/in_use/metadata-extractor.jar:../lib/in_use/swt.jar @classes

3) I had to replace the swt jar in /lib/in_use/ with the 64 bit version (which I took from here : http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php#SWT and then Linux (x86_64/GTK 2) )
(This was not said in the referred forum, perhaps this is not needed for everyone)

4) execute
java -classpath ../lib/in_use/metadata-extractor.jar:../lib/in_use/swt.jar:. core.Loader
?field.comment=The tip on the following page helped me solving the problem
http://forum.ubuntu-fr.org/viewtopic.php?id=400480
Shortly:

1) Change in 'src/utils/GtkStockIconSWT.java' in the lines 120, 121 et 128 (Integer) by (Long).

2) Then recompile
cd src
javac -classpath ../lib/in_use/metadata-extractor.jar:../lib/in_use/swt.jar @classes

3) I had to replace the swt jar in /lib/in_use/ with the 64 bit version (which I took from here : http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php#SWT and then Linux (x86_64/GTK 2) )
(This was not said in the referred forum, perhaps this is not needed for everyone)

4) execute
java -classpath ../lib/in_use/metadata-extractor.jar:../lib/in_use/swt.jar:. core.Loader

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.