Project: Birt
Bug 217397 Preview exception when drag to change chart width in measure[1302]
Reported: 2008-02-01 02:16:21 | Status: closed fixed

Description: Preview exception when drag to change chart width in measure cell Build number:2.3.0.v20080201 Steps to reproduce: 1. New a crosstab, switch measure view to chart. 2. Select the chart, drag to change the width. 3. Preview. Expected result: Chart shows without exception. Actual result: Chart mychart: - "fromUnits"must be one of the absolute units(CM, IN, MM, PT). "fromUnits"must be one of the absolute units(CM, IN, MM, PT). ( 21 time(s) ) detail : org.eclipse.birt.report.engine.api.EngineException: "fromUnits"must be one of the absolute units(CM, IN, MM, PT). at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1084) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:861) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.visitForeign(LocalizedContentVisitor.java:475) at org.eclipse.birt.report.engine.content.impl.ForeignContent.accept(ForeignContent.java:69) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:149) at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:36) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:63) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:104) at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:153) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133) at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68) at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27) at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:65) Caused by: org.eclipse.birt.chart.exception.ChartException: "fromUnits"must be one of the absolute units(CM, IN, MM, PT). at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onRowSets(ChartReportItemPresentationBase.java:642) at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationProxy.onRowSets(ChartReportItemPresentationProxy.java:102) at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:838) ... 78 more Caused by: java.lang.IllegalArgumentException: "fromUnits"must be one of the absolute units(CM, IN, MM, PT). at org.eclipse.birt.report.model.api.util.DimensionUtil.convertTo(DimensionUtil.java:140) at org.eclipse.birt.chart.reportitem.ChartReportItemUtil.convertToPoints(ChartReportItemUtil.java:658) at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationPlotImpl.computeBounds(ChartReportItemPresentationPlotImpl.java:51) at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.buildChart(ChartReportItemPresentationBase.java:736) at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onRowSets(ChartReportItemPresentationBase.java:604) ... 80 more

Files changed in fix:
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemPresentationPlotImpl.java chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemUtil.java