org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved.

Kuali JIRA | Mike Riley | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After a CRUD *Save* attempt fails the first time when initiating a new content request(e.g. due to a empty "description" validation error), subsequent *Save* attempts will generate the below error/exception. My guess is that performReloading(...) is happening at some point before the newly initiated document is first persisted, and therefore fails since a non-persisted document obviously can't be reloaded. ******************Stack Trace-Only shown when not in production***************** org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved. at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:327) at org.kuali.kits.kms.web.KmsDocumentAction.loadDocument(KmsDocumentAction.java:241) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:291) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.reload(KualiDocumentActionBase.java:506) at org.kuali.kits.kms.web.KmsDocumentAction.performReloading(KmsDocumentAction.java:402) at org.kuali.kits.kms.web.KmsDocumentAction.save(KmsDocumentAction.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.struts.actions.DispatchAction.dispatchMetho

    Kuali JIRA | 5 years ago | Mike Riley
    org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved.
  2. 0

    After a CRUD *Save* attempt fails the first time when initiating a new content request(e.g. due to a empty "description" validation error), subsequent *Save* attempts will generate the below error/exception. My guess is that performReloading(...) is happening at some point before the newly initiated document is first persisted, and therefore fails since a non-persisted document obviously can't be reloaded. ******************Stack Trace-Only shown when not in production***************** org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved. at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:327) at org.kuali.kits.kms.web.KmsDocumentAction.loadDocument(KmsDocumentAction.java:241) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:291) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.reload(KualiDocumentActionBase.java:506) at org.kuali.kits.kms.web.KmsDocumentAction.performReloading(KmsDocumentAction.java:402) at org.kuali.kits.kms.web.KmsDocumentAction.save(KmsDocumentAction.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.struts.actions.DispatchAction.dispatchMetho

    Kuali JIRA | 5 years ago | Mike Riley
    org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved.
  3. 0

    Using the built-in Kuali "doc search" button to look for old content revisions or worklists, I put in, e.g., WorklistType as the Type and jorahood as the initiator. I get back a list of matching files. If I choose one of the older ones (e.g., document/notification id 38332) I get a stack trace that says that the doc doesn't exist anymore. I think if it doesn't exist it shouldn't be returned in the search: ******************Stack Trace-Only shown when not in production***************** org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved. at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:327) at org.kuali.kits.kms.worklist.WorkListAction.loadDocument(WorkListAction.java:1052) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270) at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:172) at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:123) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.execute(KualiDocumentActionBase.java:118) at org.kuali.kits.kms.worklist.WorkListAction.execute(WorkListAction.java:133) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:503) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:499) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:101) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:273) at edu.iu.uis.cas.filter.CASFilter.redirectOrForwardChain(CASFilter.java:410) at edu.iu.uis.cas.filter.CASFilter.doFilterUnsynchronized(CASFilter.java:336) at edu.iu.uis.cas.filter.CASFilter.doFilter(CASFilter.java:315) at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:266) at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kns.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:219) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:333) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Kuali JIRA | 5 years ago | Andy Orahood
    org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Using the built-in Kuali "doc search" button to look for old content revisions or worklists, I put in, e.g., WorklistType as the Type and jorahood as the initiator. I get back a list of matching files. If I choose one of the older ones (e.g., document/notification id 38332) I get a stack trace that says that the doc doesn't exist anymore. I think if it doesn't exist it shouldn't be returned in the search: ******************Stack Trace-Only shown when not in production***************** org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved. at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:327) at org.kuali.kits.kms.worklist.WorkListAction.loadDocument(WorkListAction.java:1052) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270) at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:172) at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:123) at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.execute(KualiDocumentActionBase.java:118) at org.kuali.kits.kms.worklist.WorkListAction.execute(WorkListAction.java:133) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:503) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:499) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:101) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:273) at edu.iu.uis.cas.filter.CASFilter.redirectOrForwardChain(CASFilter.java:410) at edu.iu.uis.cas.filter.CASFilter.doFilterUnsynchronized(CASFilter.java:336) at edu.iu.uis.cas.filter.CASFilter.doFilter(CASFilter.java:315) at org.kuali.rice.kew.web.BootstrapFilterChain.doFilter(BootstrapFilter.java:266) at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.kuali.rice.kns.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:219) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:333) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Kuali JIRA | 5 years ago | Andy Orahood
    org.kuali.rice.kns.exception.UnknownDocumentIdException: Document no longer exists. It may have been cancelled before being saved.

    Root Cause Analysis

    1. org.kuali.rice.kns.exception.UnknownDocumentIdException

      Document no longer exists. It may have been cancelled before being saved.

      at org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument()
    2. org.kuali.rice
      KualiDocumentActionBase.loadDocument
      1. org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.loadDocument(KualiDocumentActionBase.java:327)
      1 frame
    3. org.kuali.kits
      KmsDocumentAction.loadDocument
      1. org.kuali.kits.kms.web.KmsDocumentAction.loadDocument(KmsDocumentAction.java:241)
      1 frame
    4. org.kuali.rice
      KualiDocumentActionBase.reload
      1. org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.docHandler(KualiDocumentActionBase.java:291)
      2. org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase.reload(KualiDocumentActionBase.java:506)
      2 frames
    5. org.kuali.kits
      KmsDocumentAction.save
      1. org.kuali.kits.kms.web.KmsDocumentAction.performReloading(KmsDocumentAction.java:402)
      2. org.kuali.kits.kms.web.KmsDocumentAction.save(KmsDocumentAction.java:427)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames