PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: nullPointerException when rendering page
   PostPosted: 31 Aug 2010, 20:24 
I am having a sporadic problem with a nullPointerException when rendering some pages. I have an application where html is stored in a database and then retrieved and rendered by pd4ml. I am not sure what html is causing the problem because we have thousands of users, and I am not sure which one is causing the error. I will try to find out more information, but here is the error just in case someone can tell right away - thanks!

BlockElement(p) {display=block, margin-left=0, margin-top=0, margin-bottom=scale (100001.171875), margin-right=0}
ContentElement(pd4content) [ ] {display=block, line-height=1.2000000476837158}

java.lang.NullPointerException
at java.lang.String.indexOf(String.java(Compiled Code))
at org.zefer.cache.d.getResourceAsBytes(Unknown Source)
at org.zefer.cache.g.getResourceAsBytes(Unknown Source)
at org.zefer.cache.ResourceCache.getObject(Unknown Source)
at org.zefer.cache.ResourceCache.getObject(Unknown Source)
at org.zefer.cache.ResourceCache.getImage(Unknown Source)
at org.zefer.html.doc.n.thisvoid(Unknown Source)
at org.zefer.html.doc.n.Õõ0000(Unknown Source)
at org.zefer.html.doc.n.if(Unknown Source)
at org.zefer.html.doc.b.b.super(Unknown Source)
at org.zefer.html.doc.ab.o00000(Unknown Source)
at org.zefer.html.doc.b.d.super(Unknown Source)
at org.zefer.html.doc.ab.o00000(Unknown Source)
at org.zefer.html.doc.p.o00000(Unknown Source)
at org.zefer.html.doc.p.ÔØ0000(Unknown Source)
at org.zefer.html.doc.m.new(Unknown Source)
at org.zefer.html.doc.m.o00000(Unknown Source)
at org.zefer.html.doc.b.d.super(Unknown Source)
at org.zefer.html.doc.ab.o00000(Unknown Source)
at org.zefer.html.doc.b.d.super(Unknown Source)
at org.zefer.html.doc.ab.o00000(Unknown Source)
at org.zefer.html.doc.Document.layout(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at org.zefer.pd4ml.taglib.PD4MLTransformerTag.render(Unknown Source)
at org.zefer.pd4ml.taglib.PD4MLTransformerTag.doEndTag(Unknown Source)
at _pd4ml._jspService(_pd4ml.java:588)


  Subject: Re: nullPointerException when rendering page
   PostPosted: 01 Sep 2010, 15:54 
Please give a try to PD4ML v361b1
As far as I remember we addressed a similar issue (caused by image parsing in order to determine its type).


  Subject: Re: nullPointerException when rendering page
   PostPosted: 18 Jul 2011, 16:12 
I believe I have figured out what is causing the nullPointerException. It seems to occur when the users are trying to embed an image which is on their local machine into the page. When I view it on my local server, it just disregards the image. However, on our production server (which is HTTPS:) it crashes. That is the only difference in the servers. Is there anything I can do to work around this?

Thanks!!


  Subject: Re: nullPointerException when rendering page
   PostPosted: 20 Jul 2011, 16:19 
Which PD4ML version do you currently use? It can be determined from a generated PDF file properties.


  Subject: Re: nullPointerException when rendering page
   PostPosted: 15 Dec 2011, 19:24 
I am using pd4ml.prof.361b1
Thanks!


  Subject: Re: nullPointerException when rendering page
   PostPosted: 15 Dec 2011, 19:26 
Also, one more bit of information -- they server that just disregards the image is running on a Windows box, so if the image were on the c: drive, at least the drive would be found. The server that crashes is running on AIX where c: would have no meaning.


  Subject: Re: nullPointerException when rendering page
   PostPosted: 19 Dec 2011, 15:28 
litacampbell wrote:
Also, one more bit of information -- they server that just disregards the image is running on a Windows box, so if the image were on the c: drive, at least the drive would be found. The server that crashes is running on AIX where c: would have no meaning.

Hi to All,
Do you mean with server crash that application server crash or only that the servlets is arising the errror and the application continues to work.
We've the same issue and seems that after this exception the memory is not cleaned and the GC continue to work blocking the work.
Did you faced anything similar to this ?


  Subject: Re: nullPointerException when rendering page
   PostPosted: 18 Jan 2012, 19:42 
What I am seeing is that as soon as the image is encountered, the page stops rendering at that point. Any data after the image is not seen on the page. It might be a 7 page PDF, but you only see the first 2 pages, for example.

Also, the URL on the server that fails is using SSL, so that might have something to do with it as well.



[Reply]     [ 8 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share