7 Replies Latest reply: Apr 21, 2012 10:26 AM by 415540 RSS

    RIDC CHECKIN_UNIVERSAL not successfully checked in

    415540
      Hi,

      I am using RIDC to access the UCM and Check-out/check-in an existing document.

      Every thing is ok when checkout the document and access the stream of data to do the needed processing.

      But when trying to Checkin the document (back) I have this exception from the server:
      UCMException: Content item 'EMC16200000001' was not successfully checked in. The content item already exists in the system.

      Normaly when using CHECKIN_UNIVERSAL service it will create a new version of the document if exist. what I am doing wrong?

      Thanks
      Jamil

      DataBinder binder = this.idcClient.createBinder();
      binder.putLocal("IdcService", "CHECKIN_UNIVERSAL");

      binder.putLocal("dDocTitle", documentTitle);
      binder.putLocal("dDocType", documentType);
      binder.putLocal("dSecurityGroup", securityGroup);
      try {
      binder.addFile("primaryFile", new TransferFile(primaryFile, documentFileName,
      primaryFile.available()));
      } catch (IOException e) {
      throw new UCMException("Primary File Error: " + e.getMessage());
      }
      if (customMetadata != null) {
      for (String s : customMetadata.keySet()) {
      if (!s.equals("dDocTitle") && !s.equals("dSecurityGroup") &&
      !s.equals("dDocType")) {
      binder.putLocal(s, String.valueOf(customMetadata.get(s)));
      }
      }
      }
      try {
      return this.idcClient.sendRequest(this.userContext, binder);
      } catch (IdcClientException e) {
      throw new UCMException("Couldn't Send Request due to " + e.getMessage());
      }
        • 1. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
          ryan sullivan2
          You must check out before you check in.

          checkin universal will determine if it's a net-new content item, or if the check in requires a new revision. But, you still must check out the content item, if it exists.

          -ryan
          • 2. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
            415540
            I did checkout and I can verify the file from the console that it is checked out.

            Anything other to verify? Or any other parameter to set?

            Thanks

            Jamil
            • 3. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
              ryan sullivan2
              Are you using folders? You cannot have the same filename in the same OS directory twice.

              Can you post the entire error? Usually the specific issue is within the error itself.

              -ryan
              • 4. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
                415540
                Ryan,

                No folders...

                I hope you can find the cause in the full exception log below

                The scenario of my RIDC code is the following:

                - Find a file which is a PDF file (EMC16200000001)
                - Checkout the file (EMC16200000001)
                - get the stream of the file (EMC16200000001)
                - Do a special treatment on the file
                - Fill the parameter "Primary File" with the new InputStream
                - Checkin the file
                - undo checkout

                The following 2 screen-shots can help

                [Checkin-1|https://lh4.googleusercontent.com/-aaI8ASYJrS0/T49UhCCnJwI/AAAAAAAADvE/kkXNB-3GZRA/s902/2012-04-18]
                [checkin-2|https://lh5.googleusercontent.com/-gAeNbRUaR4k/T49UlGUzhlI/AAAAAAAADvc/nGJqghLm9Yo/s901/2012-04-18]

                Thanks
                Jamil


                <Apr 17, 2012 12:59:28 AM PDT> <Error> <oracle.ucm.idccs> <UCM-CS-060003> <Event generated by user 'jamilnour' at host 'CIS'.>
                <Apr 17, 2012 12:59:28 AM PDT> <Error> <oracle.ucm.idccs> <UCM-CS-000001> <general exception
                intradoc.common.ServiceException: !csUnableToCheckIn,EMC16200000001!csCheckinItemExists
                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.ArchiveCheckinHandler.determineCheckin(Handler.java:111)
                at sun.reflect.GeneratedMethodAccessor1324.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
                at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
                at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
                at intradoc.server.Service.doCodeEx(Service.java:533)
                at collections.CollectionUserHandler.determineCheckin(CollectionUserHandler.java:1383)
                at sun.reflect.GeneratedMethodAccessor1323.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
                at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
                at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
                at intradoc.server.Service.doCodeEx(Service.java:533)
                at intradoc.server.Service.doCode(Service.java:505)
                at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
                at intradoc.server.Service.doAction(Service.java:477)
                at intradoc.server.Service.doScriptableAction(Service.java:3807)
                at sun.reflect.GeneratedMethodAccessor1322.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
                at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
                at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
                at intradoc.server.Service.doCodeEx(Service.java:550)
                at intradoc.server.Service.doCode(Service.java:505)
                at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
                at intradoc.server.Service.doAction(Service.java:477)
                at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
                at intradoc.server.Service.doActions(Service.java:472)
                at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
                at intradoc.server.Service.executeActions(Service.java:458)
                at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
                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)
                >
                • 5. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
                  Jonathan Hult
                  Are you putting dDocName in the binder?

                  Jonathan
                  http://redstonecontentsolutions.com
                  http://corecontentonly.com
                  • 6. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
                    ryan sullivan2
                    Can you check the logs on the UCM side as well? They might have some additional information.

                    If you're supplying the required info for the service call, have the item checked out, using checkin_universal, not using folders (avoiding the potential filename conflict in the same path), then it should work.

                    I would start by going through a simple example with hardcoded values to make sure you have control over what you're passing through.

                    -ryan
                    • 7. Re: RIDC CHECKIN_UNIVERSAL not successfully checked in
                      415540
                      Hi,

                      Is the log below from the server can help?

                      I did a full debug and this is (image) the variable binder before calling the service:
                      idcClient.sendRequest(this.userContext, binder);

                      https://lh6.googleusercontent.com/-KvH01M71eL8/T5LPh6jzH6I/AAAAAAAADyw/NUyfLidteNI/s670/binder.png

                      anything wrong?

                      Jamil

                      [2012-04-21T01:10:53.469-07:00] [UCM_server1] [ERROR] [UCM-CS-060003] [oracle.ucm.idccs] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: d0f2b04dd49b4cd5:62720030:136b7080957:-8000-0000000000002793,0] [APP: Oracle Universal Content Management - Content Server] Event generated by user 'jamilnour' at host 'CIS'.
                      [2012-04-21T01:10:53.547-07:00] [UCM_server1] [ERROR] [UCM-CS-000001] [oracle.ucm.idccs] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <WLS Kernel>] [ecid: d0f2b04dd49b4cd5:62720030:136b7080957:-8000-0000000000002793,0] [APP: Oracle Universal Content Management - Content Server] general exception[[
                      intradoc.common.ServiceException: !csUnableToCheckIn,EMC16200000001!csCheckinItemExists
                      *ScriptStack CHECKIN_UNIVERSAL
                      3:doScriptableAction,dDocName=EMC162000000013:determineCheckin,dDocName=EMC16200000001
                      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.ArchiveCheckinHandler.determineCheckin(ArchiveCheckinHandler.java:111)
                      at sun.reflect.GeneratedMethodAccessor1324.invoke(Unknown Source)

                      Edited by: Jamil Nour on Apr 21, 2012 8:21 AM