Skip to Content

BI4 SDK - required jars for ReportEngine api

Hi all,

I am developing an application to be executed as a program file within the BI4 scheduler.

My class implements the IProgramBase interface, but I get an error when invoking

ReportEngines srcRepEngList = (ReportEngines) sourceSession.getService("ReportEngines");

the error is:

SDKException$ServiceNotFound: The service ReportEngines could not be found on the client side

Please note that the exact same code works ok on a web application (WAR).

I've found out that this error happens when there are missing entries in the program classpath.

I've tried to add all the jars from the BOE lib folder, but I get an error as they are duplicates of those already in the scheduler default classpath.

Can anyone please help me finding out the required jars for ReportEngines service?

Thanks regards

Vincenzo

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2012 at 05:43 AM

    Hi Vincenzo,

    SAP has not released any such list of jar files relevant to Report Engine SDK.

    The recommended approach mentioned in the developer guide for Report Engine SDK is as mentioned below:

    Navigate to <BOBJ_INST_DIR>\SAP BusinessObjects\SAP BusinessObjects EnterpriseXI 4.0\java\lib directory, select all the jars.

    I know it is not an appropriate way to handle your application's runtimes as it will make your application more bulky but it is the only available & recommended option developers has got.

    For your reference, you can download the Report Engine SDK developer guide for SP04 release here.

    

    Refer to the section '5.1.2.2 Adding Rebean jars to the project' in the developers guide stating the above fact.

    

    Regards,

    Anchal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2012 at 11:00 PM

    Hi Vencenzo,

    Have you check this SAP help zip file out?

    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_boejava_dg_en.zip

    Once downloaded and extracted, just browse to page topic86.html.

    Hope this helps,

    Anirut W.

    Add a comment
    10|10000 characters needed characters exceeded


    • Anirunt,

      I have the same issue... I went over developer guide for Report Engine SDK and it is clearly indicating that ReportEngines SKD is available. Unfortunately I am not able to resolve the same issue:

      ReportEngines repEngines = (ReportEngines)enterpriseSession.getService("ReportEngines");

      Vincenzo,

      Have you find a solution to this bug?

      This is what we have on the BI4.x API:

      Example: Create a ReportEngine instance to work on Web Intelligence documents.

      ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();

      IEnterpriseSession entSession = sessionMgr.logon(userID, password, CMS, auth);

      if (entSession != null) {

      ILogonTokenMgr loginTokenManager = entSession.getLogonTokenMgr();

      String token = loginTokenManager.getDefaultToken();

      ReportEngines repEngines = (ReportEngines)enterpriseSession.getService("ReportEngines");

      ReportEngine wiRepEngine = repEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);

      }

      This is missing and it is not working:

      ReportEngines repEngines = (ReportEngines)enterpriseSession.getService("ReportEngines");

      If you have any solution to this please us know.

      Thanks,

      Waleed

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2014 at 06:38 AM

    Hi Vincenzo,


    The error you are facing is because your Program Object is not able to find the required jar files at runtime. However, since you have provided the jars in your WEB APP classpath it works. In BI 3.1 the jars required for scheduling a Program Object were internally mapped. Since a major chunk of REBEAN SDK's has been deprecated in BI 4.0, the classpath should be manually set while scheduling a Program Object.


    Please go through the below SAP Note:

    1934139 - Exception caught while running program. Reason: [com.crystaldecisions.sdk.exception.SDKException$ServiceNotFound: The service ReportEngines could not be found on the client side]. while scheduling a Program Object in Business Objects 4.0.

    Hope this helps.

    Regards,
    Rajarsh

    https://i7p.wdf.sap.corp/sap/support/notes/1934139

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.