perspective with endless console error messages [message #987291] |
Sun, 25 November 2012 13:39  |
Eclipse User |
|
|
|
Hello dear Eclipse Community,
I'm pretty new to Eclipse programming and I'm making myself comfortable with perspectives. Therefore I have created a very simple basic perspective as only contribution to a new plugin project.
When launching as Eclipse application the first time (out of my development workspace) and open the perspective all is fine. When launching it the second time and all following launches result in showing endless error message at the console.
Please have a look down here for details, i.e. the Eclipse version, the plugin.xml, the class and finally the endless error message.
You can easily reproduce this problem by
- creating a new plugin project with no template
- selecting the Extension tab from plugin.xml
- press ADD Button
- select the extension point org.eclipse.ui.perspectives
- add a new perspective (per context menu -> new -> perspectives)
- specify the id, name and class or leave the default
- click the class link, what will open the "New Class" wizard
- take all default values and click finisch to generate the class
- save all
- run the plugin the first time and open the new perspective with no problem
- run the plugin the second time with the error messages at the console
Kind regards
Andreas Gronert
<<< Eclipse version
Eclipse for RCP and RAP Developers
Version: Juno Service Release 1
Build id: 20120920-0800
(c) Copyright Eclipse contributors and others 2000, 2012. All rights reserved.
Visit <link not posible>
This product includes software developed by the
Apache Software Foundation <link not posible>
<<< plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="andi.perspektive.AndiPerspektive"
id="andi.perspektive.perspective1"
name="Andis Perspektive">
</perspective>
</extension>
</plugin>
<<< Class of Perspectivepackage andi.perspektive;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
public class AndiPerspektive implements IPerspectiveFactory {
@Override
public void createInitialLayout(IPageLayout layout) {
// TODO Auto-generated method stub
}
}
<<< endless error (excerpt, that will be printed endless at console)
!ENTRY org.eclipse.e4.ui.workbench.renderers.swt 4 2 2012-11-25 19:07:57.549
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.renderers.swt".
!STACK 0
java.lang.NullPointerException
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.canExecuteItem(HandledContributionItem.java:823)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$2(HandledContributionItem.java:817)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$3.run(HandledContributionItem.java:216)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateItemEnablement(HandledContributionItem.java:243)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$ToolItemUpdateTimer.run(HandledContributionItem.java:146)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4270)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3357)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
|
|
|
Re: perspective with endless console error messages [message #987334 is a reply to message #987291] |
Mon, 26 November 2012 03:28   |
Eclipse User |
|
|
|
On 26.11.2012 02:15, Andreas Gronert wrote:
> Hello dear Eclipse Community,
> I'm pretty new to Eclipse programming and I'm making myself
> comfortable with perspectives. Therefore I have created a very simple
> basic perspective as only contribution to a new plugin project.
> When launching as Eclipse application the first time (out of my
> development workspace) and open the perspective all is fine. When
> launching it the second time and all following launches result in
> showing endless error message at the console.
See https://bugs.eclipse.org/388516
Dani
>
> Please have a look down here for details, i.e. the Eclipse version,
> the plugin.xml, the class and finally the endless error message.
>
> You can easily reproduce this problem by
>
> - creating a new plugin project with no template - selecting the
> Extension tab from plugin.xml
> - press ADD Button
> - select the extension point org.eclipse.ui.perspectives
> - add a new perspective (per context menu -> new -> perspectives)
> - specify the id, name and class or leave the default
> - click the class link, what will open the "New Class" wizard
> - take all default values and click finisch to generate the class
> - save all
> - run the plugin the first time and open the new perspective with no
> problem
> - run the plugin the second time with the error messages at the console
> Kind regards
> Andreas Gronert
>
>
>
> <<< Eclipse version
>
> Eclipse for RCP and RAP Developers
>
> Version: Juno Service Release 1
> Build id: 20120920-0800
>
> (c) Copyright Eclipse contributors and others 2000, 2012. All rights
> reserved.
> Visit <link not posible>
>
> This product includes software developed by the
> Apache Software Foundation <link not posible>
>
>
>
>
> <<< plugin.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
> <extension
> point="org.eclipse.ui.perspectives">
> <perspective
> class="andi.perspektive.AndiPerspektive"
> id="andi.perspektive.perspective1"
> name="Andis Perspektive">
> </perspective>
> </extension>
> </plugin>
>
>
>
>
> <<< Class of Perspectivepackage andi.perspektive;
>
> import org.eclipse.ui.IPageLayout;
> import org.eclipse.ui.IPerspectiveFactory;
>
> public class AndiPerspektive implements IPerspectiveFactory {
>
> @Override
> public void createInitialLayout(IPageLayout layout) {
> // TODO Auto-generated method stub
> }
> }
>
>
>
>
> <<< endless error (excerpt, that will be printed endless at console)
>
> !ENTRY org.eclipse.e4.ui.workbench.renderers.swt 4 2 2012-11-25
> 19:07:57.549
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.e4.ui.workbench.renderers.swt".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.canExecuteItem(HandledContributionItem.java:823)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$2(HandledContributionItem.java:817)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$3.run(HandledContributionItem.java:216)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateItemEnablement(HandledContributionItem.java:243)
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$ToolItemUpdateTimer.run(HandledContributionItem.java:146)
> at org.eclipse.swt.widgets.Display.runTimer(Display.java:4270)
> at org.eclipse.swt.widgets.Display.messageProc(Display.java:3357)
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
> 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:353)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.06984 seconds