Ticket #44 (closed defect: fixed)
NPE and crush when opening security
| Reported by: | alexsmr | Owned by: | maccaf |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0M1 |
| Component: | core | Version: | devel |
| Severity: | major | Keywords: | |
| Cc: | OS: | MacOS X |
Description (last modified by maccaf) (diff)
To reproduce:
- Start w/ clean workspace. Trader perspective is opened.
- Add new security to Navigator: GOOG (for example) using Yahoo! Finance provider.
- Open chart using context menu.
The crash dialog appears w/ next message:
An internal error occurred while showing an internal error. You are recommended to exit the workbench. Subsequent errors may happen and may terminate the workbench without warning.
Console log is next:
2008-12-21 10:14:58.122 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.124 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.125 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.125 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.126 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.126 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.126 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.127 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.127 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.128 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.129 java[779:80f] unlockFocus called too many time. 2008-12-21 10:14:58.130 java[779:80f] unlockFocus called too many time. !SESSION 2008-12-21 10:12:01.192 ----------------------------------------------- eclipse.buildId=@build@ java.version=1.5.0_16 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -product org.eclipsetrader.platform.workbench Command-line arguments: -product org.eclipsetrader.platform.workbench -data /Users/alexsmr/dev/workspace/eclipsetrader/../runtime_workspace -dev file:/Users/alexsmr/dev/workspace/eclipsetrader/.metadata/.plugins/org.eclipse.pde.core/EclipseTrader/dev.properties -os macosx -ws cocoa -arch x86 -consoleLog -debug
!ENTRY org.eclipse.ui 4 0 2008-12-21 10:14:58.148 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException
at org.eclipsetrader.ui.charts.DoubleValuesAxis.mapToAxis(DoubleValuesAxis.java:108) at org.eclipsetrader.ui.charts.Graphics.mapToVerticalAxis(Graphics.java:194) at org.eclipsetrader.ui.charts.HistogramBarChart.paint(HistogramBarChart.java:80) at org.eclipsetrader.ui.charts.ChartObject.paint(ChartObject.java:105) at org.eclipsetrader.ui.charts.ChartCanvas.onPaint(ChartCanvas.java:257) at org.eclipsetrader.ui.charts.ChartCanvas.access$4(ChartCanvas.java:189) at org.eclipsetrader.ui.charts.ChartCanvas$4.paintControl(ChartCanvas.java:108) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1119) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1143) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1128) at org.eclipse.swt.widgets.Control.drawWidget(Control.java:919) at org.eclipse.swt.widgets.Composite.drawWidget(Composite.java:278) at org.eclipse.swt.widgets.Canvas.drawWidget(Canvas.java:139) at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:520) at org.eclipse.swt.widgets.Display.windowDelegateProc(Display.java:3818) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:3512) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:3661) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:63) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2659) 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:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipsetrader.ui.internal.application.TraderApplication.start(TraderApplication.java:52) 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:366) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505) at org.eclipse.equinox.launcher.Main.run(Main.java:1237) at org.eclipse.equinox.launcher.Main.main(Main.java:1213)
!ENTRY org.eclipse.ui 4 0 2008-12-21 10:14:58.227 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException
at org.eclipsetrader.core.charts.OHLCDataSeries.getLowest(OHLCDataSeries.java:120) at org.eclipsetrader.ui.charts.ChartCanvas$8.visit(ChartCanvas.java:181) at org.eclipsetrader.ui.charts.BarChart.accept(BarChart.java:218) at org.eclipsetrader.ui.charts.ChartObject.accept(ChartObject.java:142) at org.eclipsetrader.ui.charts.ChartCanvas.buildVerticalAxis(ChartCanvas.java:176) at org.eclipsetrader.ui.charts.ChartCanvas.onPaintVerticalScale(ChartCanvas.java:286) at org.eclipsetrader.ui.charts.ChartCanvas.access$7(ChartCanvas.java:270) at org.eclipsetrader.ui.charts.ChartCanvas$7.paintControl(ChartCanvas.java:137) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1119) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1143) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1128) at org.eclipse.swt.widgets.Control.drawWidget(Control.java:919) at org.eclipse.swt.widgets.Composite.drawWidget(Composite.java:278) at org.eclipse.swt.widgets.Canvas.drawWidget(Canvas.java:139) at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:520) at org.eclipse.swt.widgets.Display.windowDelegateProc(Display.java:3818) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:3512) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:3661) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:63) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2659) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:295) at org.eclipsetrader.ui.internal.application.InternalErrorDialog.open(InternalErrorDialog.java:74) at org.eclipsetrader.ui.internal.application.WorkbenchExceptionHandler.openQuestion(WorkbenchExceptionHandler.java:195) at org.eclipsetrader.ui.internal.application.WorkbenchExceptionHandler.openQuestionDialog(WorkbenchExceptionHandler.java:152) at org.eclipsetrader.ui.internal.application.WorkbenchExceptionHandler.handleException(WorkbenchExceptionHandler.java:88) at org.eclipsetrader.ui.internal.application.TraderWorkbenchAdvisor.eventLoopException(TraderWorkbenchAdvisor.java:56) at org.eclipse.ui.internal.ExceptionHandler.handleException(ExceptionHandler.java:65) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388) 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:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipsetrader.ui.internal.application.TraderApplication.start(TraderApplication.java:52) 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:366) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505) at org.eclipse.equinox.launcher.Main.run(Main.java:1237) at org.eclipse.equinox.launcher.Main.main(Main.java:1213)
Attachments
Change History
comment:2 Changed 3 years ago by maccaf
- Status changed from new to closed
- Resolution set to fixed
- Description modified (diff)
Changeset [1374] fixes the null pointer exception.
comment:3 Changed 3 years ago by alexsmr
- Status changed from closed to reopened
- Resolution fixed deleted
Sorry, I am still getting the NPE w/ empty history when lowest and highest values from the series:
java.lang.NullPointerException
at org.eclipsetrader.core.charts.OHLCDataSeries.getLowest(OHLCDataSeries.java:120) at org.eclipsetrader.ui.charts.ChartCanvas$8.visit(ChartCanvas.java:181) at org.eclipsetrader.ui.charts.BarChart.accept(BarChart.java:218) at org.eclipsetrader.ui.charts.ChartObject.accept(ChartObject.java:142) at org.eclipsetrader.ui.charts.ChartCanvas.buildVerticalAxis(ChartCanvas.java:176)
...
May be in the case of no history or the problem w/ data provider there should be some indication that the security from designated market cannot retrieve the history and the chart cannot be opened. Or have a chart pane additional tab that will overlap the chart canvas and represent the problem in the case of bad data, but will be opened at the end.


Exactly the same problem I observe on Win XP machine:
Configuration location:
Configuration file:
Install location:
Framework located:
Framework classpath:
Splash location:
Debug options:
Time to load bundles: 16 !SESSION 2008-12-22 14:37:31.928 ----------------------------------------------- eclipse.buildId=@build@ java.version=1.6.0_10-rc java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipsetrader.platform.workbench Command-line arguments: -product org.eclipsetrader.platform.workbench -data C:\dev\workspace\3.4\eclipsetrader/../runtime_workspace -dev file:C:/dev/workspace/3.4/eclipsetrader/.metadata/.plugins/org.eclipse.pde.core/EclipseTrader/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -debug
!ENTRY org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.brokers.paper.tests/ [113] was not resolved. !SUBENTRY 2 org.eclipsetrader.brokers.paper.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.junit; bundle-version="3.8.2" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.core.charts.tests/ [114] was not resolved. !SUBENTRY 2 org.eclipsetrader.core.charts.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.junit; bundle-version="0.0.0" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.core.tests/ [115] was not resolved. !SUBENTRY 2 org.eclipsetrader.core.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.eclipsetrader.tests; bundle-version="0.0.0" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.opentick.tests/ [118] was not resolved. !SUBENTRY 2 org.eclipsetrader.opentick.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.junit; bundle-version="0.0.0" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.repository.local.tests/ [119] was not resolved. !SUBENTRY 2 org.eclipsetrader.repository.local.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.junit; bundle-version="0.0.0" !SUBENTRY 2 org.eclipsetrader.repository.local.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.eclipsetrader.tests; bundle-version="0.0.0" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.ui.charts.tests/ [121] was not resolved. !SUBENTRY 2 org.eclipsetrader.ui.charts.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.junit; bundle-version="0.0.0" !SUBENTRY 1 org.eclipse.osgi 2 0 2008-12-22 14:37:33.100 !MESSAGE Bundle update@../../../../workspace/3.4/eclipsetrader/org.eclipsetrader.ui.tests/ [122] was not resolved. !SUBENTRY 2 org.eclipsetrader.ui.tests 2 0 2008-12-22 14:37:33.100 !MESSAGE Constraints from the fragment conflict with the host: Require-Bundle: org.eclipsetrader.tests; bundle-version="0.0.0" Starting application: 1172 Application Started: 4391
!ENTRY org.eclipse.ui 4 0 2008-12-22 14:38:04.928 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException
!ENTRY org.eclipse.ui 4 0 2008-12-22 14:38:04.944 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException