Debian Bug report logs - #600288
eclipse: Could not initialize class com.ibm.icu.impl.JavaTimeZone
Reported by: Luca Tettamanti <kronos.it@gmail.com>
Date: Fri, 15 Oct 2010 15:27:02 UTC
Severity: normal
Tags: experimental, sid
Merged with 600359, 600389
Found in versions openjdk-6/6b18-1.8.2-1, openjdk-6/6b20-1.9.1-1
Fixed in version openjdk-6/6b18-1.8.2-2
Done: Matthias Klose <doko@ubuntu.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Fri, 15 Oct 2010 15:27:05 GMT) (full text, mbox, link).
Acknowledgement sent to Luca Tettamanti <kronos.it@gmail.com>
:
New Bug report received and forwarded. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Fri, 15 Oct 2010 15:27:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: openjdk-6-jre Version: 6b18-1.8.2-1 Severity: normal Hello, after upgrading from 6b18-1.8.1-2 eclipse (3.6) misbehaves in various areas (run configuration, debugging, project properties); the common underlying cause seems to be: !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NoClassDefFoundError: Could not initialize class com.ibm.icu.impl.JavaTimeZone at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:679) at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java:1633) at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1597) at com.ibm.icu.text.DateFormat.get(DateFormat.java:1255) at com.ibm.icu.text.DateFormat.getDateTimeInstance(DateFormat.java:1045) at org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils.getDateStringValue(IDEResourceInfoUtils.java:137) at org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage.createBasicInfoGroup(ResourceInfoPage.java:308) at org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage.createContents(ResourceInfoPage.java:405) at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232) at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1501) at org.eclipse.jface.preference.PreferenceDialog$14.run(PreferenceDialog.java:1258) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1252) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:673) at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:708) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:704) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:867) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:865) at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1700) at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1139) at org.eclipse.jface.preference.PreferenceDialog.selectSavedItem(PreferenceDialog.java:1054) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.selectSavedItem(FilteredPreferenceDialog.java:728) at org.eclipse.jface.preference.PreferenceDialog$4.run(PreferenceDialog.java:375) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:371) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.ui.internal.dialogs.PropertyDialog.createDialogOn(PropertyDialog.java:82) at org.eclipse.ui.dialogs.PropertyDialogAction.createDialog(PropertyDialogAction.java:176) at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:155) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) Downgrading the package restore the correct functionality of Eclipse. Taking a wild guess I'd say it might be related to this change: * Symlink timezone data Might be related: http://www.eclipse.org/forums/index.php?t=msg&goto=488277 -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.36-rc7 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages openjdk-6-jre depends on: ii libaccess-bridge-java-j 1.26.2-5 Java Access Bridge for GNOME (jni ii libasound2 1.0.23-2 shared library for ALSA applicatio ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib ii libgif4 4.1.6-9 library for GIF images (library) ii libjpeg62 6b1-1 The Independent JPEG Group's JPEG ii libpng12-0 1.2.44-1 PNG library - runtime ii libpulse0 0.9.21-3+b1 PulseAudio client libraries ii libx11-6 2:1.3.3-3 X11 client-side library ii libxext6 2:1.1.2-1 X11 miscellaneous extension librar ii libxi6 2:1.3-4 X11 Input extension library ii libxrender1 1:0.9.6-1 X Rendering Extension client libra ii libxtst6 2:1.1.0-3 X11 Testing -- Record extension li ii openjdk-6-jre-headless 6b18-1.8.2-1 OpenJDK Java runtime, using Hotspo ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages openjdk-6-jre recommends: ii ttf-dejavu-extra 2.31-1 Vera font family derivate with add Versions of packages openjdk-6-jre suggests: ii icedtea6-plugin 6b18-1.8.2-1 web browser plugin based on OpenJD -- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Fri, 15 Oct 2010 20:51:03 GMT) (full text, mbox, link).
Acknowledgement sent to Eric Evans <eevans@debian.org>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Fri, 15 Oct 2010 20:51:03 GMT) (full text, mbox, link).
Message #10 received at 600288@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
[ Luca Tettamanti ] > after upgrading from 6b18-1.8.1-2 eclipse (3.6) misbehaves in various > areas (run configuration, debugging, project properties); the common > underlying cause seems to be: I can confirm this report. The attached class demonstrates the problem, producing a list of available time zones on a working JRE, and a NullPointerException on openjdk-6/6b18-1.8.2-1. > java.lang.NoClassDefFoundError: Could not initialize class com.ibm.icu.impl.JavaTimeZone > at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java:679) > at com.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java:1633) > at com.ibm.icu.util.Calendar.getInstance(Calendar.java:1597) > at com.ibm.icu.text.DateFormat.get(DateFormat.java:1255) > at com.ibm.icu.text.DateFormat.getDateTimeInstance(DateFormat.java:1045) > at org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils.getDateStringValue(IDEResourceInfoUtils.java:137) -- Eric Evans eevans@debian.org
[Tzs.java (text/x-java, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Sun, 17 Oct 2010 10:57:10 GMT) (full text, mbox, link).
Acknowledgement sent to Gregory Mounie <Gregory.Mounie@imag.fr>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Sun, 17 Oct 2010 10:57:10 GMT) (full text, mbox, link).
Message #15 received at 600288@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hello, A workaround (from a MacOsX workaround, cf "http://www.eclipse.org/forums/index.php?t=msg&goto=488277&," ) is to change : com.ibm.icu.util.TimeZone.DefaultTimeZoneType = JDK to com.ibm.icu.util.TimeZone.DefaultTimeZoneType = ICU in subfile com/ibm/icu/ICUConfig.properties of /usr/lib/eclipse/plugins/com.ibm.icu_4.0.1.v20100122.jar (2 cents: in-file archive editing of emacs rocks !) Grégory Mounié
[Message part 2 (text/html, inline)]
[smime.p7s (application/pkcs7-signature, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Mon, 18 Oct 2010 11:51:04 GMT) (full text, mbox, link).
Acknowledgement sent to Luca Tettamanti <kronos.it@gmail.com>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Mon, 18 Oct 2010 11:51:04 GMT) (full text, mbox, link).
Message #20 received at 600288@bugs.debian.org (full text, mbox, reply):
I'm aware of the workaround (see the first post). However there's no need to repack the JAR: just add -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU to eclipse.ini Luca
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Mon, 18 Oct 2010 12:45:02 GMT) (full text, mbox, link).
Acknowledgement sent to Luca Tettamanti <kronos.it@gmail.com>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Mon, 18 Oct 2010 12:45:02 GMT) (full text, mbox, link).
Message #25 received at 600288@bugs.debian.org (full text, mbox, reply):
Debugging the test program it seems that the problem is a missing ZoneInfoMappings file. The stack trace is: Thread [main] (Suspended) ZoneInfoFile$2.run() line: 1075 ZoneInfoFile$2.run() line: 1073 AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method] ZoneInfoFile.readZoneInfoFile(String) line: 1073 ZoneInfoFile.getZoneInfoMappings() line: 1042 ZoneInfoFile.getZoneIDs() line: 783 ZoneInfo.getAvailableIDs() line: 535 TimeZone.getAvailableIDs() line: 514 tztest.main(String[]) line: 3 readZoneInfoFile opens this file: /usr/share/javazi/ZoneInfoMappings which does not exists; the null return value is propagated up to getZoneIDs, leading to the NullPointerException. That file is indeed present in the older package: # ls /usr/share/javazi/ Africa Antarctica Atlantic CET EET EST5EDT Europe HST MET MST7MDT PST8PDT WET America Asia Australia CST6CDT EST Etc GMT Indian MST Pacific SystemV ZoneInfoMappings # dpkg -S /usr/share/javazi/ZoneInfoMappings tzdata-java: /usr/share/javazi/ZoneInfoMappings Hum. So upgrading the openjdk packages somehow deletes files from another package... [upgrade] Unpacking replacement openjdk-6-jre-lib ... dpkg: warning: unable to delete old directory '/usr/lib/jvm/java-6-openjdk/jre/lib/zi/Antarctica': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/jvm/java-6-openjdk/jre/lib/zi/Pacific': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/jvm/java-6-openjdk/jre/lib/zi/America': Directory not empty # ls /usr/share/javazi America Antarctica Pacific The preinst file of openjdk-6-jre-lib shows: with_tzdata=yes if [ "$with_tzdata" = yes ]; then if [ ! -h /usr/lib/jvm/java-6-openjdk/jre/lib/zi ] && [ -d /usr/lib/jvm/java-6-openjdk/jre/lib/zi ]; then rm -rf /usr/lib/jvm/java-6-openjdk/jre/lib/zi fi fi But, even with 6b18-1.8.1-2 installed that directory is a symlink; # ll /usr/lib/jvm/java-6-openjdk/jre/lib/zi lrwxrwxrwx 1 root root 27 Oct 15 17:19 /usr/lib/jvm/java-6-openjdk/jre/lib/zi -> ../../../../../share/javazi The rm -rf should not be triggered. Double hum :) Luca
Forcibly Merged 600288 600359 600389. Request was from Damien Raude-Morvan <drazzib@debian.org>
to control@bugs.debian.org
. (Mon, 18 Oct 2010 21:27:15 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Wed, 20 Oct 2010 11:21:09 GMT) (full text, mbox, link).
Acknowledgement sent to LEDUQUE Mickaël <mleduque@gmail.com>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Wed, 20 Oct 2010 11:21:09 GMT) (full text, mbox, link).
Message #32 received at 600288@bugs.debian.org (full text, mbox, reply):
Hello, I can still see this bug even after upgrading to 6b18-1.8.2-2. All I have to do is Help>About Eclipse, then click on Installation Details and choose Configuration tab. I'll try to upgrade to the experimental version of openjdk to see if it's fixed there. Mickaël Leduque
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Wed, 20 Oct 2010 14:03:06 GMT) (full text, mbox, link).
Acknowledgement sent to Luca Tettamanti <kronos.it@gmail.com>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Wed, 20 Oct 2010 14:03:06 GMT) (full text, mbox, link).
Message #37 received at 600288@bugs.debian.org (full text, mbox, reply):
2010/10/20 LEDUQUE Mickaël <mleduque@gmail.com>: > Hello, > > I can still see this bug even after upgrading to 6b18-1.8.2-2. Hum, yes. If you upgrade from 6b18-1.8.2-1 javazi data has already been removed, so it doesn't come back. Even if you downgrade /usr/lib/jvm/java-6-openjdk/jre/lib/zi remains a symlink (and the older version shipped with a copy of javazi stuff), and this confuses the upgrade. When installing after a purge from either versions everything is fine. I also found out that "aptitude reinstall tzdata-java" fixes the issue. Luca
Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>
:
Bug#600288
; Package openjdk-6-jre
. (Wed, 20 Oct 2010 14:54:03 GMT) (full text, mbox, link).
Acknowledgement sent to LEDUQUE Mickaël <mleduque@gmail.com>
:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>
. (Wed, 20 Oct 2010 14:54:03 GMT) (full text, mbox, link).
Message #42 received at 600288@bugs.debian.org (full text, mbox, reply):
2010/10/20 Luca Tettamanti <kronos.it@gmail.com>: > 2010/10/20 LEDUQUE Mickaël <mleduque@gmail.com>: >> Hello, >> >> I can still see this bug even after upgrading to 6b18-1.8.2-2. > > Hum, yes. > If you upgrade from 6b18-1.8.2-1 javazi data has already been removed, > so it doesn't come back. > Even if you downgrade /usr/lib/jvm/java-6-openjdk/jre/lib/zi remains a > symlink (and the older version shipped with a copy of javazi stuff), > and this confuses the upgrade. > When installing after a purge from either versions everything is fine. > > I also found out that "aptitude reinstall tzdata-java" fixes the issue. > > Luca > Thank you very much, reinstalling tzdata-java fixed the problem. Mickaël
Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org
. (Thu, 18 Nov 2010 07:31:48 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 4 03:16:54 2021 ; Machine Name: bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.
Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600288
Posted by: michalzabalae0193289.blogspot.com