Bugs item #3515663, was opened at 2012-04-07 03:03
Message generated for change (Comment added) made by edso
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=679906&aid=3515663&group_id=118054

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Plug-In
Group: None
Status: Open
Resolution: None
Priority: 8
Private: No
Submitted By: michael michaud (michaudm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Severe regression in OpenJUMP 1.5.x

Initial Comment:
I just discovered a regression appeared between 1.4.2 and 1.5.0
It appears if you try to do 
- Tools>Statistics>AttributeClassification
but it is probably not a problem with this particular plugin.
I think that bug 3510832 is a side effect of the same bug
I also noticed, fixing 3497362 that PlugInContext.getLayerViewPanel did not 
work, and that I had to call the workbenchContext first to access the 
currentLayerViewPanel, which may be related to the same problem.

----------------------------------------------------------------------

>Comment By: ede (edso)
Date: 2012-04-07 04:39

Message:
do you mean this?

java.lang.NullPointerException
        at org.math.plot.plots.HistogramPlot2D.build(HistogramPlot2D.java:84)
        at org.math.plot.plots.HistogramPlot2D.<init>(HistogramPlot2D.java:51)
        at
org.openjump.core.ui.plot.HistogramPlot2DOJ.<init>(HistogramPlot2DOJ.java:42)
        at
org.openjump.core.ui.plot.Plot2DCanvasOJ.addHistogramPlotOJ(Plot2DCanvasOJ.java:173)
        at
org.openjump.core.ui.plot.Plot2DPanelOJ.addHistogramPlotOJ(Plot2DPanelOJ.java:380)
        at
org.openjump.core.ui.plugin.tools.statistics.ClassifyAttributesPlugIn.classifyAndCreatePlot(ClassifyAttributesPlugIn.java:387)
        at
org.openjump.core.ui.plugin.tools.statistics.ClassifyAttributesPlugIn.run(ClassifyAttributesPlugIn.java:198)
        at
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
        at java.lang.Thread.run(Thread.java:662)

i have no clue what the plugin does, but from what i can see :

at
org.openjump.core.ui.plot.Plot2DCanvasOJ.addHistogramPlotOJ(Plot2DCanvasOJ.java:173)
DOES
        return addPlot(new HistogramPlot2DOJ(name, c, XY, XY[1][0] -
XY[0][0], context, layer, attrName));

if XY[1][0] and XY[0][0] hold identical values this result in double value
0, which is used to construct HistogramPlot2D where it ends up as 
width_constant

which LEADS TO the following condition failing

at org.math.plot.plots.HistogramPlot2D.build(HistogramPlot2D.java:67)
                if (width_constant > 0) {

which LEADS TO another routine with an uninitialized variable widths to
fail

at org.math.plot.plots.HistogramPlot2D.build(HistogramPlot2D.java:84)
                                topLeft[i] = new double[] { XY[i][0] - 
factorWidth * widths[i] / 2 +
(offsetCenter_perWidth - 0.5) * widths[i], XY[i][1] };

CONCLUSION:
seems to be a bug in mathplot, but i am unsure if and how it can be worked
around in OJ.

would be best if stefan as original author had a look at that when he's
settled in.

..ede


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=679906&aid=3515663&group_id=118054

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to