Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: Problem with JFace!
Re: Problem with JFace! [message #1235422] Fri, 24 January 2014 05:06 Go to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
Benjamin,

this looks more like an issue with CDT (see the top-most stack frame).
I'd recommend to ask on the CDT newsgroup [1]. If you provide them with
details how to reproduce the exception, I'm sure they can help.

Regards,
Rüdiger

[1] http://www.eclipse.org/forums/?group=eclipse.tools.cdt


On 23.01.2014 22:00, Benjamin Guillot wrote:
> Hi, I have a problem when i try to configure Eclipse for Cpp!
>
> When i go to Run->debug configuration -> C/C++ remote application i make
> a new configuration. When i try to go in, i have this message.
> "An error has occurred. See error log for more details.
> java.lang.NullPointerException"
>
> In my log:
>
> !SESSION 2014-01-23 21:32:21.320
> -----------------------------------------------
> eclipse.buildId=4.3.0.M20130911-1000
> java.version=1.7.0_51
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
> Framework arguments: -product org.eclipse.epp.package.cpp.product
> Command-line arguments: -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.cpp.product
>
> !ENTRY org.eclipse.jface 4 2 2014-01-23 21:33:16.039
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.setLocalPathForRemotePath(RemoteCDSFMainTab.java:527)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.access$0(RemoteCDSFMainTab.java:505)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab$1.modifyText(RemoteCDSFMainTab.java:114)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2974)
> at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4752)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4614)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
> at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:260)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4706)
> at org.eclipse.swt.widgets.Text.windowProc(Text.java:2597)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
> at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
> at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3473)
> at org.eclipse.swt.widgets.Text.setText(Text.java:2252)
> at
> org.eclipse.cdt.launch.ui.CAbstractMainTab.updateProgramFromConfig(CAbstractMainTab.java:589)
>
> at
> org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab.initializeFrom(CMainTab.java:294)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.initializeFrom(RemoteCDSFMainTab.java:643)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:201)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:755)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:626)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:643)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:605)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:581)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:943)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:562)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at
> org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1226)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1251)
>
> at
> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:262)
>
> at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256)
> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:433)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
> at org.eclipse.jface.window.Window.open(Window.java:802)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1134)
>
> at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:604)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:612)
>
> at
> org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:546)
>
> at
> org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
>
> at
> org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:89)
>
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
>
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> 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:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> 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:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> !SESSION 2014-01-23 21:50:10.990
> -----------------------------------------------
> eclipse.buildId=4.3.0.M20130911-1000
> java.version=1.7.0_51
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
> Framework arguments: -product org.eclipse.epp.package.cpp.product
> Command-line arguments: -os win32 -ws win32 -arch x86 -product
> org.eclipse.epp.package.cpp.product
>
> !ENTRY org.eclipse.jface 4 2 2014-01-23 21:52:25.917
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.setLocalPathForRemotePath(RemoteCDSFMainTab.java:527)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.access$0(RemoteCDSFMainTab.java:505)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab$1.modifyText(RemoteCDSFMainTab.java:114)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
> at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2974)
> at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4752)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4614)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
> at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:260)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4706)
> at org.eclipse.swt.widgets.Text.windowProc(Text.java:2597)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4977)
> at org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method)
> at org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3473)
> at org.eclipse.swt.widgets.Text.setText(Text.java:2252)
> at
> org.eclipse.cdt.launch.ui.CAbstractMainTab.updateProgramFromConfig(CAbstractMainTab.java:589)
>
> at
> org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab.initializeFrom(CMainTab.java:294)
>
> at
> org.eclipse.cdt.launch.remote.tabs.RemoteCDSFMainTab.initializeFrom(RemoteCDSFMainTab.java:643)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:201)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:755)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:626)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:643)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:605)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:581)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:943)
>
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:562)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at
> org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1226)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1251)
>
> at
> org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:262)
>
> at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256)
> at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:433)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
> at org.eclipse.jface.window.Window.open(Window.java:802)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1134)
>
> at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:604)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:612)
>
> at
> org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:546)
>
> at
> org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
>
> at
> org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:89)
>
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
> at
> org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
>
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> 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:354)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>
> 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:636)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>
>
>
> Well, i try a lot of thing, but nothing happened!
>
> I have succeeded in fixing a warning, but this error I need heeelp!!!
>
> Thank you very much for any answer!
Re: Problem with JFace! [message #1259676 is a reply to message #1235422] Fri, 28 February 2014 12:16 Go to previous message
Tenwiser Mann is currently offline Tenwiser Mann
Messages: 1
Registered: February 2014
Junior Member
Same issue drove me nuts.

If the right entries are made in the following form fields you won't see this error, and they are ...

C/C++ Application:
\\toaster01\appname << local path & application name

My project workspace is on the target system (linux) via RSE, so i use a samba share name to my remote system and tick the Skip Download box as I also remotely build there. If you build locally then this will be the path to your local executable.

Remote Absolute File Path for C/C++ Application:
/home/alex/projects/appname/appname << remote path and application name

Previous Topic:Problem update with proxy server
Next Topic:Problem with commit
Goto Forum:
  


Current Time: Wed Jul 30 03:22:44 EDT 2014

Powered by FUDForum. Page generated in 0.02211 seconds