Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Platform .createFactoryObject return null only on first usage!(Platform .createFactoryObject return null only on first usage)
Platform .createFactoryObject return null only on first usage! [message #1769761] Thu, 03 August 2017 07:49
Karol Teske is currently offline Karol TeskeFriend
Messages: 1
Registered: August 2017
Junior Member
I looked through whole internet, but can't find the issue. I wonder why this code
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);


On first usage

engine = factory.createReportEngine(config);


I've got a NPE as factory is returned as null, but on the second usage(and go on) it works perfectly. So i just need to reload page, and i've got working factory.

I'm sure I have working classpath and everything is on its place.

Any ideas what possible went wrong?

Whole context looks like this:

IReportEngine engine = null;
		try {
			EngineConfig config = new EngineConfig();
			config.setLogConfig(
					AppProperties.getInstance().getProperty(
							"temp.file.path", "")
							, java.util.logging.Level.FINEST);
			config.setLogger(java.util.logging.Logger
					.getLogger("org.eclipse.BIRTengine"));
			RegistryProviderFactory.releaseDefault();
			Platform.startup(config);
			IReportEngineFactory factory = (IReportEngineFactory) Platform
					.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
			engine = factory.createReportEngine(config);


Thanks for any help and ideas.
Previous Topic:Error.ReportQueryLoadingError2 ( 1 time(s) ) in MAXIMO Birt Reports
Next Topic:Help with check boxes (BIRT)
Goto Forum:
  


Current Time: Tue Aug 21 22:07:34 GMT 2018

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

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

Back to the top