cancel
Showing results for 
Search instead for 
Did you mean: 

DocumentInstance widoc = wiRepEngine.openDocument(infoObject.getID()); throws error

Former Member
0 Kudos

Below is the part of code:

-----------------------------------------------------

ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
enterpriseSession = sessionMgr.logon(userName, password,cms, auth);
reportEngines = (ReportEngines) enterpriseSession.getService("ReportEngines");
ReportEngine wiRepEngine = (ReportEngine) reportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
IInfoStore infoStore = (IInfoStore) enterpriseSession.getService("InfoStore");
String query = "select SI_NAME, SI_ID from CI_INFOOBJECTS where SI_KIND = 'Webi' and SI_INSTANCE=0";
IInfoObjects infoObjects = (IInfoObjects) infoStore.query(query);

for (Object object : infoObjects) {
IInfoObject infoObject = (IInfoObject) object;
String path = getInfoObjectPathAndTitle(infoObject);
if (path.startsWith("/Test")) {
DocumentInstance widoc = wiRepEngine.openDocument(infoObject.getID());

-----------------------------------------------------------

When it reaches the line:

DocumentInstance widoc = wiRepEngine.openDocument(infoObject.getID());

It throws below error:

Exception in thread "main" com.businessobjects.rebean.wi.ServerException: session is closed.

at com.businessobjects.rebean.wi.REFactory.createSimpleServerException(Unknown Source)

at com.businessobjects.wp.om.OMFactory.createServerException(Unknown Source)

at com.businessobjects.rebean.occa.OccaReportEngineComAdapter.documentLoadingError(Unknown Source)

at com.businessobjects.rebean.occa.OccaReportEngineComAdapter.createCadenzaSession(Unknown Source)

at com.businessobjects.rebean.occa.OccaReportEngineComAdapter.initNewCadenzaSession(Unknown Source)

at com.businessobjects.rebean.occa.OccaReportEngineComAdapter.openDocument(Unknown Source)

at com.businessobjects.rebean.wi.ReportEngineImpl.openDocument(Unknown Source)

at com.businessobjects.rebean.wi.occa.WebiReportEngine.openDocument(Unknown Source)

at com.ubs.bims.businessobjects.xi.tools.UpdateUBSLogo.main(UpdateLogo.java:62)

I am and stuck here. Kindly help.

Joe_Peters
Active Contributor
0 Kudos

Are you on BI4? REBean is no longer supported.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member203619
Contributor
0 Kudos

This error could possibly happen if you are mixing jar files. If you have jar files from BI 4.2 SP4 or higher mixed with anything lower - I could see this error happening.

Can you please verify that you are only using jar files from same version that your BOE server is running at. That means removing all previous jar files and only using ones freshly obtained from the BOE server.

Shawn