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();
							"temp.file.path", "")
							, java.util.logging.Level.FINEST);
			IReportEngineFactory factory = (IReportEngineFactory) Platform
			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 Nov 13 01:19:26 GMT 2018

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

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

Back to the top