11 Replies Latest reply: Dec 8, 2011 12:29 PM by user177113 RSS

    ridc / invalid credentials

    pradeep.mahajan
      im running a sample ridc client:

      ........
                manager = new IdcClientManager();
                
                idcClient = manager.createClient("idc://localhost:4444");
                idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
                idcClient.getConfig().setConnectionSize(20); // 20 connections
                userPasswordContext = new IdcContext("weblogic","weblogic1");
                DataBinder binder = idcClient.createBinder();
                binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
                binder.putLocal ("QueryText", "test");
                binder.putLocal ("ResultCount", "20");
                     response = idcClient.sendRequest(new IdcContext("weblogic"), binder);
      //               response = idcClient.sendRequest(userPasswordContext, binder);
                serverBinder = response.getResponseAsBinder();
                resultSet = serverBinder.getResultSet("SearchResults");
      .......

      Im getting this following error:
      oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Connection authorization failed. Invalid credentials.
           at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:135)
           at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:107)
           at com.myapp.sampleapp.TestClient.main(TestClient.java:56)

      my "weblogic" password for content server is correct, ive tried with other content server user ids as well. same error.
      whatz wrong????
      im using webcenter -content 11.1.1.5
        • 1. Re: ridc / invalid credentials
          Srinath Menon-Oracle
          Hi

          Is your JPS provider showing status as good or down ?

          That could be 1 reason for this case .

          If so then stop UCM server , start WLS admin server , start UCM server and then test to see if the issue still persists .

          Thanks
          Srinath
          • 2. Re: ridc / invalid credentials
            pradeep.mahajan
            thx for the update Srinath.
            Im unable to check the JPS status. where do i do that? on the wls admin console? or em console?

            also, this is what im getting in the server log, post server restarts and executing the code:

            <Nov 29, 2011 11:34:20 AM GMT+05:30> <Error> <oracle.ucm.idccs> <UCM-CS-060003> <Event generated by user 'weblogic' at host 'CIS'.>
            <Nov 29, 2011 11:34:20 AM GMT+05:30> <Error> <oracle.ucm.idccs> <UCM-CS-000001> <general exception intradoc.common.ServiceException: !csUnableToRetrieveSearchResults
            at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
            at intradoc.server.Service.buildServiceException(Service.java:2260)
            at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
            at intradoc.server.Service.createServiceException(Service.java:2249)
            at intradoc.server.ServiceSecurityImplementor.validateRemoteClientConnectionPrivilege(ServiceSecurityImplementor.java:712)
            at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(ServiceSecurityImplementor.java:232)
            at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(UploadSecurityImplementor.java:57)
            at intradoc.server.Service.globalSecurityCheck(Service.java:2671)
            at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:678)
            at intradoc.server.Service.doRequest(Service.java:1890)
            at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
            at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
            at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
            Caused By: intradoc.common.ServiceException: !csConnectionAuthFailed
            at intradoc.provider.ProxyConnectionUtils.getRemotePassword(ProxyConnectionUtils.java:262)
            at intradoc.provider.ProxyConnectionUtils.incomingProxyAuth(ProxyConnectionUtils.java:241)
            at intradoc.provider.SocketIncomingConnection.getAndCheckConnectionProperties(SocketIncomingConnection.java:255)
            at intradoc.provider.SocketIncomingConnection.checkRequestAllowed(SocketIncomingConnection.java:163)
            at intradoc.server.ServiceSecurityImplementor.validateRemoteClientConnectionPrivilege(ServiceSecurityImplementor.java:708)
            at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(ServiceSecurityImplementor.java:232)
            at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(UploadSecurityImplementor.java:57)
            at intradoc.server.Service.globalSecurityCheck(Service.java:2671)
            at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:678)
            at intradoc.server.Service.doRequest(Service.java:1890)
            at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
            at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
            at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

            any further pointers? thx in advance.

            Edited by: pradeep.mahajan on Nov 28, 2011 10:08 PM
            • 3. Re: ridc / invalid credentials
              Srinath Menon-Oracle
              Hi

              JPS provider is checked from UCM Console - Administration - Providers - JPS Provider .

              New error says that the search is failing . Are you able to do search from UCM directly ?

              Thanks
              Srinath
              • 4. Re: ridc / invalid credentials
                pradeep.mahajan
                ok, my jps provider is "good".

                and the error is same old one,
                Caused By: intradoc.common.ServiceException: !csConnectionAuthFailed
                its there in the middle of the search failed error stack.

                and yes, im able to search docs from ucm ui directly.

                also, this is my jpsprovider details:

                Provider Name: JpsUserProvider
                Provider Description: Default JPS User Provider
                Connection State: good
                Last Activity Date: 11/28/11 8:47 PM
                --------------------------------------------------------------------------------
                Provider Type: jpsuser
                Provider Class: idc.provider.jps.JpsUserProvider
                Provider Connection:
                --------------------------------------------------------------------------------
                Source Path: jpsuser
                JPS Context:
                Attribute Map:
                Role Prefix:
                Default Network Roles: guest
                Filter Groups: No
                Use Full Group Name: No

                anything missing?
                • 5. Re: ridc / invalid credentials
                  Srinath Menon-Oracle
                  Hi

                  On the Provider you will see the Test option . Select that and see if the status still shows as good ?


                  public static void main(String[] args) {
                  // Create a new IdcClientManager
                  IdcClientManager manager = new IdcClientManager ();
                  try{
                  // Create a new IdcClient Connection using idc protocol (i.e. socket connection to Content Server)
                  //IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport");

                  //for using the web connection - start
                  IdcClient idcClient = manager.createClient("http://hostname:webport/cs/idcplg");
                  IdcContext userContext = new IdcContext("weblogic", "welcome1");
                  //for using web connection - end

                  // Create new context using the 'sysadmin' user
                  // IdcContext userContext = new IdcContext ("sysadmin");




                  Code snippet for RIDC (connection initialization only) and in both the intradoc mode as well as web mode .

                  Check your code once and re-do it in this format and see how it works .

                  Thanks
                  Srinath

                  Edited by: Srinath Menon on Nov 29, 2011 1:54 PM

                  Edited by: Srinath Menon on Nov 29, 2011 5:27 PM
                  • 6. Re: ridc / invalid credentials
                    pradeep.mahajan
                    ok great, this works now with the http change suggested by you.
                    although im getting a db query error, its adding an extra "AND(())" at the query end while executing, but that ill figure out.

                    so, whatz wrong with "idc://localhost:4444" ?
                    (and yeah, the test option for jpsprovider, still holds "good".)

                    Edited by: pradeep.mahajan on Nov 29, 2011 1:54 AM
                    • 7. Re: ridc / invalid credentials
                      Srinath Menon-Oracle
                      Hi

                      Can you check to see if the IntradocServerPort variable is defined in UCM config.cfg ? It is under <domain_home>/ucm/cs/config directory .

                      If not then define the variable there and set the port to any value (that is not used by any other process) for eg 4445 . Save the file,restart the ucm server and then change the RIDC to socket connection and then test to see if the issue still persists.

                      Thanks
                      Srinath
                      • 8. Re: ridc / invalid credentials
                        pradeep.mahajan
                        well, the IntradocServerPort was already there with 4444 port, changed it to 4445 and tried, but same authentication error again.
                        any other thoughts?
                        • 9. Re: ridc / invalid credentials
                          Srinath Menon-Oracle
                          Hi

                          For the intradoc connection use the user name as sysadmin instead of weblogic and then test the code .

                          Search related problem is because of :

                          dataBinder.putLocal("QueryText","dDocTitle <substring> `test`");

                          Put this instead of the existing one for query text parameter .

                          Save and test again.

                          Thanks
                          Srinath

                          Edited by: Srinath Menon on Nov 30, 2011 12:32 PM

                          Edited by: Srinath Menon on Nov 30, 2011 6:45 PM
                          • 10. Re: ridc / invalid credentials
                            pradeep.mahajan
                            still no luck mate with the idc execution,
                            i created a local user in ucm with admin access, but still getting the same authentication erorr.
                            not sure what is messed up.

                            So, what impact does it have if i use the http url instead of the idc one?

                            also, the search worked fine for the resolution that u gave.
                            thx.
                            • 11. Re: ridc / invalid credentials
                              user177113
                              good to know :
                              Search related problem is because of :

                              dataBinder.putLocal("QueryText","dDocTitle <substring> `test`");



                              thank you !