1 2 3 Previous Next 43 Replies Latest reply on May 30, 2008 9:40 PM by 666705

    Error in PortalObjectsFactory.CreateSession: Init has not been called.

    3004
      I have some very simple PRC code that used to work in 5.0 but is failing miserably in G6.

      Here is the code:

      IPortletContext portletContext = PortletContextFactory.createPortletContext(request, response);
      IRemoteSession prcSession = portletContext.getRemotePortalSession();
      IObjectManager om = prcSession.getObjectManager(ObjectClass.Job);
      IObjectQuery query = om.queryObjects();

      Here is the exception I'm getting:

      nested exception is: java.rmi.RemoteException: Error in PortalObjectsFactory.CreateSession: Init has not been called. You must successfully call Init before calling CreateSession
      com.plumtree.remote.prc.PortalException: null; nested exception is: java.rmi.RemoteException: Error in PortalObjectsFactory.CreateSession: Init has not been called. You must successfully call Init before calling CreateSession at com.plumtree.remote.prc.ObjectManagerWrapper.queryObjects(ObjectManagerWrapper.java:137)

      Anyone seen this problem before? Any suggestions on how to fix it?

      Thanks,

      Chris Bucchere | bdg | chris@bdg-online.com | www.bdg-online.com
        1 2 3 Previous Next