1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

UCM Issue: How to avoid below exception. It is urgent. Plz help.

Discussion in 'Oracle Webcenter Suite (formerly Oracle ECM)' started by sivavp1, Feb 4, 2010.

  1. sivavp1

    sivavp1 Forum Advisor

    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    100
    Location:
    Bangalore
    Hi

    How to avoid the below exception. It is occuring when retrieving the content from Weblogic Portal through code. It is urgent. Plz help.. Please suggest.
    -----------------
    IdcServerThread-15878 !csGetFileNeedsParameter,LatestReleased-exception stack
    intradoc.data.DataException: !csGetFileNeedsParameter,LatestReleased
    at intradoc.server.utils.FileRevisionSelectionUtils.computeDocumentRevisionMethod(FileRevisionSelectionUtils.java:125)
    at intradoc.server.DocCommonHandler.determineID(DocCommonHandler.java:615)
    at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:466)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:142)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:77)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1353)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1194)
    at intradoc.server.Service.doActions(Service.java:447)
    at oracle.stellent.wcm.idc.utils.IdcServiceUtils.executeService(IdcServiceUtils.java:63)
    at oracle.stellent.wcm.idc.utils.IdcDocInfoUtils.getDocInfo(IdcDocInfoUtils.java:47)
    at oracle.stellent.wcm.idc.filter.impl.vcr.VcrContentTypes.getContentDefinition(VcrContentTypes.java:69)
    at oracle.stellent.wcm.idc.filter.impl.staging.AddColumnToSearchResults.doFilterTask(AddColumnToSearchResults.java:123)
    at oracle.stellent.wcm.idc.filter.WCMStagingFilters.doFilter(WCMStagingFilters.java:121)
    at intradoc.shared.PluginFilters.filter(PluginFilters.java:94)
    at intradoc.server.SearchService.computeResultsSideEffects(SearchService.java:1267)
    at intradoc.server.SearchService.getSearchResults(SearchService.java:779)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:466)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:128)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:113)
    at intradoc.server.Service.doCodeEx(Service.java:507)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1353)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1194)
    at intradoc.server.Service.doActions(Service.java:447)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1114)
    at intradoc.server.Service.executeActions(Service.java:433)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
    at intradoc.server.Service.doRequest(Service.java:1707)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)


    Thanks
    Siva
     
  2. Andy_Weaver

    Andy_Weaver Active Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    55
    Location:
    Apple Valley, MN
    Hey Siva,

    I'm assuming you probably fixed this by now but I'll answer anyway.

    When doing a GET_FILE service call, from a portal via CIS or RIDC, or anywhere else, if you don't specify the dID in the request you need to specify the dDocName and the RevisionSelectionMethod.

    RIDC example:
    DataBinder dataBinder = client.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_FILE");
    dataBinder.putLocal ("dDocName", "MY_CONTENT_ITEM");
    dataBinder.putLocal("RevisionSelectionMethod", "LatestReleased");
    ServiceResponse response = client.sendRequest (getUserContext(), dataBinder);

    URL Example:
    http://hostname/webroot/idcplg?IdcS...T_ITEM&RevisionSelectionMethod=LatestReleased

    Hope that helps.
     
  3. sivavp1

    sivavp1 Forum Advisor

    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    100
    Location:
    Bangalore
    The exception is thrown by the getNode() method in the below program... can you please help.. let me know your views in tnis context... Thanks in advance...

    Code (Java):
    import java.util.Iterator;

    import com.bea.content.ContentContext;
    import com.bea.content.Node;
    import com.bea.content.RepositoryException;
    import com.bea.content.expression.ExpressionHelper;
    import com.bea.content.expression.Search;
    import com.bea.content.expression.ExpressionHelper.ParseException;
    import com.bea.content.federated.ContentManagerFactory;
    import com.bea.content.federated.ISearchManager;
    import com.bea.content.paging.ContentListKeys;
    import com.bea.content.paging.ISortableFilterablePagedList;

    public class TestUCMCall {
           [B]public static void  getNode() {[/B]
                Node n = null;
                try {

                    System.out.println("\n START  getNode");   
                    String query = "dDocName == 'XXXXX' && cm_isContent=true";
                    com.bea.p13n.expression.Expression searchExp = com.bea.content.expression.ExpressionHelper
                            .parse(query);

                    Search search = new Search(searchExp);
                    ContentContext ctx = new ContentContext();
                    ctx.setParameter(ContentListKeys.BATCH_LOADING_SIZE_KEY, 1);
                    ISearchManager searchManager = ContentManagerFactory
                            .getSearchManager();
                    ISortableFilterablePagedList<Node> results = searchManager.search(
                            ctx, search);

                    Iterator<Node> i = results.iterator();

                    while (i.hasNext()) {
                        n = i.next();
                        break;
                    }
                    System.out.println("\n END getNode");

                } catch (RepositoryException e) {
                    e.printStackTrace();
                }
                catch (Exception e) {
                    e.printStackTrace();
                }

         [B]   }[/B]
           
           public static ISortableFilterablePagedList<Node> search() {

               System.out.println("\n START  search");
               
               String searchQuery = "dDocType='YYYYY'&& cm_isContent=true";
               
               ISortableFilterablePagedList<Node> nodes = null;
               if (null != searchQuery || "" != searchQuery) {
                   try {
       
                   ISearchManager searchManager = ContentManagerFactory
                           .getSearchManager();
                   Search search = new Search();
       
                   search.setExpression(ExpressionHelper.parse(searchQuery));
       
                   ContentContext cc = new ContentContext();
       
                   cc.setParameter(ContentListKeys.BATCH_LOADING_SIZE_KEY,
                           ContentListKeys.ALL_ITEMS);
       
                   nodes = searchManager.search(cc, search);
                   
                   System.out.println("\n END  search");
       
               } catch (RepositoryException re) {
                   re.printStackTrace();      
               } catch (ParseException pe) {
                   pe.printStackTrace();
               }
           }
           return nodes;
           }       
    }