Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359879 - NPE when switching to the Inactive Jobs view.
Summary: NPE when switching to the Inactive Jobs view.
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 5.0.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 5.0.3   Edit
Assignee: Claudia Knobloch CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 13:05 EDT by Wyatt Spear CLA
Modified: 2012-05-23 17:33 EDT (History)
0 users

See Also:


Attachments
Workaround for the problem (16.62 KB, patch)
2011-10-06 04:29 EDT, Claudia Knobloch CLA
no flags Details | Diff
Workaround for the problem (16.52 KB, patch)
2011-10-12 04:40 EDT, Claudia Knobloch CLA
g.watson: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wyatt Spear CLA 2011-10-04 13:05:13 EDT
I have seen this when trying to connect to a couple different systems.  The system view and active jobs don't have any trouble, but the inactive jobs view only shows an error message.

java.lang.NullPointerException
	at org.eclipse.ptp.rm.lml.ui.views.TableView.createColumns(TableView.java:495)
	at org.eclipse.ptp.rm.lml.ui.views.TableView.createTable(TableView.java:645)
	at org.eclipse.ptp.rm.lml.ui.views.TableView.access$5(TableView.java:643)
	at org.eclipse.ptp.rm.lml.ui.views.TableView$LMLTableListListener$1.run(TableView.java:89)
	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.ptp.rm.lml.ui.UIUtils$7.run(UIUtils.java:194)
	at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
	at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
	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:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Claudia Knobloch CLA 2011-10-05 04:45:43 EDT
Wyatt, can you describe more in detail how to reproduce the problem. Do you switch from one RM to another one, or from the Active Jobs view to the Inactive Jobs view? 

Is this problem maybe related to a specific system, or does the problem occurs in general?

What for batch systems do you want to connect to? Which PTP version is running on the systems?
Comment 2 Claudia Knobloch CLA 2011-10-06 04:29:37 EDT
Created attachment 204654 [details]
Workaround for the problem

I had a closer look today and implemented a workaround.
Comment 3 Greg Watson CLA 2011-10-11 14:51:26 EDT
Can you set your line width to 132, reformat, then regenerate this patch? This will reduce the number of changes significantly.

To set your line width, Preferences>Java>Formatter, then Edit... the active profile. Change maximum line length on the Line Wrapping and Comments tabs.
Comment 4 Claudia Knobloch CLA 2011-10-12 04:40:35 EDT
Created attachment 205004 [details]
Workaround for the problem
Comment 5 Claudia Knobloch CLA 2012-02-10 10:13:20 EST
Workaround works.