java.io.IOException: The document has no pages.

Kuali JIRA | Bryan Hutchinson | 3 years ago
  1. 0

    If Dunning Letter pdfs cannot be created (perform Dunning Letter Distribution Lookup, select one or more documents to send Dunning Letters for, click Return Selected, and click Create), an Incident Report screen is shown to the user with the stacktrace shown below. In the case of my local environment this happened because I hadn't uploaded the Dunning Letter Template pdfs which should happen rarely to never in a production environment. I'm not sure if there are other ways this could occur, and it's not extremely straightforward to avoid, but it should be possible. We could generate a PDF with an error message or display a message to the user that the Dunning Letter Templates couldn't be generated or possible something else. stacktrace: {noformat} [java] 2014-05-13 08:59:45,746 [http-8080-3] u:sweitzer/d: ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler :: Exception being handled by Exception Handler [java] ExceptionConverter: java.io.IOException: The document has no pages. [java] at com.lowagie.text.pdf.PdfPages.writePageTree(PdfPages.java:118) [java] at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1303) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:351) [java] at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.closeIt(PdfCopyFieldsImp.java:409) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:356) [java] at com.lowagie.text.pdf.PdfCopyFields.close(PdfCopyFields.java:154) [java] at org.kuali.kfs.module.ar.web.struts.DunningLetterDistributionSummaryAction.sendDunningLetters(DunningLetterDistributionSummaryAction.java:124) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) [java] at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:171) [java] at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:129) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:496) [java] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:492) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:221) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:208) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:95) [java] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [java] at org.kuali.rice.kns.web.struts.action.KualiActionServlet.process(KualiActionServlet.java:198) [java] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.kfs.sys.web.filter.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:45) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:78) [java] at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:62) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89) [java] at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:162) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter.doFilter(DevelopmentLoginFilter.java:66) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202) [java] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [java] at java.lang.Thread.run(Thread.java:744) {noformat}

    Kuali JIRA | 3 years ago | Bryan Hutchinson
    java.io.IOException: The document has no pages.
  2. 0

    If Dunning Letter pdfs cannot be created (perform Dunning Letter Distribution Lookup, select one or more documents to send Dunning Letters for, click Return Selected, and click Create), an Incident Report screen is shown to the user with the stacktrace shown below. In the case of my local environment this happened because I hadn't uploaded the Dunning Letter Template pdfs which should happen rarely to never in a production environment. I'm not sure if there are other ways this could occur, and it's not extremely straightforward to avoid, but it should be possible. We could generate a PDF with an error message or display a message to the user that the Dunning Letter Templates couldn't be generated or possible something else. stacktrace: {noformat} [java] 2014-05-13 08:59:45,746 [http-8080-3] u:sweitzer/d: ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler :: Exception being handled by Exception Handler [java] ExceptionConverter: java.io.IOException: The document has no pages. [java] at com.lowagie.text.pdf.PdfPages.writePageTree(PdfPages.java:118) [java] at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1303) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:351) [java] at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.closeIt(PdfCopyFieldsImp.java:409) [java] at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:356) [java] at com.lowagie.text.pdf.PdfCopyFields.close(PdfCopyFields.java:154) [java] at org.kuali.kfs.module.ar.web.struts.DunningLetterDistributionSummaryAction.sendDunningLetters(DunningLetterDistributionSummaryAction.java:124) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) [java] at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:171) [java] at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:129) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:496) [java] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:492) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:221) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:208) [java] at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:95) [java] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [java] at org.kuali.rice.kns.web.struts.action.KualiActionServlet.process(KualiActionServlet.java:198) [java] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.kfs.sys.web.filter.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:45) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:78) [java] at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:62) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89) [java] at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:162) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter.doFilter(DevelopmentLoginFilter.java:66) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202) [java] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [java] at java.lang.Thread.run(Thread.java:744) {noformat}

    Kuali JIRA | 3 years ago | Bryan Hutchinson
    java.io.IOException: The document has no pages.
  3. 0

    When attempting to generate dunning letters, if a template is missing, an incident report screen is displayed with the stacktrace below. This should be a very rare circumstance in production, but maybe we should make the code a little more robust and display an error instead of an incident report? Stacktrace: {noformat} ******************Stack Trace-Only shown when not in production***************** ExceptionConverter: java.io.IOException: The document has no pages. at com.lowagie.text.pdf.PdfPages.writePageTree(PdfPages.java:118) at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1303) at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:351) at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957) at com.lowagie.text.pdf.PdfCopyFieldsImp.closeIt(PdfCopyFieldsImp.java:409) at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:356) at com.lowagie.text.pdf.PdfCopyFields.close(PdfCopyFields.java:154) at org.kuali.kfs.module.ar.document.service.impl.DunningLetterServiceImpl.createDunningLettersForAllResults(DunningLetterServiceImpl.java:200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy331.createDunningLettersForAllResults(Unknown Source) at org.kuali.kfs.module.ar.web.struts.GenerateDunningLettersSummaryAction.generateDunningLetters(GenerateDunningLettersSummaryAction.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:171) at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:129) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:496) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:492) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:221) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:208) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:95) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.kuali.rice.kns.web.struts.action.KualiActionServlet.process(KualiActionServlet.java:198) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.kfs.sys.web.filter.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:78) at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kns.web.filter.ParameterFilter.doFilter(ParameterFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter.doFilter(DevelopmentLoginFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:745) {noformat}

    Kuali JIRA | 2 years ago | Bryan Hutchinson
    java.io.IOException: The document has no pages.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When attempting to generate dunning letters, if a template is missing, an incident report screen is displayed with the stacktrace below. This should be a very rare circumstance in production, but maybe we should make the code a little more robust and display an error instead of an incident report? Stacktrace: {noformat} ******************Stack Trace-Only shown when not in production***************** ExceptionConverter: java.io.IOException: The document has no pages. at com.lowagie.text.pdf.PdfPages.writePageTree(PdfPages.java:118) at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1303) at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:351) at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957) at com.lowagie.text.pdf.PdfCopyFieldsImp.closeIt(PdfCopyFieldsImp.java:409) at com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:356) at com.lowagie.text.pdf.PdfCopyFields.close(PdfCopyFields.java:154) at org.kuali.kfs.module.ar.document.service.impl.DunningLetterServiceImpl.createDunningLettersForAllResults(DunningLetterServiceImpl.java:200) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy331.createDunningLettersForAllResults(Unknown Source) at org.kuali.kfs.module.ar.web.struts.GenerateDunningLettersSummaryAction.generateDunningLetters(GenerateDunningLettersSummaryAction.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269) at org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:171) at org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:129) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:496) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:492) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:221) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:208) at org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:95) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.kuali.rice.kns.web.struts.action.KualiActionServlet.process(KualiActionServlet.java:198) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.kfs.sys.web.filter.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:78) at org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89) at org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.kns.web.filter.ParameterFilter.doFilter(ParameterFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter.doFilter(DevelopmentLoginFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:745) {noformat}

    Kuali JIRA | 2 years ago | Bryan Hutchinson
    java.io.IOException: The document has no pages.
  6. 0

    pdf conversion

    Oracle Community | 10 years ago | 843841
    java.io.IOException: The document has no pages.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      The document has no pages.

      at com.lowagie.text.pdf.PdfPages.writePageTree()
    2. iText-4.2.1
      PdfCopyFields.close
      1. com.lowagie.text.pdf.PdfPages.writePageTree(PdfPages.java:118)
      2. com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:1303)
      3. com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:351)
      4. com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:957)
      5. com.lowagie.text.pdf.PdfCopyFieldsImp.closeIt(PdfCopyFieldsImp.java:409)
      6. com.lowagie.text.pdf.PdfCopyFieldsImp.close(PdfCopyFieldsImp.java:356)
      7. com.lowagie.text.pdf.PdfCopyFields.close(PdfCopyFields.java:154)
      7 frames
    3. org.kuali.kfs
      DunningLetterDistributionSummaryAction.sendDunningLetters
      1. org.kuali.kfs.module.ar.web.struts.DunningLetterDistributionSummaryAction.sendDunningLetters(DunningLetterDistributionSummaryAction.java:124)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. struts
      DispatchAction.dispatchMethod
      1. org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
      1 frame
    6. org.kuali.rice
      KualiRequestProcessor$1.doInTransaction
      1. org.kuali.rice.kns.web.struts.action.KualiAction.dispatchMethod(KualiAction.java:171)
      2. org.kuali.rice.kns.web.struts.action.KualiAction.execute(KualiAction.java:129)
      3. org.kuali.rice.kns.web.struts.action.KualiRequestProcessor$1.doInTransaction(KualiRequestProcessor.java:496)
      3 frames
    7. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
      1 frame
    8. org.kuali.rice
      KualiRequestProcessor.process
      1. org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processActionPerform(KualiRequestProcessor.java:492)
      2. org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.processFormActionAndForward(KualiRequestProcessor.java:221)
      3. org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.strutsProcess(KualiRequestProcessor.java:208)
      4. org.kuali.rice.kns.web.struts.action.KualiRequestProcessor.process(KualiRequestProcessor.java:95)
      4 frames
    9. struts
      ActionServlet.process
      1. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      1 frame
    10. org.kuali.rice
      KualiActionServlet.process
      1. org.kuali.rice.kns.web.struts.action.KualiActionServlet.process(KualiActionServlet.java:198)
      1 frame
    11. struts
      ActionServlet.doPost
      1. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
      1 frame
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    14. org.kuali.kfs
      SessionExpirationFilter.doFilter
      1. org.kuali.kfs.sys.web.filter.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:45)
      1 frame
    15. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    16. org.kuali.rice
      UserPreferencesFilter.doFilter
      1. org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:78)
      2. org.kuali.rice.kew.web.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:62)
      2 frames
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    18. org.kuali.rice
      UserLoginFilter.doFilter
      1. org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:89)
      2. org.kuali.rice.kew.web.UserLoginFilter.doFilter(UserLoginFilter.java:77)
      2 frames
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    20. org.kuali.rice
      BootstrapFilter.doFilter
      1. org.kuali.rice.kew.web.BootstrapFilter.doFilter(BootstrapFilter.java:162)
      1 frame
    21. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    22. org.kuali.kfs
      DevelopmentLoginFilter.doFilter
      1. org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter.doFilter(DevelopmentLoginFilter.java:66)
      1 frame
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    24. Display tag library
      ResponseOverrideFilter.doFilter
      1. org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
      1 frame
    25. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    26. org.kuali.rice
      HideWebInfFilter.doFilter
      1. org.kuali.rice.krad.web.filter.HideWebInfFilter.doFilter(HideWebInfFilter.java:69)
      1 frame
    27. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    28. net.bull.javamelody
      MonitoringFilter.doFilter
      1. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)
      2. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175)
      2 frames
    29. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      9 frames
    30. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      3 frames
    31. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame