SAP Knowledge Base Article - Public

2528960 - ReportSDKServerException: Unable to connect to the server <Report Application Server> when running java RAS code on Crystal Report Embedded OEM edition

Symptom

When running the unmanaged RAS SDK code, specifically the Java method com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open() raises one of the following error message:

  • com.crystaldecisions.sdk.occa.report.lib.ReportSDKEnterpriseLogonException: Unable to log on: Could not connect to server <RAS_name>.  Please check that the server name is correct, and that the server is running. ---- Error code:-2147217397 [CRSDK00000000] Error code name:enterpriseLogonFailed
  • com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server <RAS_name> --- connection refused : connect------ Error code:-2147217387 [CRSSDK00000000]

Environment

  • Crystal Reports Server Embedded (OEM) 2016-2013
  • Report Application Server JAVA SDK

Reproducing the Issue

Run the unmanaged RAS SDK code specifically when calling the Java method com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open()

Cause

This is because that the RAS server instance within the code should correspond to the RAS instance set in the commands line (after -name) at the instance in the Central Configuration Manager console

Resolution

In the Unmanaged RAS SDK code to open the report, set the RAS Server instance to be used according to the name of the RAS instance set in the commands line (after -name) at the instance in the Central Configuration Manager console

ra.setReportAppServer("<RAS_instance_name>");

See Also

Refer to the RAS unmanaged code Sample in the attachement

Keywords

Unmanaged RAS java .net connection refused , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

Product

SAP Crystal Reports Server 2013, OEM edition ; SAP Crystal Reports Server 2016, OEM edition

Attachments

RAS10_JSP_Unmanaged_SimplePreviewReport.zip