org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2)

Kuali JIRA | Weldon Sams | 4 years ago
  1. 0

    I'm seeing this exception in the logs for various documents. I'm creating new documents from the desktop, routing and approving. Somewhere after being copied this happens. See the attached full log. {noformat} INFO [pool-13-thread-1] (AbstractFieldMapper.java:55) - Mapping SimpleFieldMapper (valuesList) DEBUG [pool-13-thread-1] (SearchUtils.java:282) - [solrFieldEntry(key,value)=(chickenId,5), solrFieldEntry(key,value)=(documentId,5), solrFieldEntry(key,value)=(branchId,2), solrFieldEntry(key,value)=(lastSvnRevisionId,104), solrFieldEntry(key,value)=(createDate,2012-10-31 09:59:17.0), solrFieldEntry(key,value)=(lastModifiedDate,2012-10-31 10:06:47.0), solrFieldEntry(key,value)=(folderPath,/gr), solrFieldEntry(key,value)=(fileName,grandson), solrFieldEntry(key,value)=(fileTypeCode,ditamap)] DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:532) - debug-publish: Document /live/gr/grandson.dita made it to maybePublishingCallback. DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:1810) - debug-publish: maybePublishingCallback on /live/gr/grandson.dita DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:1835) - debug-publish: RevisionDocument=/trunk/gr/grandson.dita PassedInKmsDoc=/live/gr/grandson.dita DEBUG [pool-13-thread-1] (KmsRendererService.java:1125) - debug-publish: Just set a publish date from /trunk/gr/grandson.dita (10/31/2012 10:05 AM) on /live/gr/grandson.dita (10/31/2012 10:05 AM) DEBUG [pool-13-thread-1] (KmsDocumentService.java:577) - Preparing to auto-approve batch of documents. DEBUG [pool-13-thread-1] (KmsDocumentService.java:581) - debug-publish: Auto-approving document=/live/gr/grandson.dita INFO [pool-13-thread-1] (KmsDocumentService.java:643) - Attempting to approve kmsDocument.doc_id = 9 DEBUG [pool-13-thread-1] (KmsDocumentService.java:452) - Attempting to auto approve docId = 9, branchId = 2 as user = wsams DEBUG [pool-13-thread-1] (KmsDocumentService.java:461) - Retrieving lastKmsDocumentRevisionId = 8470 for docId = 9, branchId = 2 a DEBUG [pool-13-thread-1] (KmsDocumentService.java:484) - Retrieving KualiWorkflwoDocument for lastKmsDocumentRevisionId = 8470 DEBUG [pool-13-thread-1] (KmsDocumentService.java:415) - check if document is enroute; routeStatus = F DEBUG [pool-13-thread-1] (KmsDocumentService.java:424) - check if document is enroute; routeStatus = F ERROR [pool-13-thread-1] (BatchUtils.java:272) - org.kuali.kits.kms.repository.BatchException [FAILURE] {branch:2; document:9} live/gr/grandson.dita : org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument(KmsDocumentService.java:568) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:675) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:596) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:584) at org.kuali.kits.kms.repository.RepositoryPollerTask.callAutoApprove(RepositoryPollerTask.java:1735) at org.kuali.kits.kms.repository.RepositoryPollerTask.maybePublishingCallback(RepositoryPollerTask.java:1852) at org.kuali.kits.kms.repository.RepositoryPollerTask.finishUpModify(RepositoryPollerTask.java:534) at org.kuali.kits.kms.repository.RepositoryPollerTask.processLogEntry(RepositoryPollerTask.java:990) at org.kuali.kits.kms.repository.RepositoryPollerTask.performRun(RepositoryPollerTask.java:1248) at org.kuali.kits.kms.repository.RepositoryPollerTask.run(RepositoryPollerTask.java:1332) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument(KmsDocumentService.java:558) ... 17 more {noformat}

    Kuali JIRA | 4 years ago | Weldon Sams
    org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2)
  2. 0

    I'm seeing this exception in the logs for various documents. I'm creating new documents from the desktop, routing and approving. Somewhere after being copied this happens. See the attached full log. {noformat} INFO [pool-13-thread-1] (AbstractFieldMapper.java:55) - Mapping SimpleFieldMapper (valuesList) DEBUG [pool-13-thread-1] (SearchUtils.java:282) - [solrFieldEntry(key,value)=(chickenId,5), solrFieldEntry(key,value)=(documentId,5), solrFieldEntry(key,value)=(branchId,2), solrFieldEntry(key,value)=(lastSvnRevisionId,104), solrFieldEntry(key,value)=(createDate,2012-10-31 09:59:17.0), solrFieldEntry(key,value)=(lastModifiedDate,2012-10-31 10:06:47.0), solrFieldEntry(key,value)=(folderPath,/gr), solrFieldEntry(key,value)=(fileName,grandson), solrFieldEntry(key,value)=(fileTypeCode,ditamap)] DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:532) - debug-publish: Document /live/gr/grandson.dita made it to maybePublishingCallback. DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:1810) - debug-publish: maybePublishingCallback on /live/gr/grandson.dita DEBUG [pool-13-thread-1] (RepositoryPollerTask.java:1835) - debug-publish: RevisionDocument=/trunk/gr/grandson.dita PassedInKmsDoc=/live/gr/grandson.dita DEBUG [pool-13-thread-1] (KmsRendererService.java:1125) - debug-publish: Just set a publish date from /trunk/gr/grandson.dita (10/31/2012 10:05 AM) on /live/gr/grandson.dita (10/31/2012 10:05 AM) DEBUG [pool-13-thread-1] (KmsDocumentService.java:577) - Preparing to auto-approve batch of documents. DEBUG [pool-13-thread-1] (KmsDocumentService.java:581) - debug-publish: Auto-approving document=/live/gr/grandson.dita INFO [pool-13-thread-1] (KmsDocumentService.java:643) - Attempting to approve kmsDocument.doc_id = 9 DEBUG [pool-13-thread-1] (KmsDocumentService.java:452) - Attempting to auto approve docId = 9, branchId = 2 as user = wsams DEBUG [pool-13-thread-1] (KmsDocumentService.java:461) - Retrieving lastKmsDocumentRevisionId = 8470 for docId = 9, branchId = 2 a DEBUG [pool-13-thread-1] (KmsDocumentService.java:484) - Retrieving KualiWorkflwoDocument for lastKmsDocumentRevisionId = 8470 DEBUG [pool-13-thread-1] (KmsDocumentService.java:415) - check if document is enroute; routeStatus = F DEBUG [pool-13-thread-1] (KmsDocumentService.java:424) - check if document is enroute; routeStatus = F ERROR [pool-13-thread-1] (BatchUtils.java:272) - org.kuali.kits.kms.repository.BatchException [FAILURE] {branch:2; document:9} live/gr/grandson.dita : org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument(KmsDocumentService.java:568) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:675) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:596) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:584) at org.kuali.kits.kms.repository.RepositoryPollerTask.callAutoApprove(RepositoryPollerTask.java:1735) at org.kuali.kits.kms.repository.RepositoryPollerTask.maybePublishingCallback(RepositoryPollerTask.java:1852) at org.kuali.kits.kms.repository.RepositoryPollerTask.finishUpModify(RepositoryPollerTask.java:534) at org.kuali.kits.kms.repository.RepositoryPollerTask.processLogEntry(RepositoryPollerTask.java:990) at org.kuali.kits.kms.repository.RepositoryPollerTask.performRun(RepositoryPollerTask.java:1248) at org.kuali.kits.kms.repository.RepositoryPollerTask.run(RepositoryPollerTask.java:1332) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2) at org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument(KmsDocumentService.java:558) ... 17 more {noformat}

    Kuali JIRA | 4 years ago | Weldon Sams
    org.kuali.kits.kms.document.KmsDocumentServiceException: org.kuali.kits.kms.document.KmsDocumentServiceException: Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2)

    Root Cause Analysis

    1. org.kuali.kits.kms.document.KmsDocumentServiceException

      Content revision request must be Initiated, Saved or Enroute...to approve; kmsDocument.lastKmsDocumentRevisionId = 8470 (kmsDocument.documentId = 9, branchId = 2)

      at org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument()
    2. org.kuali.kits
      RepositoryPollerTask.run
      1. org.kuali.kits.kms.document.KmsDocumentService.autoApproveKmsDocument(KmsDocumentService.java:558)
      2. org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:675)
      3. org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:596)
      4. org.kuali.kits.kms.document.KmsDocumentService.autoApproveDocuments(KmsDocumentService.java:584)
      5. org.kuali.kits.kms.repository.RepositoryPollerTask.callAutoApprove(RepositoryPollerTask.java:1735)
      6. org.kuali.kits.kms.repository.RepositoryPollerTask.maybePublishingCallback(RepositoryPollerTask.java:1852)
      7. org.kuali.kits.kms.repository.RepositoryPollerTask.finishUpModify(RepositoryPollerTask.java:534)
      8. org.kuali.kits.kms.repository.RepositoryPollerTask.processLogEntry(RepositoryPollerTask.java:990)
      9. org.kuali.kits.kms.repository.RepositoryPollerTask.performRun(RepositoryPollerTask.java:1248)
      10. org.kuali.kits.kms.repository.RepositoryPollerTask.run(RepositoryPollerTask.java:1332)
      10 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      8. java.lang.Thread.run(Thread.java:679)
      8 frames