facebook

Error: createReportEngine gets nullPointerException

  1. MyEclipse Archived
  2.  > 
  3. MyEclipse Reports
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #308633 Reply

    mongonv
    Participant

    I am trying to create a Java, not web, app to generate report documents from BIRT reports and all the samples I can find get to a point where they call something like the following:

    
              config = new EngineConfig( );
              config.setEngineHome( "E:/Development/birt-runtime-2_5_2/ReportEngine" );
              config.setLogConfig("E:/Development/birt_logs", Level.FINE);
              Platform.startup( config );
              IReportEngineFactory factory = (IReportEngineFactory) Platform
                .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
              engine = factory.createReportEngine( config );
    

    As soon as it hits the createReportEngine it gets a nullPointerException. I have tried the full BIRT runtime, the ME reporting libs and nothing works from withing ME. I was able to get it to run by using standard Eclipse with the BIRT Runtime 2.5.x, but it had problems finding the emitters.

    Can anyone tell me what has to be done to get this kind of Java app to run from a ME project?

    The full error I get is:

    
    java.lang.NullPointerException
        at org.eclipse.birt.report.engine.api.impl.ReportEngine$EngineExtensionManager.<init>(ReportEngine.java:784)
        at org.eclipse.birt.report.engine.api.impl.ReportEngine.<init>(ReportEngine.java:109)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:18)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory$1.run(ReportEngineFactory.java:1)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.birt.report.engine.api.impl.ReportEngineFactory.createReportEngine(ReportEngineFactory.java:14)
        at ExecuteCvsReport.executeReport(ExecuteCvsReport.java:43)
        at ExecuteCvsReport.main(ExecuteCvsReport.java:100)
    

    I am using ME 8.5 and BIRT 2.5 that comes with it.

    Thanks for any thoughts,
    Ed

    #308644 Reply

    Ram
    Member

    Ed,

    When I searched over the net I found a link related to your issue. I request you to go through the following link

    http://www.birt-exchange.org/forum/designing-birt-reports/16746-java-lang-nullpointerexception-reportengine-java-830-a.html

    I hope this works for you.

    #308653 Reply

    mongonv
    Participant

    Hey Ram,
    I had seen that post and tried that and it did not work when I first tried. I removed all path links and redid it and I was able to get it to generate a PDF by using a very simple report design that only put out text, no data.
    Thanks,
    Ed

    #309009 Reply

    Ram
    Member

    Ed,

    Sorry for the delayed reply. I have escalated this issue to our dev team member. They will get back to you on this.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Error: createReportEngine gets nullPointerException

You must be logged in to post in the forum log in