HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting sometimes I get a MalformedURLException, and sometimes not

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26334

    Hi,

    We have written a java app (actually, a portlet) that uses the regular PD4ML library. Some days it works just fine but some days it fails (…after a few tries, or right at the beginning, or every other click, etc.) very unpredictably. Instead of a PDF I get:

      java.net.MalformedURLException: For input string: “280null”

      EXCEPTION:: null

    I have Googled this exception and now know that the “280” in “280null” is the port number used by the web server, but there was no really specific help out there. What happened to the rest of the URL (e.g., protocol, host name, path)? Why is it good sometimes and bad at other times?

    I’d appreciate any guidance on how to fix or debug. (Is there a way to enable some kind of verbose logging in PD4ML?)

    Thanks.

    Jeff

    #27855

    There is a big probability the exception is thrown before PD4ML takes control.
    To make sure, try to switch PD4ML debug on: pd4ml.enableDebugInfo()

    Are there any error messages or exception stack traces in server’s log?

    #27856

    Yes, the server log has two different kinds of error messages.

    The first is:

    javax.servlet.jsp.JspException
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java(Compiled Code))
    at com.ibm._jsp._SurveyReviewPDF._jspService(_SurveyReviewPDF.java:946)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.dohmh.wtchr.portal.servlets.PDFGeneratorFilter.doFilter(PDFGeneratorFilter.java:46)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java(Compiled Code))
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java(Compiled Code))
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    The second is:

    FATAL [2010-02-09 16:47:27,785] [WebContainer : 10] (_ReviewPDF.java:1335) – Exception::
    Session Object Internals:
    id : CCgy9dIBFXAxJy310W2gFvj
    hashCode : 320696163
    create time : Tue Feb 09 12:41:20 EST 2010
    last access : Tue Feb 09 12:42:38 EST 2010
    max inactive interval : 3600
    user name : anonymous
    valid session : false
    new session : false

    overflowed : false

    app name : default_host/custo/PA_1_GFHI8I930GGA50I8NV90OR3045

    non-serializable app specific session data : null
    serializable app specific session data : []

    ERROR [2010-02-09 16:47:27,785] [WebContainer : 10] (_ReviewPDF.java:1336) – Exception::

    java.lang.IllegalStateException:
    Session Object Internals:
    id : CCgy9dIBFXAxJy310W2gFvj
    hashCode : 320696163
    create time : Tue Feb 09 12:41:20 EST 2010
    last access : Tue Feb 09 12:42:38 EST 2010
    max inactive interval : 3600
    user name : anonymous
    valid session : false
    new session : false

    overflowed : false

    app name : default_host/custo/PA_1_GFHI8I930GGA50I8NV90OR3045

    non-serializable app specific session data : null
    serializable app specific session data : []

    at com.ibm.ws.webcontainer.httpsession.SessionData.getValueGuts(SessionData.java(Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.SessionData.getValue(SessionData.java(Inlined Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.SessionData.getAttribute(SessionData.java(Inlined Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.HttpSessionFacade.getAttribute(HttpSessionFacade.java(Compiled Code))
    at org.apache.pluto.core.impl.PortletSessionImpl.getAttribute(PortletSessionImpl.java(Compiled Code))
    at org.apache.pluto.core.impl.PortletSessionImpl.getAttribute(PortletSessionImpl.java(Compiled Code))
    at com.ibm.faces.portlet.httpbridge.PortletSessionWrapper.getAttribute(PortletSessionWrapper.java(Compiled Code))
    at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java(Compiled Code))
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java(Compiled Code))
    at com.ibm.faces.databind.SelectItemsVarResolver.resolveVariable(SelectItemsVarResolver.java(Compiled Code))
    at com.ibm.faces.portlet.PortletVariableResolver.resolveVariable(PortletVariableResolver.java(Compiled Code))
    at com.ibm._jsp._SurveyReviewPDF._jspService(_SurveyReviewPDF.java:967)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.dohmh.wtchr.portal.servlets.PDFGeneratorFilter.doFilter(PDFGeneratorFilter.java:46)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java(Compiled Code))
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java(Compiled Code))
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    I think you’re right that the problem occurs before invoking PD4ML. We debugged line by line through the invoking JSP. In the cases when the app fails we found a JSF call that also fails (it’s trying to access a managed bean from another scope). Since it works sometimes, I guess that specific line is not at fault but that something else has made the desired bean go away.

    But who’s clobbering the session?

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.