Skip to Content
0
Jan 24, 2019 at 07:42 AM

no response after call reportAppFactory.openDocument method

64 Views Last edit Jan 24, 2019 at 04:07 PM 2 rev

I use crystal report Java API (com.crystaldecisions.sdk.*) to generate a report. When the request exceed to call the method(reportAppFactory.openDocument), no response after long time, the same code is working well on

SAP BusinessObjects BI Platform 4.2 Support Pack 5(Version: 14.2.5.2618),

but not working on(Product: 12.1.0)

the code:

IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");

logger.info("Token::::::" + getSapBOConnection().getToken());

IInfoObjects reports = iStore.query(StringUtils.getStringUtil.getStringWithParams(query, params));

if (reports == null || reports.size() == 0)

return null;

IInfoObject report = (IInfoObject) reports.get(0);

IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");

ReportClientDocument rcd = reportAppFactory.openDocument(report, OpenReportOptions._openAsReadOnly,

java.util.Locale.getDefault());