Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333266 - NPE when showing crosstab measure as chart with crosstab font size set to smaller
Summary: NPE when showing crosstab measure as chart with crosstab font size set to sma...
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7.0 M6   Edit
Assignee: Yulin Wang CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-28 09:53 EST by Marco CLA
Modified: 2011-05-25 16:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco CLA 2010-12-28 09:53:45 EST
Build Identifier: 2.6.1.v20100709a-	org.eclipse.birt.feature.group

org.eclipse.birt.chart.exception.ChartException
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onRowSets(ChartReportItemPresentationBase.java:834)
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationProxy.onRowSets(ChartReportItemPresentationProxy.java:108)
	at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.processExtendedContent(LocalizedContentVisitor.java:1023)
	at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localizeForeign(LocalizedContentVisitor.java:579)
	at org.eclipse.birt.report.engine.presentation.LocalizedContentVisitor.localize(LocalizedContentVisitor.java:163)
	at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:37)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:111)
	at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:160)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:67)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLGroupLM.layoutChildren(HTMLGroupLM.java:117)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:26)
	at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:132)
	at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:140)
	at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:70)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)
	at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:99)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
	at com.smartpm.finmod.viewer.ReportJob.generateReport(ReportJob.java:306)
	at com.smartpm.finmod.viewer.ReportJob.run(ReportJob.java:269)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
	at org.eclipse.birt.chart.reportitem.ChartReportStyleProcessor.getSmallerFontSizeIntValue(ChartReportStyleProcessor.java:549)
	at org.eclipse.birt.chart.reportitem.ChartReportStyleProcessor.getSmallerFontSizeIntValue(ChartReportStyleProcessor.java:570)
	at org.eclipse.birt.chart.reportitem.ChartReportStyleProcessor.getFontSizeIntValue(ChartReportStyleProcessor.java:449)
	at org.eclipse.birt.chart.reportitem.ChartReportStyleProcessor.getStyle(ChartReportStyleProcessor.java:209)
	at org.eclipse.birt.chart.factory.Generator.updateHierarchyStyle(Generator.java:430)
	at org.eclipse.birt.chart.factory.Generator.getMingledStyle(Generator.java:370)
	at org.eclipse.birt.chart.factory.Generator.applyStyles(Generator.java:251)
	at org.eclipse.birt.chart.factory.Generator.prepareComponent(Generator.java:171)
	at org.eclipse.birt.chart.factory.Generator.prepareComponent(Generator.java:176)
	at org.eclipse.birt.chart.factory.Generator.prepareStyles(Generator.java:150)
	at org.eclipse.birt.chart.factory.Generator.build(Generator.java:1010)
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.buildChart(ChartReportItemPresentationBase.java:971)
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationAxisImpl.buildChart(ChartReportItemPresentationAxisImpl.java:184)
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.generateRenderObject(ChartReportItemPresentationBase.java:856)
	at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationBase.onRowSets(ChartReportItemPresentationBase.java:819)
	... 32 more


Reproducible: Always

Steps to Reproduce:
1. create report with crosstab
2. change a measure to show as chart
3. change style "crosstab" to font size "smaller" (small works fine)
4. generate report
Comment 1 Yulin Wang CLA 2011-02-22 21:38:47 EST
If container handle does not support style, use default font size instead.
Comment 2 Xiaoying Gu CLA 2011-02-22 21:58:15 EST
Verified in daily build 4.0.0.v20110223-0630.