XPages - how to get full stack trace?

I got an exception when running my XPage, here is the “full” stack trace I got from the error page as well as the IBM_TECHNICAL_SUPPORT\log.


xpages_exc_JN-DELL-1525_2010_06_20@15_02_03.log

20/06/10 15:02: Exception Thrown

javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property ‘reportName’ from bean of type source.ReportProfile: ExceptionConverter: java.io.IOException: The document has no pages.

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:183)

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:133)

at javax.faces.component.UIOutput.getValue(UIOutput.java:159)

at com.ibm.xsp.util.FacesUtil.convertValue(FacesUtil.java:1021)

at com.ibm.xsp.renderkit.html_basic.OutputTextRenderer.encodeEnd(OutputTextRenderer.java:79)

at com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer.encodeEnd(ReadOnlyAdapterRenderer.java:150)

at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:1001)

at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:759)

at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:754)

at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:754)

at com.ibm.xsp.util.FacesUtil.renderComponent(FacesUtil.java:754)

at com.ibm.xsp.component.UIViewRootEx._renderView(UIViewRootEx.java:1043)

at com.ibm.xsp.component.UIViewRootEx.renderView(UIViewRootEx.java:1012)

at com.ibm.xsp.application.ViewHandlerExImpl.doRender(ViewHandlerExImpl.java:557)

at com.ibm.xsp.application.ViewHandlerExImpl._renderView(ViewHandlerExImpl.java:313)

at com.ibm.xsp.application.ViewHandlerExImpl.renderView(ViewHandlerExImpl.java:348)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:103)

at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)

at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:120)

at com.ibm.xsp.controller.FacesControllerImpl.render(FacesControllerImpl.java:257)

at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:198)

at com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:187)

at com.ibm.xsp.webapp.FacesServlet.service(FacesServlet.java:138)

at com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:131)

at com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:85)

at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:464)

at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:673)

at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(ComponentModule.java:730)

at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(ComponentModule.java:684)

at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(ComponentModule.java:453)

at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(NSFComponentModule.java:657)

at com.ibm.domino.xsp.module.nsf.NSFService.doService(NSFService.java:254)

at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(LCDEnvironment.java:259)

at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(LCDEnvironment.java:216)

at com.ibm.domino.xsp.bridge.http.engine.XspCmdManager.service(XspCmdManager.java:279)

Caused by: javax.faces.el.EvaluationException: Error getting property ‘reportName’ from bean of type source.ReportProfile: ExceptionConverter: java.io.IOException: The document has no pages.

at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:104)

at com.ibm.xsp.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:143)

at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:182)

at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:163)

at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:257)

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:149)

... 34 more

Caused by: ExceptionConverter: java.io.IOException: The document has no pages.


I think there should be more information, but they just got cut off.

The code is really simple, and I tested the code in a Notes Java agent, it worked!

Any idea how to get full stack trace? Thanks.

Subject: Shouldn’t need the full stack.

Important bits are at the top. Check your security settings for the code executing and make sure it has the rights to access the file system.

Subject: But I still think full stack would make more sense sometimes

I don’t think we don’t need full stack trace all the time.

Subject: solved

Thanks Simon, I got a bit more after testing it on a Domino server.

20/06/2010 03:27:17 PM HTTP JVM: Helvetica not found as resource. (The *.afm files must exist as resources in the package com.lowagie.text.pdf.fonts)

So it was an Java permission issue, you are right.

Subject: Great.

The message is a bit ambiguous so I will do up a tech note.

Agreed, if the stack is helpful then yes the full stack should be available. XPages stacks tend only to be helpful in the top part though.