How to Handle Content Server Errors in SSXA Website?

(Doc ID 1327921.1)

Last updated on MAY 03, 2017

Applies to:

Oracle WebCenter Content - Version 11.1.1.4.0 to 11.1.1.9.0 [Release 11g]
Information in this document applies to any platform.

Goal

In an SSXA Application, when passing a content ID using a custom input element, the following error is seen:

Caused by: oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve information for 'VIRTUOZ2DEV000342'. Unable to find latest released revision for item 'VIRTUOZ2DEV000342'.
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:135)
at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:107)
at oracle.stellent.wcm.client.invokers.impl.IdcServiceInvoker.getVarObject(IdcServiceInvoker.java:63)
at oracle.stellent.wcm.client.invokers.impl.VarInvoker.handleResponse(VarInvoker.java:73)
at oracle.stellent.wcm.client.invokers.RequestInvoker.invokeRequest(RequestInvoker.java:145)
at oracle.stellent.wcm.javaee.taglib.BaseTag.doTag(BaseTag.java:127)
at oracle.stellent.wcm.javaee.taglib.IdcServiceTag.doTag(IdcServiceTag.java:104)


Steps to Reproduce:
1. Create a region definition with a custom element to input a content ID.
2. Create a region template; for example:

<wcm:idcService service="DOC_INFO_BY_NAME"
var="docinfo">
<wcm:idcParameter name="dDocName"
value="${row.Fichier}"/>
<wcm:idcParameter name="RevisionSelectionMethod"
value="LatestReleased"/>
</wcm:idcService>
<wcm:metadata contentID="${row.Fichier}" var="meta"/>


3. The error is seen when the content is deleted corresponding to "${row.Fichier}"
Is there a way to check if it exists before calling service="DOC_INFO_BY_NAME" ?

Is there a way to find out if the content exists in the content server before making a call to DOC_INFO_BY_NAME service?  If not, how to handle this error in the application?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms