FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 09-12-2012, 11:29 PM
Peter Ansell
 
Default OpenJDK-7 update gives errors in Eclipse-4.2 preferences

Hi,

I installed an update to OpenJDK-7 in the last few hours and now
Eclipse is failing to let me see the preferences panel for installed
JREs, and in addition, I cannot run code inside Eclipse.

I get the following error in ~/workspace/.metadata/.log when I try to
go to Window->Preferences->Java->Installed JREs, and there is also an
error dialog inside Eclipse at the point of failure that doesn't tell
me much.

Naively I would say that something relating to
com.ibm.icu.text.SimpleDateFormat may have changed in the most recent
OpenJDK, as it seems to be the root cause.

!ENTRY org.eclipse.equinox.registry 4 1 2012-09-13 09:16:18.508
!MESSAGE Unable to create the selected preference page.
!STACK 0
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.jdt.debug.ui (339).
at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
at org.eclipse.core.internal.adapter.AdapterFactoryPr oxy.loadFactory(AdapterFactoryProxy.java:136)
at org.eclipse.core.internal.runtime.AdapterManager.g etAdapter(AdapterManager.java:321)
at org.eclipse.core.internal.runtime.AdapterManager.l oadAdapter(AdapterManager.java:356)
at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.getToggleBreakpointsTarget(ToggleBreakpoint sTargetManager.java:339)
at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.createDefaultToggleTarget(ToggleBreakpoints TargetManager.java:378)
at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager.getToggleBreakpointsTarget(Togg leBreakpointsTargetManager.java:539)
at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.getAdapter(RetargetBreakp ointAction.java:47)
at org.eclipse.debug.internal.ui.actions.RetargetActi on.partActivated(RetargetAction.java:163)
at org.eclipse.debug.internal.ui.actions.RetargetActi on.init(RetargetAction.java:96)
at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.init(RetargetBreakpointAc tion.java:53)
at org.eclipse.ui.internal.WWinPluginAction.initDeleg ate(WWinPluginAction.java:189)
at org.eclipse.ui.internal.PluginAction.createDelegat e(PluginAction.java:125)
at org.eclipse.ui.internal.WWinPluginAction.refreshAc tionList(WWinPluginAction.java:165)
at org.eclipse.ui.plugin.AbstractUIPlugin$1.run(Abstr actUIPlugin.java:485)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3529)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3182)
at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.c reateAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench. java:585)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:14 38)
at org.eclipse.equinox.launcher.Main.main(Main.java:1 414)
Caused by: org.osgi.framework.BundleException: The activator
org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin for bundle
org.eclipse.jdt.debug.ui is invalid
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:172)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
... 55 more
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/jdt/debug/core/IJavaHotCodeReplaceListener
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2404)
at java.lang.Class.getConstructor0(Class.java:2714)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:167)
... 61 more
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.jdt.debug (338).
at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
at org.eclipse.debug.internal.core.BreakpointManager. createBreakpoint(BreakpointManager.java:557)
at org.eclipse.debug.internal.core.BreakpointManager. loadBreakpoints(BreakpointManager.java:268)
at org.eclipse.debug.internal.core.BreakpointManager. initializeBreakpoints(BreakpointManager.java:461)
at org.eclipse.debug.internal.core.BreakpointManager. getBreakpoints0(BreakpointManager.java:430)
at org.eclipse.debug.internal.core.BreakpointManager. hasBreakpoints(BreakpointManager.java:946)
at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.isEnabled(RemoveAllBrea kpointsAction.java:55)
at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.update(AbstractRemoveAllAction Delegate.java:100)
at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.init(AbstractRemoveAllActionDe legate.java:86)
at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.init(RemoveAllBreakpoin tsAction.java:150)
... 30 more
Caused by: org.osgi.framework.BundleException: Exception in
org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start() of bundle
org.eclipse.jdt.debug.
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:734 )
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
... 54 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.ibm.icu.text.SimpleDateFormat
at org.eclipse.jdt.internal.debug.core.JDIDebugOption s.<clinit>(JDIDebugOptions.java:58)
at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start(JDIDebugPlugin.java:274)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:702 )
... 60 more


$ java -version
java version "1.7.0_07"
OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

I have installed Eclipse Juno (version 4.2) myself in /opt/eclipse and
the output of /opt/eclipse/eclipse.ini is:

$ cat /opt/eclipse/eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
2048m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=2048m
-Xms1024m
-Xmx4096m

The Eclipse About dialog shows the Eclipse Version as:

Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120614-1722

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-13-2012, 12:02 AM
Peter Ansell
 
Default OpenJDK-7 update gives errors in Eclipse-4.2 preferences

There was also another error at the top of the log which may be closer
to the root cause:

The following may have set off the chain, as it causes a class
initialiser to fail:

Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
... 22 more

The following bug may be relevant here as it contains the same
NullPointerException as above, although my file system permissions
seem to permit reads by anyone so it doesn't exactly match:

http://bugs.sun.com/view_bug.do?bug_id=6529213


File permissions for JAVA_HOME/jre/lib/zi/ZoneInfoMappings:

$ env | grep JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
$ ls -lah /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings
lrwxrwxrwx 1 root root 61 Sep 12 02:14
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings ->
../../../../java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
$ ls -lah /usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
-rw-r--r-- 1 root root 15K Sep 11 20:10
/usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings


The .metadata/.log file starts with:

!SESSION 2012-09-13 08:59:42.484 -----------------------------------------------
eclipse.buildId=I20120608-1400
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.ui.workbench 4 2 2012-09-13 08:59:55.093
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in
"org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate
class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler. AutomaticUpdateScheduler".
at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.throwException(RegistryStrategyOSGI.jav a:194)
at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:188)
at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(Work benchPlugin.java:273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExte nsion(WorkbenchPlugin.java:269)
at org.eclipse.ui.internal.EarlyStartupRunnable.getEx ecutableExtension(EarlyStartupRunnable.java:117)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(E arlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
at org.eclipse.ui.internal.Workbench$52.run(Workbench .java:2357)
at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
Caused by: java.lang.ExceptionInInitializerError
at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java :754)
at com.ibm.icu.util.Calendar.getInstanceInternal(Cale ndar.java:1626)
at com.ibm.icu.util.Calendar.getInstance(Calendar.jav a:1590)
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.A utomaticUpdateScheduler.<clinit>(AutomaticUpdateSc heduler.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:184)
... 11 more
Caused by: java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
... 22 more


I compiled the TZTest file as suggested at
https://jira.atlassian.com/browse/FE-2662?focusedCommentId=205020 and
it reproduces the exception from the Eclipse logs:

$ cat TZTest.java
import java.util.TimeZone;

public class TZTest {
public static void main(String args[]) {
String[] availableIds = TimeZone.getAvailableIDs();
System.out.println("Length: "+availableIds.length);
for (int i = 0; i < availableIds.length; i++) {
System.out.println("ID #"+i+": "+availableIds[i]);
}
}
}
$ javac TZTest.java
$ java TZTest
Exception in thread "main" java.lang.NullPointerException
at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
at TZTest.main(TZTest.java:5)



On 13 September 2012 09:29, Peter Ansell <ansell.peter@gmail.com> wrote:
> Hi,
>
> I installed an update to OpenJDK-7 in the last few hours and now
> Eclipse is failing to let me see the preferences panel for installed
> JREs, and in addition, I cannot run code inside Eclipse.
>
> I get the following error in ~/workspace/.metadata/.log when I try to
> go to Window->Preferences->Java->Installed JREs, and there is also an
> error dialog inside Eclipse at the point of failure that doesn't tell
> me much.
>
> Naively I would say that something relating to
> com.ibm.icu.text.SimpleDateFormat may have changed in the most recent
> OpenJDK, as it seems to be the root cause.
>
> !ENTRY org.eclipse.equinox.registry 4 1 2012-09-13 09:16:18.508
> !MESSAGE Unable to create the selected preference page.
> !STACK 0
> org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.debug.ui (339).
> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
> at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
> at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
> at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
> at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
> at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
> at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
> at org.eclipse.core.internal.adapter.AdapterFactoryPr oxy.loadFactory(AdapterFactoryProxy.java:136)
> at org.eclipse.core.internal.runtime.AdapterManager.g etAdapter(AdapterManager.java:321)
> at org.eclipse.core.internal.runtime.AdapterManager.l oadAdapter(AdapterManager.java:356)
> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.getToggleBreakpointsTarget(ToggleBreakpoint sTargetManager.java:339)
> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.createDefaultToggleTarget(ToggleBreakpoints TargetManager.java:378)
> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager.getToggleBreakpointsTarget(Togg leBreakpointsTargetManager.java:539)
> at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.getAdapter(RetargetBreakp ointAction.java:47)
> at org.eclipse.debug.internal.ui.actions.RetargetActi on.partActivated(RetargetAction.java:163)
> at org.eclipse.debug.internal.ui.actions.RetargetActi on.init(RetargetAction.java:96)
> at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.init(RetargetBreakpointAc tion.java:53)
> at org.eclipse.ui.internal.WWinPluginAction.initDeleg ate(WWinPluginAction.java:189)
> at org.eclipse.ui.internal.PluginAction.createDelegat e(PluginAction.java:125)
> at org.eclipse.ui.internal.WWinPluginAction.refreshAc tionList(WWinPluginAction.java:165)
> at org.eclipse.ui.plugin.AbstractUIPlugin$1.run(Abstr actUIPlugin.java:485)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:135)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3529)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3182)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine$9.run(PartRenderingEngine.java:1022)
> at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine.run(PartRenderingEngine.java:916)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.c reateAndRunUI(E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench. java:585)
> at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:540)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:124)
> at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:353)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:14 38)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1 414)
> Caused by: org.osgi.framework.BundleException: The activator
> org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin for bundle
> org.eclipse.jdt.debug.ui is invalid
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:172)
> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:679)
> at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
> at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
> at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
> ... 55 more
> Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/jdt/debug/core/IJavaHotCodeReplaceListener
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2404)
> at java.lang.Class.getConstructor0(Class.java:2714)
> at java.lang.Class.newInstance0(Class.java:343)
> at java.lang.Class.newInstance(Class.java:325)
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:167)
> ... 61 more
> Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
> An error occurred while automatically activating bundle
> org.eclipse.jdt.debug (338).
> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
> at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
> at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
> at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
> at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
> at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
> at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
> at org.eclipse.debug.internal.core.BreakpointManager. createBreakpoint(BreakpointManager.java:557)
> at org.eclipse.debug.internal.core.BreakpointManager. loadBreakpoints(BreakpointManager.java:268)
> at org.eclipse.debug.internal.core.BreakpointManager. initializeBreakpoints(BreakpointManager.java:461)
> at org.eclipse.debug.internal.core.BreakpointManager. getBreakpoints0(BreakpointManager.java:430)
> at org.eclipse.debug.internal.core.BreakpointManager. hasBreakpoints(BreakpointManager.java:946)
> at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.isEnabled(RemoveAllBrea kpointsAction.java:55)
> at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.update(AbstractRemoveAllAction Delegate.java:100)
> at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.init(AbstractRemoveAllActionDe legate.java:86)
> at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.init(RemoveAllBreakpoin tsAction.java:150)
> ... 30 more
> Caused by: org.osgi.framework.BundleException: Exception in
> org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start() of bundle
> org.eclipse.jdt.debug.
> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:734 )
> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
> at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
> at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
> ... 54 more
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> com.ibm.icu.text.SimpleDateFormat
> at org.eclipse.jdt.internal.debug.core.JDIDebugOption s.<clinit>(JDIDebugOptions.java:58)
> at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start(JDIDebugPlugin.java:274)
> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:702 )
> ... 60 more
>
>
> $ java -version
> java version "1.7.0_07"
> OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
> OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
>
> I have installed Eclipse Juno (version 4.2) myself in /opt/eclipse and
> the output of /opt/eclipse/eclipse.ini is:
>
> $ cat /opt/eclipse/eclipse.ini
> -startup
> plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 200.v20120522-1813
> -product
> org.eclipse.epp.package.jee.product
> --launcher.defaultAction
> openFile
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 2048m
> --launcher.defaultAction
> openFile
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Dhelp.lucene.tokenizer=standard
> -XX:MaxPermSize=2048m
> -Xms1024m
> -Xmx4096m
>
> The Eclipse About dialog shows the Eclipse Version as:
>
> Eclipse Java EE IDE for Web Developers.
> Version: Juno Release
> Build id: 20120614-1722

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-13-2012, 12:06 AM
Peter Ansell
 
Default OpenJDK-7 update gives errors in Eclipse-4.2 preferences

Okay, fixed my issue using a solution from AskUbuntu :
http://askubuntu.com/questions/186986/eclipse-has-multiple-issues-after-jre-6-openjdk-upgrade

sudo apt-get --reinstall install tzdata-java

Cheers,

Peter

On 13 September 2012 10:02, Peter Ansell <ansell.peter@gmail.com> wrote:
> There was also another error at the top of the log which may be closer
> to the root cause:
>
> The following may have set off the chain, as it causes a class
> initialiser to fail:
>
> Caused by: java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
> ... 22 more
>
> The following bug may be relevant here as it contains the same
> NullPointerException as above, although my file system permissions
> seem to permit reads by anyone so it doesn't exactly match:
>
> http://bugs.sun.com/view_bug.do?bug_id=6529213
>
>
> File permissions for JAVA_HOME/jre/lib/zi/ZoneInfoMappings:
>
> $ env | grep JAVA_HOME
> JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
> $ ls -lah /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings
> lrwxrwxrwx 1 root root 61 Sep 12 02:14
> /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings ->
> ../../../../java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
> $ ls -lah /usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
> -rw-r--r-- 1 root root 15K Sep 11 20:10
> /usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
>
>
> The .metadata/.log file starts with:
>
> !SESSION 2012-09-13 08:59:42.484 -----------------------------------------------
> eclipse.buildId=I20120608-1400
> java.version=1.7.0_07
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product
> org.eclipse.epp.package.jee.product
>
> !ENTRY org.eclipse.ui.workbench 4 2 2012-09-13 08:59:55.093
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench".
> !STACK 1
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate
> class "org.eclipse.equinox.internal.p2.ui.sdk.scheduler. AutomaticUpdateScheduler".
> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.throwException(RegistryStrategyOSGI.jav a:194)
> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:188)
> at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
> at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
> at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
> at org.eclipse.ui.internal.WorkbenchPlugin$1.run(Work benchPlugin.java:273)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:52)
> at org.eclipse.ui.internal.WorkbenchPlugin.createExte nsion(WorkbenchPlugin.java:269)
> at org.eclipse.ui.internal.EarlyStartupRunnable.getEx ecutableExtension(EarlyStartupRunnable.java:117)
> at org.eclipse.ui.internal.EarlyStartupRunnable.run(E arlyStartupRunnable.java:66)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
> at org.eclipse.ui.internal.Workbench$52.run(Workbench .java:2357)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
> Caused by: java.lang.ExceptionInInitializerError
> at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java :754)
> at com.ibm.icu.util.Calendar.getInstanceInternal(Cale ndar.java:1626)
> at com.ibm.icu.util.Calendar.getInstance(Calendar.jav a:1590)
> at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.A utomaticUpdateScheduler.<clinit>(AutomaticUpdateSc heduler.java:50)
> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
> at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Construc tor.java:525)
> at java.lang.Class.newInstance0(Class.java:372)
> at java.lang.Class.newInstance(Class.java:325)
> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:184)
> ... 11 more
> Caused by: java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
> ... 22 more
>
>
> I compiled the TZTest file as suggested at
> https://jira.atlassian.com/browse/FE-2662?focusedCommentId=205020 and
> it reproduces the exception from the Eclipse logs:
>
> $ cat TZTest.java
> import java.util.TimeZone;
>
> public class TZTest {
> public static void main(String args[]) {
> String[] availableIds = TimeZone.getAvailableIDs();
> System.out.println("Length: "+availableIds.length);
> for (int i = 0; i < availableIds.length; i++) {
> System.out.println("ID #"+i+": "+availableIds[i]);
> }
> }
> }
> $ javac TZTest.java
> $ java TZTest
> Exception in thread "main" java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at TZTest.main(TZTest.java:5)
>
>
>
> On 13 September 2012 09:29, Peter Ansell <ansell.peter@gmail.com> wrote:
>> Hi,
>>
>> I installed an update to OpenJDK-7 in the last few hours and now
>> Eclipse is failing to let me see the preferences panel for installed
>> JREs, and in addition, I cannot run code inside Eclipse.
>>
>> I get the following error in ~/workspace/.metadata/.log when I try to
>> go to Window->Preferences->Java->Installed JREs, and there is also an
>> error dialog inside Eclipse at the point of failure that doesn't tell
>> me much.
>>
>> Naively I would say that something relating to
>> com.ibm.icu.text.SimpleDateFormat may have changed in the most recent
>> OpenJDK, as it seems to be the root cause.
>>
>> !ENTRY org.eclipse.equinox.registry 4 1 2012-09-13 09:16:18.508
>> !MESSAGE Unable to create the selected preference page.
>> !STACK 0
>> org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
>> An error occurred while automatically activating bundle
>> org.eclipse.jdt.debug.ui (339).
>> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
>> at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
>> at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
>> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
>> at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
>> at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
>> at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
>> at org.eclipse.core.internal.adapter.AdapterFactoryPr oxy.loadFactory(AdapterFactoryProxy.java:136)
>> at org.eclipse.core.internal.runtime.AdapterManager.g etAdapter(AdapterManager.java:321)
>> at org.eclipse.core.internal.runtime.AdapterManager.l oadAdapter(AdapterManager.java:356)
>> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.getToggleBreakpointsTarget(ToggleBreakpoint sTargetManager.java:339)
>> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreakpointsTargetAdapterF actory.createDefaultToggleTarget(ToggleBreakpoints TargetManager.java:378)
>> at org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager.getToggleBreakpointsTarget(Togg leBreakpointsTargetManager.java:539)
>> at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.getAdapter(RetargetBreakp ointAction.java:47)
>> at org.eclipse.debug.internal.ui.actions.RetargetActi on.partActivated(RetargetAction.java:163)
>> at org.eclipse.debug.internal.ui.actions.RetargetActi on.init(RetargetAction.java:96)
>> at org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.init(RetargetBreakpointAc tion.java:53)
>> at org.eclipse.ui.internal.WWinPluginAction.initDeleg ate(WWinPluginAction.java:189)
>> at org.eclipse.ui.internal.PluginAction.createDelegat e(PluginAction.java:125)
>> at org.eclipse.ui.internal.WWinPluginAction.refreshAc tionList(WWinPluginAction.java:165)
>> at org.eclipse.ui.plugin.AbstractUIPlugin$1.run(Abstr actUIPlugin.java:485)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:135)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3529)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3182)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine$9.run(PartRenderingEngine.java:1022)
>> at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
>> at org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine.run(PartRenderingEngine.java:916)
>> at org.eclipse.e4.ui.internal.workbench.E4Workbench.c reateAndRunUI(E4Workbench.java:86)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench. java:585)
>> at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
>> at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:540)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
>> at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:124)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:353)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:180)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:629)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:584)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:14 38)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1 414)
>> Caused by: org.osgi.framework.BundleException: The activator
>> org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin for bundle
>> org.eclipse.jdt.debug.ui is invalid
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:172)
>> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:679)
>> at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
>> at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
>> at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
>> ... 55 more
>> Caused by: java.lang.NoClassDefFoundError:
>> org/eclipse/jdt/debug/core/IJavaHotCodeReplaceListener
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2404)
>> at java.lang.Class.getConstructor0(Class.java:2714)
>> at java.lang.Class.newInstance0(Class.java:343)
>> at java.lang.Class.newInstance(Class.java:325)
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(AbstractBundle.java:167)
>> ... 61 more
>> Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNotFoundException:
>> An error occurred while automatically activating bundle
>> org.eclipse.jdt.debug (338).
>> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:122)
>> at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:469)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:216)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:395)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.java:464)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
>> at org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
>> at org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
>> at org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:229)
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle.java:1212)
>> at org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExtension(RegistryStrat egyOSGI.java:174)
>> at org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(ExtensionRegistry.jav a:905)
>> at org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtension(ConfigurationEleme nt.java:243)
>> at org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableExtension(Configuratio nElementHandle.java:55)
>> at org.eclipse.debug.internal.core.BreakpointManager. createBreakpoint(BreakpointManager.java:557)
>> at org.eclipse.debug.internal.core.BreakpointManager. loadBreakpoints(BreakpointManager.java:268)
>> at org.eclipse.debug.internal.core.BreakpointManager. initializeBreakpoints(BreakpointManager.java:461)
>> at org.eclipse.debug.internal.core.BreakpointManager. getBreakpoints0(BreakpointManager.java:430)
>> at org.eclipse.debug.internal.core.BreakpointManager. hasBreakpoints(BreakpointManager.java:946)
>> at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.isEnabled(RemoveAllBrea kpointsAction.java:55)
>> at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.update(AbstractRemoveAllAction Delegate.java:100)
>> at org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.init(AbstractRemoveAllActionDe legate.java:86)
>> at org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.init(RemoveAllBreakpoin tsAction.java:150)
>> ... 30 more
>> Caused by: org.osgi.framework.BundleException: Exception in
>> org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start() of bundle
>> org.eclipse.jdt.debug.
>> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:734 )
>> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:683)
>> at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:381)
>> at org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.java:300)
>> at org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
>> at org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:263)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(EclipseLazyStarter.j ava:107)
>> ... 54 more
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> com.ibm.icu.text.SimpleDateFormat
>> at org.eclipse.jdt.internal.debug.core.JDIDebugOption s.<clinit>(JDIDebugOptions.java:58)
>> at org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start(JDIDebugPlugin.java:274)
>> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextImpl.java:711)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:702 )
>> ... 60 more
>>
>>
>> $ java -version
>> java version "1.7.0_07"
>> OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
>> OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
>>
>> I have installed Eclipse Juno (version 4.2) myself in /opt/eclipse and
>> the output of /opt/eclipse/eclipse.ini is:
>>
>> $ cat /opt/eclipse/eclipse.ini
>> -startup
>> plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
>> --launcher.library
>> plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 200.v20120522-1813
>> -product
>> org.eclipse.epp.package.jee.product
>> --launcher.defaultAction
>> openFile
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 2048m
>> --launcher.defaultAction
>> openFile
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.5
>> -Dhelp.lucene.tokenizer=standard
>> -XX:MaxPermSize=2048m
>> -Xms1024m
>> -Xmx4096m
>>
>> The Eclipse About dialog shows the Eclipse Version as:
>>
>> Eclipse Java EE IDE for Web Developers.
>> Version: Juno Release
>> Build id: 20120614-1722

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-13-2012, 01:01 PM
Michael Hansen
 
Default OpenJDK-7 update gives errors in Eclipse-4.2 preferences

Try set

-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=ICU

As last line in eclipse.ini.

That helped when upgrading the Java version made eclipse stop java debugging
on my Ubuntu linux today - found that in another thread, that did not explain
why it
worked.

Regards

Michael


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-18-2012, 08:09 PM
Rafael Perez
 
Default OpenJDK-7 update gives errors in Eclipse-4.2 preferences

Peter Ansell <ansell.peter <at> gmail.com> writes:

>
> There was also another error at the top of the log which may be closer
> to the root cause:
>
> The following may have set off the chain, as it causes a class
> initialiser to fail:
>
> Caused by: java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
> ... 22 more
>
> The following bug may be relevant here as it contains the same
> NullPointerException as above, although my file system permissions
> seem to permit reads by anyone so it doesn't exactly match:
>
> http://bugs.sun.com/view_bug.do?bug_id=6529213
>
> File permissions for JAVA_HOME/jre/lib/zi/ZoneInfoMappings:
>
> $ env | grep JAVA_HOME
> JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
> $ ls -lah /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings
> lrwxrwxrwx 1 root root 61 Sep 12 02:14
> /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/zi/ZoneInfoMappings ->
> ../../../../java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
> $ ls -lah /usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
> -rw-r--r-- 1 root root 15K Sep 11 20:10
> /usr/lib/jvm/java-7-openjdk-common/jre/lib/zi/ZoneInfoMappings
>
> The .metadata/.log file starts with:
>
> !SESSION 2012-09-13 08:59:42.484 ---------------------------------------------
--
> eclipse.buildId=I20120608-1400
> java.version=1.7.0_07
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_AU
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product
> org.eclipse.epp.package.jee.product
>
> !ENTRY org.eclipse.ui.workbench 4 2 2012-09-13 08:59:55.093
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench".
> !STACK 1
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.eclipse.equinox.p2.ui.sdk.scheduler" was unable to instantiate
> class
"org.eclipse.equinox.internal.p2.ui.sdk.scheduler. AutomaticUpdateScheduler".
> at
org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.throwException(Regi
stryStrategyOSGI.java:194)
> at
org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExt
ension(RegistryStrategyOSGI.java:188)
> at
org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(E
xtensionRegistry.java:905)
> at
org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtensio
n(ConfigurationElement.java:243)
> at
org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableEx
tension(ConfigurationElementHandle.java:55)
> at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(Work benchPlugin.java:273)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:52)
> at
org.eclipse.ui.internal.WorkbenchPlugin.createExte nsion(WorkbenchPlugin.java:269
)
> at
org.eclipse.ui.internal.EarlyStartupRunnable.getEx ecutableExtension(EarlyStartup
Runnable.java:117)
> at
org.eclipse.ui.internal.EarlyStartupRunnable.run(E arlyStartupRunnable.java:66)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
> at org.eclipse.ui.internal.Workbench$52.run(Workbench .java:2357)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:54)
> Caused by: java.lang.ExceptionInInitializerError
> at com.ibm.icu.util.TimeZone.getDefault(TimeZone.java :754)
> at com.ibm.icu.util.Calendar.getInstanceInternal(Cale ndar.java:1626)
> at com.ibm.icu.util.Calendar.getInstance(Calendar.jav a:1590)
> at
org.eclipse.equinox.internal.p2.ui.sdk.scheduler.A utomaticUpdateScheduler.
<clinit>(AutomaticUpdateScheduler.java:50)
> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
> at
sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorI
mpl.java:57)
> at
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorA
ccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Construc tor.java:525)
> at java.lang.Class.newInstance0(Class.java:372)
> at java.lang.Class.newInstance(Class.java:325)
> at
org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExt
ension(RegistryStrategyOSGI.java:184)
> ... 11 more
> Caused by: java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at com.ibm.icu.impl.JavaTimeZone.<clinit>(JavaTimeZon e.java:37)
> ... 22 more
>
> I compiled the TZTest file as suggested at
> https://jira.atlassian.com/browse/FE-2662?focusedCommentId=205020 and
> it reproduces the exception from the Eclipse logs:
>
> $ cat TZTest.java
> import java.util.TimeZone;
>
> public class TZTest {
> public static void main(String args[]) {
> String[] availableIds = TimeZone.getAvailableIDs();
> System.out.println("Length: "+availableIds.length);
> for (int i = 0; i < availableIds.length; i++) {
> System.out.println("ID #"+i+": "+availableIds[i]);
> }
> }
> }
> $ javac TZTest.java
> $ java TZTest
> Exception in thread "main" java.lang.NullPointerException
> at sun.util.calendar.ZoneInfoFile.getZoneIDs(ZoneInfo File.java:790)
> at sun.util.calendar.ZoneInfo.getAvailableIDs(ZoneInf o.java:576)
> at java.util.TimeZone.getAvailableIDs(TimeZone.java:5 88)
> at TZTest.main(TZTest.java:5)
>
> On 13 September 2012 09:29, Peter Ansell <ansell.peter <at> gmail.com> wrote:
> > Hi,
> >
> > I installed an update to OpenJDK-7 in the last few hours and now
> > Eclipse is failing to let me see the preferences panel for installed
> > JREs, and in addition, I cannot run code inside Eclipse.
> >
> > I get the following error in ~/workspace/.metadata/.log when I try to
> > go to Window->Preferences->Java->Installed JREs, and there is also an
> > error dialog inside Eclipse at the point of failure that doesn't tell
> > me much.
> >
> > Naively I would say that something relating to
> > com.ibm.icu.text.SimpleDateFormat may have changed in the most recent
> > OpenJDK, as it seems to be the root cause.
> >
> > !ENTRY org.eclipse.equinox.registry 4 1 2012-09-13 09:16:18.508
> > !MESSAGE Unable to create the selected preference page.
> > !STACK 0
> >
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNot
FoundException:
> > An error occurred while automatically activating bundle
> > org.eclipse.jdt.debug.ui (339).
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(
EclipseLazyStarter.java:122)
> > at
org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathMan
ager.java:469)
> > at
org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultC
lassLoader.java:216)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:3
95)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.jav
a:464)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
> > at
org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassL
oader.java:107)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
> > at
org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:22
9)
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle
.java:1212)
> > at
org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExt
ension(RegistryStrategyOSGI.java:174)
> > at
org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(E
xtensionRegistry.java:905)
> > at
org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtensio
n(ConfigurationElement.java:243)
> > at
org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableEx
tension(ConfigurationElementHandle.java:55)
> > at
org.eclipse.core.internal.adapter.AdapterFactoryPr oxy.loadFactory(AdapterFactory
Proxy.java:136)
> > at
org.eclipse.core.internal.runtime.AdapterManager.g etAdapter(AdapterManager.java:
321)
> > at
org.eclipse.core.internal.runtime.AdapterManager.l oadAdapter(AdapterManager.java
:356)
> > at
org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreak
pointsTargetAdapterFactory.getToggleBreakpointsTar get(ToggleBreakpointsTargetMan
ager.java:339)
> > at
org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager$ToggleBreak
pointsTargetAdapterFactory.createDefaultToggleTarg et(ToggleBreakpointsTargetMana
ger.java:378)
> > at
org.eclipse.debug.internal.ui.actions.ToggleBreakp ointsTargetManager.getToggleBr
eakpointsTarget(ToggleBreakpointsTargetManager.jav a:539)
> > at
org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.getAd
apter(RetargetBreakpointAction.java:47)
> > at
org.eclipse.debug.internal.ui.actions.RetargetActi on.partActivated(RetargetActio
n.java:163)
> > at
org.eclipse.debug.internal.ui.actions.RetargetActi on.init(RetargetAction.java:96
)
> > at
org.eclipse.debug.internal.ui.actions.breakpoints. RetargetBreakpointAction.init(
RetargetBreakpointAction.java:53)
> > at
org.eclipse.ui.internal.WWinPluginAction.initDeleg ate(WWinPluginAction.java:189)
> > at
org.eclipse.ui.internal.PluginAction.createDelegat e(PluginAction.java:125)
> > at
org.eclipse.ui.internal.WWinPluginAction.refreshAc tionList(WWinPluginAction.java
:165)
> > at
org.eclipse.ui.plugin.AbstractUIPlugin$1.run(Abstr actUIPlugin.java:485)
> > at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
> > at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:135)
> > at
org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3529)
> > at
org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3182)
> > at
org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine$9.run(PartRendering
Engine.java:1022)
> > at
org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
> > at
org.eclipse.e4.ui.internal.workbench.swt.PartRende ringEngine.run(PartRenderingEn
gine.java:916)
> > at
org.eclipse.e4.ui.internal.workbench.E4Workbench.c reateAndRunUI(E4Workbench.java
:86)
> > at org.eclipse.ui.internal.Workbench$5.run(Workbench. java:585)
> > at
org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
> > at
org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:540)
> > at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
> > at
org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java
:124)
> > at
org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLau
ncher.java:79)
> > at
org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:353)
> > at
org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:180)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
> > at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.jav
a:43)
> > at java.lang.reflect.Method.invoke(Method.java:601)
> > at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:629)
> > at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:584)
> > at org.eclipse.equinox.launcher.Main.run(Main.java:14 38)
> > at org.eclipse.equinox.launcher.Main.main(Main.java:1 414)
> > Caused by: org.osgi.framework.BundleException: The activator
> > org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin for bundle
> > org.eclipse.jdt.debug.ui is invalid
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(Abst
ractBundle.java:172)
> > at
org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextIm
pl.java:679)
> > at
org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:
381)
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.jav
a:300)
> > at
org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:2
63)
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(
EclipseLazyStarter.java:107)
> > ... 55 more
> > Caused by: java.lang.NoClassDefFoundError:
> > org/eclipse/jdt/debug/core/IJavaHotCodeReplaceListener
> > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2404)
> > at java.lang.Class.getConstructor0(Class.java:2714)
> > at java.lang.Class.newInstance0(Class.java:343)
> > at java.lang.Class.newInstance(Class.java:325)
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.loadBundleActivator(Abst
ractBundle.java:167)
> > ... 61 more
> > Caused by:
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter$TerminatingClassNot
FoundException:
> > An error occurred while automatically activating bundle
> > org.eclipse.jdt.debug (338).
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(
EclipseLazyStarter.java:122)
> > at
org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathMan
ager.java:469)
> > at
org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultC
lassLoader.java:216)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find LocalClass(BundleLoader.java:3
95)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find ClassInternal(BundleLoader.jav
a:464)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:421)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.find Class(BundleLoader.java:412)
> > at
org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassL
oader.java:107)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.load Class(BundleLoader.java:340)
> > at
org.eclipse.osgi.framework.internal.core.BundleHos t.loadClass(BundleHost.java:22
9)
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.loadClass(AbstractBundle
.java:1212)
> > at
org.eclipse.core.internal.registry.osgi.RegistrySt rategyOSGI.createExecutableExt
ension(RegistryStrategyOSGI.java:174)
> > at
org.eclipse.core.internal.registry.ExtensionRegist ry.createExecutableExtension(E
xtensionRegistry.java:905)
> > at
org.eclipse.core.internal.registry.ConfigurationEl ement.createExecutableExtensio
n(ConfigurationElement.java:243)
> > at
org.eclipse.core.internal.registry.ConfigurationEl ementHandle.createExecutableEx
tension(ConfigurationElementHandle.java:55)
> > at
org.eclipse.debug.internal.core.BreakpointManager. createBreakpoint(BreakpointMan
ager.java:557)
> > at
org.eclipse.debug.internal.core.BreakpointManager. loadBreakpoints(BreakpointMana
ger.java:268)
> > at
org.eclipse.debug.internal.core.BreakpointManager. initializeBreakpoints(Breakpoi
ntManager.java:461)
> > at
org.eclipse.debug.internal.core.BreakpointManager. getBreakpoints0(BreakpointMana
ger.java:430)
> > at
org.eclipse.debug.internal.core.BreakpointManager. hasBreakpoints(BreakpointManag
er.java:946)
> > at
org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.isE
nabled(RemoveAllBreakpointsAction.java:55)
> > at
org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.update(Abs
tractRemoveAllActionDelegate.java:100)
> > at
org.eclipse.debug.internal.ui.actions.AbstractRemo veAllActionDelegate.init(Abstr
actRemoveAllActionDelegate.java:86)
> > at
org.eclipse.debug.internal.ui.actions.breakpoints. RemoveAllBreakpointsAction.ini
t(RemoveAllBreakpointsAction.java:150)
> > ... 30 more
> > Caused by: org.osgi.framework.BundleException: Exception in
> > org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start() of bundle
> > org.eclipse.jdt.debug.
> > at
org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(Bundle
ContextImpl.java:734)
> > at
org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextIm
pl.java:683)
> > at
org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:
381)
> > at
org.eclipse.osgi.framework.internal.core.AbstractB undle.start(AbstractBundle.jav
a:300)
> > at
org.eclipse.osgi.framework.util.SecureAction.start (SecureAction.java:440)
> > at
org.eclipse.osgi.internal.loader.BundleLoader.setL azyTrigger(BundleLoader.java:2
63)
> > at
org.eclipse.core.runtime.internal.adaptor.EclipseL azyStarter.postFindLocalClass(
EclipseLazyStarter.java:107)
> > ... 54 more
> > Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> > com.ibm.icu.text.SimpleDateFormat
> > at org.eclipse.jdt.internal.debug.core.JDIDebugOption s.<clinit>
(JDIDebugOptions.java:58)
> > at
org.eclipse.jdt.internal.debug.core.JDIDebugPlugin .start(JDIDebugPlugin.java:274
)
> > at
org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextIm
pl.java:711)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(Bundle
ContextImpl.java:702)
> > ... 60 more
> >
> >
> > $ java -version
> > java version "1.7.0_07"
> > OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2-1ubuntu0.12.04.1)
> > OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
> >
> > I have installed Eclipse Juno (version 4.2) myself in /opt/eclipse and
> > the output of /opt/eclipse/eclipse.ini is:
> >
> > $ cat /opt/eclipse/eclipse.ini
> > -startup
> > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
> > --launcher.library
> > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 200.v20120522-1813
> > -product
> > org.eclipse.epp.package.jee.product
> > --launcher.defaultAction
> > openFile
> > -showsplash
> > org.eclipse.platform
> > --launcher.XXMaxPermSize
> > 2048m
> > --launcher.defaultAction
> > openFile
> > -vmargs
> > -Dosgi.requiredJavaVersion=1.5
> > -Dhelp.lucene.tokenizer=standard
> > -XX:MaxPermSize=2048m
> > -Xms1024m
> > -Xmx4096m
> >
> > The Eclipse About dialog shows the Eclipse Version as:
> >
> > Eclipse Java EE IDE for Web Developers.
> > Version: Juno Release
> > Build id: 20120614-1722
>
>

The answer is:

sudo apt-get --reinstall install tzdata-java

Source:

http://markmail.org/message/psoe2mhyh2kfvmep?q=net%2Ejava%2Eopenjdk


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 05:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org