1 2 Previous Next 16 Replies Latest reply on Apr 11, 2013 1:59 PM by Romain Testu

    service: copy_revision

    Bharath Umesh
      Hi,

      Where do i find information about the service copy_revision?how to use it? i am not able to find it in the service guide.
      Please provide me pointers.

      Thanks in advance.
        • 1. Re: service: copy_revision
          Srinath Menon-Oracle
          Hi ,

          http://jonathanhult.com/blog/2013/04/clone-content-webcenter-content-11g/

          All the details are covered here .

          Thanks,
          Srinath
          • 2. Re: service: copy_revision
            Mohan Basavarajappa
            dont find this service listing in 11g version. can you please mentioned which exact version of UCM it is in and if not available already then how to get it?
            • 3. Re: service: copy_revision
              Jonathan Hult
              What version of WebCenter Content are you on?

              I tested against the latest PS6 11.1.1.7.0. However, I am pretty sure it is also in PS5 11.1.1.6.0 (if not other 11g versions as well).

              https://blogs.oracle.com/webcenteralerts/entry/oracle_webcenter_11g_release_1

              Jonathan
              http://jonathanhult.com
              • 4. Re: service: copy_revision
                Bunty
                I noticed in 11.1.1.6 (the java code was present in 11.1.1.5 as well)

                when you call the service, do you get no service definition found error? (trying calling the service without any parameters)
                • 5. Re: service: copy_revision
                  Mohan Basavarajappa
                  11.1.1.6 is the version in use by me. Can you kindly guide the service URL to be called to invoke the service and what response do we get to ensure that it's working? Kindly let know.
                  yes. we called the service and we got no service definition found error. So thought may be version problem ....
                  In case i'm not passing any parameter then how will copy a revision and create a new one? Doesn't understand this part.

                  Can you mention the location where you found the java code for this in UCM product installation?

                  Edited by: Mohan Basavarajappa on Apr 9, 2013 11:24 AM
                  • 6. Re: service: copy_revision
                    Jonathan Hult
                    Please post the exact error (and stack trace from the Content Server Logs) you are receiving.

                    You should know if it correctly executes because you will be able to find the new content item.

                    The URL to call is in this format: /cs/idcplg?IdcService=COPY_REVISION&dID=2349&dDocName=JH002346&newDocName=JHCLONE002346&xComments=Clone%20of%20JH002346&idcToken=1365430870899:E69AF147E7BF7CB1BBF06F8DB3F2EFF9

                    The actual Java source code is not released by Oracle. The compiled Java classes can be found here: http://jonathanhult.com/blog/2012/12/where-are-the-intradoc-java-classes-located/

                    Jonathan
                    http://jonathanhult.com
                    • 7. Re: service: copy_revision
                      Bunty
                      IdcService=COPY_REVISION
                      (case sensitive)
                      If you are still getting no Service definition found...then the service is not available in your build.

                      the service javacode is present in idcserver.jar(<ECM HOME>/ucm/idc/jlib/)
                      class: DocServiceHandler.class
                      method : prepareCopyRevision

                      use jd-gui tool to decompile jar.

                      Edited by: Bunty on Apr 9, 2013 1:42 PM
                      • 8. Re: service: copy_revision
                        Mohan Basavarajappa
                        is idcToken mandatory parameter to be passed?
                        • 9. Re: service: copy_revision
                          Jonathan Hult
                          Yes, you must pass idcToken unless you have the configuration variable DisableAuthorizationTokenCheck=true.

                          Can you post the exact error/exception you are receiving?

                          Jonathan
                          http://jonathanhult.com
                          • 10. Re: service: copy_revision
                            Mohan Basavarajappa
                            i'm making use of Version:11gR1-11.1.1.6.0-idcprod1-111219T111403 (Build:7.3.3.183)
                            can you please let know which build or version of 11g you're pointing to. Thanks
                            • 11. Re: service: copy_revision
                              Mohan Basavarajappa
                              we're calling the service with the URL format you've mentioned. after entering the URL in browser and calling service it is displaying the blank page. Not getting any error message now.
                              I'm lost on it!

                              Mohan
                              • 12. Re: service: copy_revision
                                Jonathan Hult
                                This blog post may help you find any errors/exceptions: http://senasystems.blogspot.com/2012/10/get-message-make-webcenter-content-11g.html

                                Again, please post any errors/exceptions from the Content Server Logs (Administration -> Logs -> Content Server).

                                Jonathan
                                http://jonathanhult.com
                                • 13. Re: service: copy_revision
                                  Romain Testu
                                  Hi,

                                  Try to put "&isJava=1" at the end of the URL : https://yourserver:yourport/cs/idcplg?IdcService=COPY_REVISION&IsJava=1

                                  You should see an hda file like that :

                                  <?hda version="11gR1-11.1.1.6.0-idcprod1-111219T111403" jcharset="UTF8" encoding="utf-8"?>
                                  @Properties LocalData
                                  IdcService=COPY_REVISION
                                  StatusCode=-32
                                  StatusMessage=Aucun service défini pour COPY_REVISION.
                                  blDateFormat='{ts' ''yyyy-MM-dd HH:mm:ss{.SSS}[Z]'''}'!tAmerica/Montreal
                                  blFieldTypes=StatusMessage message
                                  @end

                                  StatusMessage is the description of your error.
                                  Here, it says that the service "COPY_REVISION" is not defined in my UCM instance (11gR1-11.1.1.6.0-idcprod1-111219T111403 (Build:7.3.3.183))

                                  Romain.

                                  Edited by: Romain Testu on 10 avr. 2013 05:29
                                  • 14. Re: service: copy_revision
                                    Mohan Basavarajappa
                                    please find below the stack trace of the error. we're using 11gR1-11.1.1.6.0-idcprod1-111219T111403 (Build:7.3.3.183)

                                    --------------
                                    No service defined for COPY_REVISION. stack trace [ Details ]
                                    An error has occurred. The stack trace below shows more information.

                                    !$The request was not processed by the Service handler because of a protocol error.<br>The request headers parsed from the request are:<br>{IsServletRequest=1\, HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)\, SERVER_PROTOCOL_TYPE=NONE\, HTTP_ACCEPT_LANGUAGE=en-US\, HTTP_ACCEPT=*/*\, IDCCOOKIEPATH=\, HTTP_ACCEPT_ENCODING=gzip\, deflate\, SERVER_NAME=myservername01\, SERVER_SOFTWARE=WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 Oracle WebLogic Server Module Dependencies 10.3 Thu Mar 3 14:37:52 PST 2011 Oracle WebLogic Server on JRockit Virtual Edition Module Dependencies 10.3 Thu Feb 3 16:30:47 EST 2011 Oracle WebLogic Server 10.3.4.0 at 710154 built on: 2010/09/30 Oracle WebLogic Server 10.3.4.0 at 710154 built on: 2010/09/30 Oracle WebLogic Server Datatier 10.3.4.0 at 710154 built on: 2010/09/30 Oracle WebLogic Server 10.3.4.0 at 710154 built on: 2010/09/30 WebLogic SIPServer Extension API 10.3.4.0 at 709997 built on 2010/09/27 WebLogic SIPServer Extension API 10.3.4 at 709997 built on 2010/09/27 WebLogic SIPServer CallState 10.3.4 at 709997 built on 2010/09/27 \, URI_PATH=/cs/idcplg\, IDCSESSIONKEY=JSESSIONID\, HTTP_COOKIE=IdcLocale=English-US; IntradocAuth=Internet; JSESSIONID=RQmGRmGGfXxjLKY9Q2wTVMTcPd1hN1gqTYbw1ZLPd9ZVJclZpLy5\!1497933405; IdcTimeZone=Asia/Dubai; IntradocLoginState=1\, SERVER_PROTOCOL=HTTP\, REQUEST_METHOD=GET\, RemoteClientHostAddress=10.22.420.36\, SERVER_PORT=16200\, REMOTE_ADDR=10.76.191.86\, IdcAuthChallengeType=http\, IS_HTTPS=0\, HTTP_HOST=punsezsiorcucm01:16200\, HTTP_CONNECTION=Keep-Alive\, EXTERNAL_ACCOUNTS=#all\, REMOTE_USER=orcucmrm\, IsCookieLoggedIn=1\, EXTERNAL_ROLES=admin\,sysmanager\,refineryadmin\,rmaadmin\,pcmadmin\,ermadmin\, QUERY_STRING=IdcService=COPY_REVISION&dID=4402&dDocName=PUNSEZSIORCUCM004802&newDocName=JHCLONE002346&xComments=Clone%20of%20JH002346&idcToken=1365430870899:E69AF147E7BF7CB1BBF06F8DB3F2EFF9\, IDC_REQUEST_AGENT=webserver\, ThreadCount=1}<br>--------------<br>No service defined for COPY_REVISION.!$stack trace     
                                    !$stack trace     
                                         at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:85)
                                         at intradoc.common.Log.addMessage(Log.java:279)
                                         at intradoc.common.DefaultReportHandler.message(DefaultReportHandler.java:508)
                                         at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:140)
                                         at intradoc.common.Report.messageInternal(Report.java:172)
                                         at intradoc.common.Report.message(Report.java:145)
                                         at intradoc.common.Report.error(Report.java:408)
                                         at intradoc.server.ServiceManager.onError(ServiceManager.java:750)
                                         at intradoc.server.ServiceManager.processCommand(ServiceManager.java:375)
                                         at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
                                         at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1354)
                                         at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1731)
                                         at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
                                         at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
                                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                         at java.lang.reflect.Method.invoke(Method.java:597)
                                         at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
                                         at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
                                         at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
                                         at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1704)
                                         at idcservlet.IdcFilter.doFilter(IdcFilter.java:457)
                                         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
                                         at java.security.AccessController.doPrivileged(Native Method)
                                         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
                                         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
                                         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
                                         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
                                         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
                                         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
                                         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
                                         at java.security.AccessController.doPrivileged(Native Method)
                                         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
                                         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
                                         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
                                         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
                                         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
                                         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
                                         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
                                         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                                         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
                                         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
                                         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
                                         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
                                         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
                                         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

                                    I tried to look into the class file contents of DocServiceHandler (via eclipse) and it has a method mentioned. Not sure why it is failing.

                                    // Method descriptor #1068 ()V
                                    // Stack: 5, Locals: 12
                                    @intradoc.server.IdcServiceAction
                                    public void prepareCopyRevision() throws intradoc.common.ServiceException, intradoc.data.DataException;
                                    0 aload_0 [this]
                                    1 getfield intradoc.server.DocServiceHandler.m_currentAction : intradoc.server.Action [107]
                                    4 iconst_0
                                    1 2 Previous Next