| NullPointerException Platform.createFactoryObject [message #778328] |
Thu, 12 January 2012 07:05  |
Michal Sz Messages: 2 Registered: January 2012 |
Junior Member |
|
|
Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
Build id: 20110916-0149
Birt 3.7.1
I've got java.lang.NullPointerException on:
engine = factory.createReportEngine( config );
//...and then second one at line:
design = engine.openReportDesign("C:/Users/ms/Libs/BIRT/birt-runtime-3_7_1/ReportEngine/samples/hello_world.rptdesign");
I believe it's connected with:
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY ); //
I've commented
// Platform.startup( config );
but it didn't help.
any ideas, please?
|
|
|
|
| Re: NullPointerException Platform.createFactoryObject [message #779653 is a reply to message #778411] |
Mon, 16 January 2012 04:02   |
Michal Sz Messages: 2 Registered: January 2012 |
Junior Member |
|
|
but if I leave
Platform.startup( config );
I receive:
Quote:Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
at org.eclipse.birt.core.framework.Platform.createPlatformLauncher(Platform.java:115)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:74)
at testBirtEngine.TestBirtEngine.executeReport(TestBirtEngine.java:41)
at testBirtEngine.TestBirtEngine.main(TestBirtEngine.java:124)
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.CoreException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
//sorry for delay in communication
Ok, I've found Your solution for that issue - I havent't linked all jars from Engine folder. I cannot give a link to that topic so I'll just said thanks a lot!
[Updated on: Mon, 16 January 2012 04:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
| Re: NullPointerException Platform.createFactoryObject [message #900151 is a reply to message #783120] |
Sat, 04 August 2012 13:56  |
Omer Akhter Messages: 4 Registered: August 2012 |
Junior Member |
|
|
Hi
I am new to BIRT. I am using BIRT 4.2
I am facing similar problem. I have a maven project. My BIRT dependency looks like this:
<dependency>
<groupId>org.eclipse.birt.runtime</groupId>
<artifactId>org.eclipse.birt.runtime</artifactId>
<version>4.2.0</version>
</dependency>
And when I run my application through eclipse, it works fine.
But when I creat a jar with dependencies using maven-assembly-plugin and try to run it. The createFactoryObject returns null.
Any help ...?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02697 seconds