sitimoen / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Attribute Value is null causing a NPE #320

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This library is used in a product that we developed for a client. We cannot 
reproduce the problem in our development environment. Our development 
environment is mostly Windows boxes with a few Linux boxes. 

Our client has two environments, Test and Production, which are both Linux 
boxes that use Java and Tomcat. The exact details of which are not available.

The client routinely restarts Tomcat each night. In the morning all DocX 
Reports work for a few hours and then they all produce stacktraces around 
mid-morning. The only solution is to restart Tomcat. The rest of the 
application which is quite complex and has other reporting frameworks continues 
to work with no problems.

The stacktrace generated by the failing DocX Reports is:
2013-10-28 15:38:49 ERROR com.geometryit.ead.web.custom.ReportHandler - - 
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedAttribute.save(Buffer
edAttribute.java:70)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegion.save(BufferedR
egion.java:54)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedTagElement.save(Buffe
redTagElement.java:55)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegion.save(BufferedR
egion.java:54)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedTagElement.save(Buffe
redTagElement.java:55)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedRegion.save(BufferedR
egion.java:54)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedTagElement.save(Buffe
redTagElement.java:55)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.BufferedElement.save(Buffered
Element.java:161)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor.preproces
s(SAXXDocPreprocessor.java:66)
at 
fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor.preproces
s(SAXXDocPreprocessor.java:47)
at 
fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor.preproce
ss(AbstractXDocPreprocessor.java:88)
at 
fr.opensagres.xdocreport.document.AbstractXDocReport.doPreprocessorIfNeeded(Abst
ractXDocReport.java:363)
at 
fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.
java:509)
at 
fr.opensagres.xdocreport.document.AbstractXDocReport.process(AbstractXDocReport.
java:484)
at 
com.geometryit.eagle.web.AbstractReportHandler.generateXDocReport(AbstractReport
Handler.java:228)
at 
com.geometryit.ead.web.custom.ReportHandler.generateReport(ReportHandler.java:10
67)
at com.geometryit.ead.web.custom.ReportHandler.process(ReportHandler.java:259)
at com.geometryit.eagle.web.BaseDefaultSite.process(BaseDefaultSite.java:164)
at com.geometryit.eagle.mng.SiteManager.invoke(SiteManager.java:103)
at com.geometryit.eagle.servlet.AppServlet.invoke(AppServlet.java:838)
at com.geometryit.eagle.servlet.AppServlet.processRequest(AppServlet.java:804)
at com.geometryit.eagle.servlet.AppServlet.doPost(AppServlet.java:346)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:305)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:210)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
22)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
23)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractPro
tocol.java:589)
at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)

What version of the product are you using? On what operating system?
We are using version 1.0.0 The problem is occurring on out client's Linux 
System but not consistently.

Original issue reported on code.google.com by brett.wa...@gmail.com on 6 Nov 2013 at 6:58