Skip to content

Need Help with StatET Error/Bug? on Ubuntu 8.10 amd64

4 messages · John Fox, Ken-JP

#
Hi,

I posted this message on the StatET-user board last week, but it looks like
a ghost-town...

I have a bad feeling that there is some code in the plug-in which doesn't
work well with my environment, but if I am lucky, maybe other users have
worked around this problem somehow - I am hoping that my setup is the issue.  

Note: very similar StatET setups on 32-bit XP Pro and Vista run flawlessly.

Has anyone else run into this problem and/or found a way around it?

Ubuntu 8.10 intrepid amd64
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
R 2.8.1
Eclipse 3.4.2
StatET 0.7.2.b200812051430sw

---------------------------------------------------------------------------------------- 

When I start up the R Console, I get a java.lang.NullPointerException inside
Eclipse in the form of a popup warning.

Six icons right of the Console-tab fail to appear:

Cancel the current task
Terminate
Remove Launch
Remove All Terminated Launches
Clear Console
Scroll Lock

Every time the Console gets focus, I get the NullPointerError exception -
probably an attempt to refresh the icons.  After a while, the Eclipse IDE
loses focus and becomes unusable.

Looks like it's happening around:

at org.eclipse.ui.SubActionBars.updateActionBars(SubActionBars.java:610)

---------------------------------------------------------------------------------------- 

Session Data:
eclipse.buildId=M20090211-1700
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

Exception Stack Trace:
java.lang.NullPointerException
	at
org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:138)
	at
org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:157)
	at
org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:165)
	at
org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:56)
	at
org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
	at
org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:82)
	at
org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
	at
org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:172)
	at
de.walware.eclipsecommons.ui.HandlerContributionItem.updateIcons(HandlerContributionItem.java:648)
	at
de.walware.eclipsecommons.ui.HandlerContributionItem.fill(HandlerContributionItem.java:383)
	at
org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:77)
	at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:349)
	at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:449)
	at
org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:59)
	at org.eclipse.ui.SubActionBars.updateActionBars(SubActionBars.java:610)
	at
de.walware.statet.nico.ui.console.NIConsolePage$6.handleEvent(NIConsolePage.java:599)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1163)
	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:3284)
	at org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2684)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1538)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4506)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4099)
	at org.eclipse.swt.internal.gtk.OS._gtk_widget_grab_focus(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:9106)
	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2107)
	at org.eclipse.swt.widgets.Composite.forceFocus(Composite.java:494)
	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:2101)
	at org.eclipse.swt.widgets.Control.setFocus(Control.java:3646)
	at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1254)
	at
org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:656)
	at org.eclipse.swt.widgets.Canvas.gtk_button_press_event(Canvas.java:155)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1531)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4506)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4099)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5792)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1177)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1550)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3031)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	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:386)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
#
Dear Ken-JP,

I'm not sure that this is relevant, but I posted a question recently to the
StatET list about using StatET with 64 bit Vista (I don't yet have the
machine), and was told that it would work, but only with 32-bit versions of
Eclipse and Java.

I hope this helps,
 John
On
like
issue.
flawlessly.
----------------------------------------------------------------------------
-
inside
----------------------------------------------------------------------------
-
org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor
.
org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor
.
org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.ja
v
org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceMana
g
org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceMa
n
org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManage
r
org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceMa
n
org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:
1
de.walware.eclipsecommons.ui.HandlerContributionItem.updateIcons(HandlerCont
r
de.walware.eclipsecommons.ui.HandlerContributionItem.fill(HandlerContributio
n
org.eclipse.jface.action.SubContributionItem.fill(SubContributionItem.java:7
7
org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:449)
org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:
5
de.walware.statet.nico.ui.console.NIConsolePage$6.handleEvent(NIConsolePage.
j
org.eclipse.swt.widgets.Control.gtk_event_after(Control.java:2684)
org.eclipse.swt.internal.gtk.OS.gtk_widget_grab_focus(OS.java:9106)
org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:656)
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3031)
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.
j
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
1
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
E
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp
p
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.
http://www.R-project.org/posting-guide.html
#
Thank you, John, for this bit of information - it will be useful when I move
to 64 bit Vista one of these days.

FWIW, the Ubuntu 8.10 amd64 install I attempted was on 64-bit versions of
everything (except possibly StatET itself).  

64-bit R, JDK, and Eclipse.

If someone does get StatET working on a 64-bit Windoze system, do please let
us know.
Thank you.

- Ken
John Fox-6 wrote:

  
    
#
Dear Ken,

The thread on the StatET email list to which I referred
<http://lists.r-forge.r-project.org/pipermail/statet-user/2009-March/000118.
html> indicates that StatET does work under 64-bit Vista using 32-bit
Eclipse and Java.

Best,
 John
On
move
let
http://www.nabble.com/-SOLVED--Need-Help-with-
http://www.R-project.org/posting-guide.html