Never ending exceptions in the version 0.10.0 [message #1096438] |
Wed, 28 August 2013 07:52  |
Eclipse User |
|
|
|
Hi,
I have met with the similar problem in this topic: http://www.eclipse.org/forums/index.php?t=msg&th=487685/ while I am using the 0.10.0 version, there are mainly two kinds of exceptions:
The message is Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench".
The first kind appears when I save the model:
java.lang.LinkageError: com/google/common/base/Optional
at org.eclipse.papyrus.uml.controlmode.profile.ControlledElementReadOnlyHandler.anyReadOnly(ControlledElementReadOnlyHandler.java:65)
at org.eclipse.papyrus.infra.emf.readonly.ReadOnlyManager.anyReadOnly(ReadOnlyManager.java:164)
at org.eclipse.papyrus.infra.core.resource.ModelSet.save(ModelSet.java:652)
at org.eclipse.papyrus.infra.core.lifecycleevents.SaveAndDirtyService.doSave(SaveAndDirtyService.java:275)
at org.eclipse.papyrus.infra.core.editor.CoreMultiDiagramEditor.doSave(CoreMultiDiagramEditor.java:798)
...
The second kind happened just after:
org.eclipse.e4.core.di.InjectionException: java.lang.LinkageError: com/google/common/base/Optional
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.setEnabled(HandlerServiceHandler.java:82)
at org.eclipse.core.commands.Command.setEnabled(Command.java:886)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.canExecute(HandlerServiceImpl.java:173)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.canExecuteItem(HandledContributionItem.java:864)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$2(HandledContributionItem.java:853)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$3.run(HandledContributionItem.java:231)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateItemEnablement(HandledContributionItem.java:261)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$ToolItemUpdateTimer.run(HandledContributionItem.java:152)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4271)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3358)
Those exceptions are just never ending, does anybody know why it is?
Thanks!
|
|
|
|
Re: Never ending exceptions in the version 0.10.0 [message #1096449 is a reply to message #1096441] |
Wed, 28 August 2013 08:06   |
Eclipse User |
|
|
|
Hi
The old Guava problem was a migration of from collect to guava packages.
Hopefully that nightmare is well past.
The new nightmare is that Guava 12 started being used late in the Kepler
release cycle and Guava 12 mandates Java 6, whereas most Eclipse
projects support Java 5. So if you start up with a Java 5 JVM because
the crash may not occur for a long time (when a Java 6 function first
calls back). If you validate the plugins in your launch config it should
tell you, but we don't usually bother, partiucularly if it was one that
was ok when supplied by the developers, but is broken by the user's
additional plugins.
The simple workaround is to make sure Java 5 is not available so that a
Java 6 JVM is used at the outset.
In Luna M1, MWE now mandates use of Java 6, so I suspect that the days
of Java 5 compatibility are numbered.
Regards
Ed Willink
On 28/08/2013 12:56, Camille Letavernier wrote:
> Hi,
>
>
> I think there may be some version conflicts with the Guava library
> (com.google.*), depending on your installation.
>
> Papyrus should work with both 10.0.x and 11.0.x versions of Guava, and
> should also work fine if both versions are installed. However, in some
> cases, we've noticed such issues.
>
> I don't know how it can be solved. Reinstalling Eclipse/Papyrus should
> work.
>
>
> Regards,
> Camille
|
|
|
|
|
|
|
|
|
Re: Never ending exceptions in the version 0.10.0 [message #1096535 is a reply to message #1096510] |
Wed, 28 August 2013 10:24  |
Eclipse User |
|
|
|
Quote:If for instance Papyrus requires 10.x.x and Xtext requires 12.x.x and
JIRA requires 13.x.x then nothing can possibly work, whereas if everyone
is >=9.0.0 the user stands a chance.
Guava is (AFAIK) not a singleton plug-in, so it should work, I guess. I hope so, because some deprecated APIs in 0.10.0 have been removed in 0.11.0. So, if you're using them, you really need a [0.10.0, 0.11.0[ constraint.
|
|
|
Powered by
FUDForum. Page generated in 0.05214 seconds