Jump to content
  • NullPointerException in MBubblePlot.getPropertyValue


    dmitry-timin
    Assigned User Massimo Rabbi
    CategoryBug report
    Component: 8862
    PriorityNormal
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusResolved
    Versionv6.4.0

    Have several charts in a page, but only one constantly produces NPE when select chart component in Design or open "Chart Plot" tab. Also cannot set "Range Axis Minvalue/Maxvalue expression. In Source it´s shown that value is set

     

    0

     

    but when switch to Design - exception occurs and "Range Axis Minvalue Expression" input field is empty.

     

     

    !ENTRY com.jaspersoft.studio.properties 4 2 2017-09-22 14:12:12.022

    !MESSAGE Problems occurred when invoking code from plug-in: "com.jaspersoft.studio.properties".

    !STACK 0

    java.lang.NullPointerException

    at com.jaspersoft.studio.components.chart.model.plot.MBubblePlot.getPropertyValue(MBubblePlot.java:314)

    at com.jaspersoft.studio.model.APropertyNode.getPropertyActualValue(APropertyNode.java:257)

    at com.jaspersoft.studio.components.chart.model.plot.MChartPlot.getPropertyActualValue(MChartPlot.java:143)

    at com.jaspersoft.studio.property.section.AbstractRealValueSection.refresh(AbstractRealValueSection.java:30)

    at com.jaspersoft.studio.components.chart.property.section.ChartPlotSection.refresh(ChartPlotSection.java:284)

    at com.jaspersoft.studio.properties.view.TabContents$7.run(TabContents.java:235)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)

    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)

    at com.jaspersoft.studio.properties.view.TabContents.refresh(TabContents.java:238)

    at com.jaspersoft.studio.properties.view.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:159)

    at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:158)

    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)

    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)

    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:155)

    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2191)

    at com.jaspersoft.studio.properties.internal.TabbedPropertyViewer.access$0(TabbedPropertyViewer.java:1)

    at com.jaspersoft.studio.properties.internal.TabbedPropertyViewer.updateSelection(TabbedPropertyViewer.java:201)

    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1229)

    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1258)

    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)

    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)

    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:405)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088)

    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:802)

    at com.jaspersoft.studio.properties.internal.TabbedPropertyList.select(TabbedPropertyList.java:206)

    at com.jaspersoft.studio.properties.internal.TabbedPropertyList$TabAction.run(TabbedPropertyList.java:232)

    at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)

    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)

    at org.eclipse.jface.action.ActionContributionItem.lambda$5(ActionContributionItem.java:436)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)

    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

    at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:91)

    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:388)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)

    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:673)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)


    Attachments: .og

    User Feedback

    Recommended Comments

    Changed Status from New to Feedback Requested


    Hi can you please attach the JRXML sample. I tried adding a bubble chart to an empty test report. No problem opening the chart plot tab.Moreover I tried to set an expression to the range axis min/max expression: it worked fine.Regards,Massimo.
    Link to comment
    Share on other sites

    Changed Assigned User from - to @mrabbi


    Ok, I was able to get an NPE when I re-opened the report and switched to the chart plot tab. I will investigate.Anyhow the range axis min/max value expression were set fine. If possible please proceed attaching the sample. Even better you can register a screencast detailing all the issues. Looking at your steps might help.Regards,Massimo.
    Link to comment
    Share on other sites

    Hello,

    I entered range axis min/max values manually in jrxml file and now they stay there, but still getting NPE exception when select/unselect chart in designer or switch between tabs.

    I was trying to align all charts vertically so that data area would be strictly aligned.

    I ended up using chart customizer "Domain axis range and tick" and it does the job.

    Link to comment
    Share on other sites

    Changed Resolution from Open to Fixed

    Changed Status from Feedback Requested to Resolved


    Hi,I just checked in the fix into the trunk for the NPE. This actually seems to solve the strange behavior with the property values storing.Thanks for spotting.Regards,Massimo.
    Link to comment
    Share on other sites


×
×
  • Create New...