cchilds / jvmmonitor

Automatically exported from code.google.com/p/jvmmonitor
0 stars 0 forks source link

NPE in Properties panel, preventing any data to be shown. #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the defect?
 1. Start process
 2. Start monitoring it in JVM Explorer panel

What is the expected behavior?
  The properties tab show something.

What was the actual behavior?
  The properties tab show nothing

What errors are shown on Error Log view or at <workspace>/.metadata/.log?
ENTRY org.eclipse.ui 4 0 2014-05-21 19:14:53.102
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.NullPointerException)
    at org.eclipse.swt.SWT.error(SWT.java:4397)
    at org.eclipse.swt.SWT.error(SWT.java:4312)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
    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(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:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Caused by: java.lang.NullPointerException
    at org.jvmmonitor.internal.ui.views.StartMonitoringAction.openPropertiesView(StartMonitoringAction.java:265)
    at org.jvmmonitor.internal.ui.views.StartMonitoringAction.showPropertiesView(StartMonitoringAction.java:151)
    at org.jvmmonitor.internal.ui.views.StartMonitoringAction$1$1.run(StartMonitoringAction.java:103)
    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)
    ... 24 more

What is your environment for Eclipse?
  OS: Ubuntu Linux 13.04 64 bits
  Eclipse: Kepler Service Release 1
  JVM Monitor: 3.8.1.201302030
  Java: OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)

What is your environment for the monitored JVM?
  Same as above.

Original issue reported on code.google.com by thiag...@gmail.com on 21 May 2014 at 10:22

GoogleCodeExporter commented 8 years ago
I have the same issue. 

eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product 
org.eclipse.epp.package.standard.product

Original comment by neugebau...@gmail.com on 11 Jun 2014 at 9:48

GoogleCodeExporter commented 8 years ago
In case anyone else is having this issue, there is a simple workaround - After 
double clicking the process you want to monitor, the blank properties panel 
appears. Simply go back to the JVM monitor panel and double click the process 
again. For me, the properties panel works correctly at this point.

Original comment by colin.ch...@gmail.com on 5 Nov 2014 at 10:32