Closed GoogleCodeExporter closed 8 years ago
Hi,
Your problem is that you have InputStream is null. Is that?
If it is that, what is the link with XDocReport?
Regards Angelo
Original comment by angelo.z...@gmail.com
on 13 Mar 2012 at 10:06
Yes.
The link with XdocReport is:
IXDocReport report = XDocReportRegistry.getRegistry().loadReport(in,TemplateEngineKind.Freemarker);
in this line its showing null pointer exception.
15:50:08,893 ERROR [STDERR] java.io.IOException: InputStream cannot be null.
15:50:08,893 ERROR [STDERR] at
fr.opensagres.xdocreport.core.io.XDocArchive.readZip(XDocArchive.java:264)
15:50:08,893 ERROR [STDERR] at
fr.opensagres.xdocreport.document.registry.XDocReportRegistry.createReport(XDocR
eportRegistry.java:312)
15:50:08,893 ERROR [STDERR] at
fr.opensagres.xdocreport.document.registry.XDocReportRegistry.loadReport(XDocRep
ortRegistry.java:285)
15:50:08,893 ERROR [STDERR] at
fr.opensagres.xdocreport.document.registry.XDocReportRegistry.loadReport(XDocRep
ortRegistry.java:278)
15:50:08,893 ERROR [STDERR] at
fr.opensagres.xdocreport.document.registry.XDocReportRegistry.loadReport(XDocRep
ortRegistry.java:264)
Original comment by balajiga...@ezeecloud.com
on 13 Mar 2012 at 10:22
Yes I understood that, but it's not a problem with XDocReport, it's a problem
with InputStream null.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 13 Mar 2012 at 10:30
Original comment by angelo.z...@gmail.com
on 13 Mar 2012 at 9:36
Getting the same problem.. How did you solved this?
Original comment by to2.r...@gmail.com
on 9 Dec 2014 at 7:39
So do I
Original comment by Zrikotof...@gmail.com
on 31 Jan 2015 at 12:48
Hi,
this bug is related to some sort of clasloader issue with JBoss.
Can you try :
URL url = AbstractXWPFPOIConverterTest.class.getResource("/folder"+ "/" +
"example.docx");
System.out.println(url);
InputStream in = url.openStream();
and analyse what is the URL.
Alternatively you may use a FileInputStream if you know where your docx is
located on the filesystem.
Original comment by pascal.leclercq
on 31 Jan 2015 at 3:35
Original issue reported on code.google.com by
balajiga...@ezeecloud.com
on 13 Mar 2012 at 10:02