Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Null Pointer Exception when working with editable tables
Null Pointer Exception when working with editable tables [message #1698010] Wed, 10 June 2015 10:17 Go to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
We are using editable tables in various places in forms that are embedded in views in our application.

A few weeks ago we have discovered that we receive an exception when first clicking into an editable cell (see below). I can't exactly pinpoint when this started happening (might have been when updating from Luna SR1 to Luna SR2 but I am not sure) but I am certain that we didn't used to have this issue in the beginning.

Is this something, others are also experiencing? Is this an issue of forms that use DISPLAY_HINT_VIEW (we don't have any editable tables in popup forms)?

!ENTRY org.eclipse.ui 4 0 2015-06-10 12:14:13.423
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(ColumnViewerEditor.java:216)
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(ColumnViewerEditor.java:452)
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(ColumnViewer.java:675)
at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable$P_TableViewerEx.triggerEditorActivationEvent(SwtScoutTable.java:1019)
at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(ColumnViewer.java:650)
at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer.java:646)
at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnViewer.java:95)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.startSecure(Application.java:45)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application$1.run(Application.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.start(Application.java:34)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Re: Null Pointer Exception when working with editable tables [message #1704068 is a reply to message #1698010] Fri, 07 August 2015 07:10 Go to previous messageGo to next message
Pascal Kaufmann is currently offline Pascal KaufmannFriend
Messages: 4
Registered: May 2014
Junior Member
I experienced the same issue with editable boolean cells.

Left mouse click events produce the mentioned Exception, which causes the mouse down event to be lost. The mouse up event is still fired though, thereby it's possible that the value of another cell in the same row is updated as the contextColum, which is set by the mouse down event, hasn't been updated.

Right mouse click events work as expected.
Re: Null Pointer Exception when working with editable tables [message #1704874 is a reply to message #1698010] Mon, 10 August 2015 09:41 Go to previous messageGo to next message
Matthias Zimmermann is currently offline Matthias ZimmermannFriend
Messages: 208
Registered: June 2015
Senior Member
Would you mind to open a corresponding bug report? Tx in advance.
Re: Null Pointer Exception when working with editable tables [message #1706270 is a reply to message #1704874] Tue, 25 August 2015 12:43 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=475801 created
Re: Null Pointer Exception when working with editable tables [message #1706775 is a reply to message #1706270] Mon, 31 August 2015 04:58 Go to previous messageGo to next message
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 213
Registered: November 2014
Senior Member

I don't know if its the right place here. But I also encountered a weired behaviour of editable tables. When traversing through editable cells with the TAB key, data in cells, which was already there and which is not changed, vanishes after the cell has lost its focus...

Anybody else seen this behaviour?

Peter
Re: Null Pointer Exception when working with editable tables [message #1809837 is a reply to message #1706775] Wed, 24 July 2019 10:29 Go to previous messageGo to next message
Sanket W is currently offline Sanket WFriend
Messages: 3
Registered: July 2019
Junior Member
Yes I am facing the same issue
I have a tree viewer and while I switch the cell focus using TAB, the ENPE is observed.

Did you get the resolution for this?
If yes, can you please assist?

StackTrace:
java.lang.NullPointerException
at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(ColumnViewerEditor.java:192)
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(ColumnViewerEditor.java:425)
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(ColumnViewer.java:680)
at org.eclipse.jface.viewers.ColumnViewerEditor.processTraverseEvent(ColumnViewerEditor.java:541)
at org.eclipse.jface.viewers.ColumnViewerEditor.lambda$1(ColumnViewerEditor.java:245)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:269)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1064)
at org.eclipse.swt.widgets.Control.traverse(Control.java:4277)
at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:4259)
at org.eclipse.swt.widgets.Display.translateTraversal(Display.java:4687)
at org.eclipse.swt.widgets.Display.filterMessage(Display.java:1211)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3543)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at com.teamcenter.rac.aifrcp.Application.runApplication(Unknown Source)
at com.teamcenter.rac.aifrcp.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Re: Null Pointer Exception when working with editable tables [message #1810009 is a reply to message #1809837] Mon, 29 July 2019 06:51 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 204
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Senior Member
Hi Sanket W,

I don't see anything related to the Eclipse Scout framework in your stacktrace. Also bug 475801 reported by Urs Beeli has been closed because it cannot be reproduced in newer Scout versions. Please note that Scout is a web-framework since version 5 and does not use SWT anymore.

I guess you should report your issue to the Eclipse or SWT developer team.


Eclipse Scout Homepage | Documentation | GitHub
Previous Topic:Tree SmartField Lookup
Next Topic:Move the Menu of Desktop into Outline
Goto Forum:
  


Current Time: Fri Apr 19 23:22:35 GMT 2024

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

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

Back to the top