Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » perspective with endless console error messages(very simple to reproduce)
perspective with endless console error messages [message #987291] Sun, 25 November 2012 18:39 Go to next message
Andreas Gronert is currently offline Andreas GronertFriend
Messages: 2
Registered: November 2012
Junior Member
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 08:28 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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)
>
Re: perspective with endless console error messages [message #987478 is a reply to message #987334] Mon, 26 November 2012 19:10 Go to previous message
Andreas Gronert is currently offline Andreas GronertFriend
Messages: 2
Registered: November 2012
Junior Member
Hello Dani,
thanks a lot. I've added a comment there.
Kind regards
Andreas Gronert
Previous Topic:How to open PDF from RCP and navigate in it
Next Topic:Swing Designer
Goto Forum:
  


Current Time: Tue Apr 20 11:34:56 GMT 2021

Powered by FUDForum. Page generated in 0.03065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top