EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  RBD 9.5 and BIRT 4.2.2

    Posted Wed December 16, 2015 06:55 AM

    Hi all,

     

    I developed an EGL library to generate a pdf file using BIRT. The goal is to call this library from a EGL Web Service SOAP which is deployed on local server "tomcat 8".

    When I test the web service, I get the next error message in my tomcat console

     

    (12:41:49>    ServiceLifecycle init.
    (12:41:49>    store httpsession:A77778E1130705986481A42072152CA4
    (12:41:49>  .--> birtsvc.birtSvc_Impl.writeReport
    (12:41:49>  . --> birtlib.birtLib_Lib.writeReport
    Get BIRT_HOME from rununit.properties : C:\birt-runtime-osgi-4_4_2\ReportEngine
    (12:41:49>  . .--> myreports.MyBirtHandler.setCustomerArray
    (12:41:49>  . <-- myreports.MyBirtHandler.setCustomerArray
    Can not load the report engine
    exception java.lang.NullPointerException(12:41:53>  .<-- birtlib.birtLib_Lib.writeReport
    (12:41:53>  <-- birtsvc.birtSvc_Impl.writeReport

    (12:41:53> endRunUnit birtSvc_Impl (normal termination) with returnCode=0
    (12:41:53>    ServiceLifecycle destroy for session:A77778E1130705986481A42072152CA4

     

    the development is done with RBD 9.5 - Tomcat 8 - BIRT-OSGI-4.2.2

    any idea?

     

    Eric

     

    ENO2010


  • 2.  Re: RBD 9.5 and BIRT 4.2.2

    Posted Wed December 16, 2015 02:32 PM

    Hi,

    I will let others join in who are using BIRT, but I am wondering if this version is too high to be compatible with EGL.   From documentation, I think the latest version tested was 2.6.0, but I found other posts that seem to indicate that someone got the OSGI 4.2.2 version working.

     

    Can you try a lower version.

     

    take care.

    markevans


  • 3.  Re: RBD 9.5 and BIRT 4.2.2

    Posted Wed December 16, 2015 06:56 PM

    Hi Eric,

    My colleague and I worked on this a couple of weeks ago. We tried multiple versions of the BIRT Runtime but the only one we had success with was 2.6.0.

    We were able to produce a PDF on Tomcat V7, Websphere 8.5, and the Web Preview Server.

    We even tried 2.6.1 but couldn't get it working. We also found the error messages were quite generic and didn't provide much detail as to the problems, but from memory that does look like

    the error message we received for Runtime versions that didn't work when we tried them.

    My advice would be to go straight to version 2.6.0 and focus on getting the PDF report produced. Once you have success with that you could (if you really needed to) try getting it to work on other versions.

    If you have other questions or problems please post them and I'll try to help.

     

    Good luck

    Heath.

    HeathAussie


  • 4.  Re: RBD 9.5 and BIRT 4.2.2

    Posted Thu December 17, 2015 02:25 AM

     

    Hi Eric,

    You may also try changing the BIRT log level, found at WEB-INF/web.xml, example

            <!-- Report engine log level -->        <context-param>                <param-name>BIRT_VIEWER_LOG_LEVEL</param-name>                <param-value>ALL</param-value>        </context-param>

    Trace logs by default are located at ${birt home}/logs.  It may give you some clues why the BIRT report engine fails.

     

    Hope this helps.

     

    Julius

     

     

    jmarb


  • 5.  Re: RBD 9.5 and BIRT 4.2.2

    Posted Fri December 18, 2015 09:56 AM

    Hi everyone,

     

    Finally, I solved my issue with BIRT-runtime-osgi 4.4.2.

    (1) Set your BirtEngineHome in your eglbld file to the ReportEngine directory see picture

    r

    (2) replace the jar files  coreapi, modelapi and engineapi which are located in your lib folder of your Web project by their new version.

    New jars are in lib folder of "burt-runtime-osgi-4.4.2\ReportEngine" folder

     

    It's done Smile

    Eric

     

     

     

     

     

     

    ENO2010


  • 6.  Re: RBD 9.5 and BIRT 4.2.2

    Posted Fri December 18, 2015 10:05 AM

    Eric,

    Glad you got it to work.

     

    And thanks for updating the forum with what you did to get it to work.

    markevans