Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » java.lang.NullPointerException after shutdown platform
java.lang.NullPointerException after shutdown platform [message #693106] Tue, 05 July 2011 19:44 Go to next message
zhebincong is currently offline zhebincong
Messages: 1
Registered: July 2011
Junior Member
i use birt2.6.2, and in my class there is a method to generate report from script data source, then shutdown the platform, in my junit test cases, when i call it 1 time, it works well, but if call it 2 times, the exception thrown as follow:

java.lang.NullPointerException
at org.eclipse.birt.report.model.metadata.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:103)
at org.eclipse.birt.report.model.metadata.MetaDataDictionary.intializeExtension(MetaDataDictionary.java:1169)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.initialize(DesignEngineImpl.java:99)
at org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java:147)
at org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java:120)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:143)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java:255)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:274)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:196)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:130)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:295)
...............
...............

but if i comment out the "Platform.shutdown", it works.

who can help?
thanks.
Re: java.lang.NullPointerException after shutdown platform [message #693679 is a reply to message #693106] Thu, 07 July 2011 01:28 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I wonder if this is causing it?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208174

Jason

On 7/5/2011 3:44 PM, forums-noreply@eclipse.org wrote:
> i use birt2.6.2, and in my class there is a method to generate report
> from script data source, then shutdown the platform, in my junit test
> cases, when i call it 1 time, it works well, but if call it 2 times, the
> exception thrown as follow:
>
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.model.metadata.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:103)
>
> at
> org.eclipse.birt.report.model.metadata.MetaDataDictionary.intializeExtension(MetaDataDictionary.java:1169)
>
> at
> org.eclipse.birt.report.model.api.impl.DesignEngineImpl.initialize(DesignEngineImpl.java:99)
>
> at
> org.eclipse.birt.report.model.api.impl.DesignEngineImpl.newSessionHandle(DesignEngineImpl.java:147)
>
> at
> org.eclipse.birt.report.model.api.DesignEngine.newSessionHandle(DesignEngine.java:120)
>
> at
> org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:143)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.getReportDesignHandle(ReportEngineHelper.java:255)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:274)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:196)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:130)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:295)
>
> ...............
> ...............
> but if i comment out the "Platform.shutdown", it works.
>
> who can help?
> thanks.
Previous Topic:Compare value in detail row
Next Topic:ERROR IN CHART
Goto Forum:
  


Current Time: Sat Oct 25 07:09:03 GMT 2014

Powered by FUDForum. Page generated in 0.03477 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software