Project: Birt
Bug 116418 [Regression]NullPointException throws when run date-format.xml.
Reported: 2005-11-15 05:42:50 | Status: closed fixed

Description: NullPointException throws when run date-format.xml. Steps to reproduce: 1. Run attached file date-format.xml Expected result: No Exception. Actual result: ARNING: Illegal pattern character 'e' java.lang.IllegalArgumentException: Illegal pattern character 'e' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:675) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:494) at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:443) at org.eclipse.birt.core.format.DateFormatter.applyPattern (DateFormatter.java:262) at org.eclipse.birt.core.format.DateFormatter.<init> (DateFormatter.java:96) at org.eclipse.birt.report.engine.executor.ExecutionContext.getDateFormatter (ExecutionContext.java:869) at org.eclipse.birt.report.engine.presentation.LocalizedEmitter.startData (LocalizedEmitter.java:194) at org.eclipse.birt.report.engine.presentation.WrappedEmitter.startData (WrappedEmitter.java:284) at org.eclipse.birt.report.engine.presentation.HtmlPaginateEmitter.startData (HtmlPaginateEmitter.java:210) at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute (DataItemExecutor.java:101) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitDataItem (ReportExecutorVisitor.java:151) at org.eclipse.birt.report.engine.ir.DataItemDesign.accept (DataItemDesign.java:68) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeCell (GridItemExecutor.java:257) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeRow (GridItemExecutor.java:193) at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute (GridItemExecutor.java:123) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitGridItem (ReportExecutorVisitor.java:166) at org.eclipse.birt.report.engine.ir.GridItemDesign.accept (GridItemDesign.java:117) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute (ReportExecutor.java:158) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:151) at org.eclipse.birt.report.engine.api.ReportRunner.executeReport (ReportRunner.java:178) at org.eclipse.birt.report.engine.api.ReportRunner.execute (ReportRunner.java:115) at org.eclipse.birt.report.engine.api.ReportRunner.main (ReportRunner.java:86) Nov 15, 2005 6:37:00 PM org.eclipse.birt.core.format.DateFormatter format WARNING: null java.lang.NullPointerException at org.eclipse.birt.core.format.DateFormatter.format (DateFormatter.java:280) at org.eclipse.birt.report.engine.presentation.LocalizedEmitter.startData (LocalizedEmitter.java:196) at org.eclipse.birt.report.engine.presentation.WrappedEmitter.startData (WrappedEmitter.java:284) at org.eclipse.birt.report.engine.presentation.HtmlPaginateEmitter.startData (HtmlPaginateEmitter.java:210) at org.eclipse.birt.report.engine.executor.DataItemExecutor.execute (DataItemExecutor.java:101) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitDataItem (ReportExecutorVisitor.java:151) at org.eclipse.birt.report.engine.ir.DataItemDesign.accept (DataItemDesign.java:68) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeCell (GridItemExecutor.java:257) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeRow (GridItemExecutor.java:193) at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute (GridItemExecutor.java:123) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitGridItem (ReportExecutorVisitor.java:166) at org.eclipse.birt.report.engine.ir.GridItemDesign.accept (GridItemDesign.java:117) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute (ReportExecutor.java:158) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:151) at org.eclipse.birt.report.engine.api.ReportRunner.executeReport (ReportRunner.java:178) at org.eclipse.birt.report.engine.api.ReportRunner.execute (ReportRunner.java:115) at org.eclipse.birt.report.engine.api.ReportRunner.main (ReportRunner.java:86) Nov 15, 2005 6:37:00 PM org.eclipse.birt.core.format.DateFormatter format

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/BIRTPropertyManagerFactory.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/CSSEngine.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/StringValue.java