Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    NullPointerException getPdfRenderer XRLog

    SmartClient Version: v9.1p_2014-08-31/Pro Deployment (built 2014-08-31)
    FF32.0

    Occasionally, I am getting a server side null pointer exception in the XRLog class while performing a PDF export. Please see the stack trace below.

    Code:
    2014-09-04-15:12:08:133 -0400   WARN [http-bio-8080-exec-8] rpcRequest.execute() failed: 
    java.lang.NullPointerException
    	at org.xhtmlrenderer.util.XRLog.log(XRLog.java:206)
    	at org.xhtmlrenderer.util.XRLog.render(XRLog.java:194)
    	at org.xhtmlrenderer.util.XRLog.render(XRLog.java:190)
    	at org.xhtmlrenderer.layout.SharedContext.<init>(SharedContext.java:107)
    	at org.xhtmlrenderer.pdf.ITextRenderer.<init>(ITextRenderer.java:111)
    	at org.xhtmlrenderer.pdf.ITextRenderer.<init>(ITextRenderer.java:102)
    	at com.isomorphic.contentexport.PdfExport.getPdfRenderer(PdfExport.java:328)
    	at com.isomorphic.contentexport.PdfExport.getPdfObject(PdfExport.java:77)
    	at com.isomorphic.rpc.BuiltinRPC.getPdfObject(BuiltinRPC.java:844)
    	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 com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:975)
    	at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:805)
    	at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:309)
    	at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
    	at com.isomorphic.rpc.RPCRequest.execute(RPCRequest.java:231)
    	at com.isomorphic.servlet.IDACall.handleRPCRequest(IDACall.java:284)
    	at com.xxxxxxx.xxxxxxx.server.xxxxxxxServlet.handleRPCRequest(xxxxxxxServlet.java:157)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:168)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:137)
    	at com.xxxxxxx.xxxxxxx.server.xxxxxxxServlet.processRequest(xxxxxxxServlet.java:268)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)

    #2
    Looks to be a defect in Flying Saucer. Comments suggest you may be able to go back to a previous version, or wait for it to be fixed. Either way, you probably want to watch that bug.

    By the way, we found this by just Googling the top of the stack - first hit.

    Comment


      #3
      Thanks

      "By the way, we found this by just Googling the top of the stack - first hit."
      Yes, however, I still preferred a confirmation from Isomorphic and furthermore, thought it would be good to inform you in case you were not aware of the issue as it directly impacts the export feature.

      Regards

      Comment


        #4
        Oh we appreciate being informed, and there is now a useful thread here for anyone else hitting the same issue that will connect them with the known bug, thanks for that.

        Just wanted to make sure you knew about the "Google the stack trace" technique as it frequently hits bug tracker entries, allowing you to make progress if we don't respond in 8 minutes like usual :)

        Comment

        Working...
        X