2 Replies Latest reply on Feb 16, 2011 4:11 AM by Kishan M V

    NullPointerException in Network Monitor

    Andrei Kouzmenkov

      After gathering information with Network Monitor in Flash Builder 4 Premium (build 272416) plug-in in Eclipse 3.5.2, NullPointerExceptions are popping up.

      Here is an example:

       

      java.lang.NullPointerException
      at com.adobe.flexbuilder.monitors.network.store.records.impl.HTTPRecord.getElapsedTime(HTTPR ecord.java:246)
      at com.adobe.flexbuilder.monitors.network.store.records.impl.NetmonRecordDelegate.getElapsed Time(NetmonRecordDelegate.java:182)
      at com.adobe.flexbuilder.monitors.network.view.MasterTableColumnType$6$1.getLabelObject(Mast erTableColumnType.java:257)
      at com.adobe.flexbuilder.monitors.network.view.MasterTableColumnType$6$1.getLabelText(Master TableColumnType.java:262)
      at com.adobe.flexbuilder.monitors.network.view.MasterTableConfig$MasterTableColumn.getText(M asterTableConfig.java:146)
      at com.adobe.flexbuilder.monitors.network.view.MasterTableLabelProvider.getColumnText(Master TableLabelProvider.java:49)
      at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelPro vider.java:70)
      at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:145)
      at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:399)
      at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.ja va:481)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.runtime.Platform.run(Platform.java:888)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2111)
      at org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:277)
      at org.eclipse.jface.viewers.AbstractTableViewer.add(AbstractTableViewer.java:263)
      at org.eclipse.jface.viewers.AbstractTableViewer.add(AbstractTableViewer.java:315)
      at com.adobe.flexbuilder.monitors.network.view.MasterTableContentProvider$1.run(MasterTableC ontentProvider.java:82)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
      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:194)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
      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:559)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

       

      Often exception details are not recognizable.

      After that happens, trying to save into XML doesn't save, though the Save dialog pops up.

      Some relieve is possible by closing Network Monitor view and reopening via Window menu helps, otherwise these exceptions make work much less pleasing.

      Also double clicking on an NW item to see the source code opens "Loading project...", which spins but does nothing and hangs Eclipse.

       

      Thanks, Andrei.

       

      WinXP SP3, 3GB RAM, Q6600

       

      Message was edited by: kolinitcom