We are migrating Oracle DB version from 11 to 19. While
testing the application, we are unable to view the PDF content and download the PDF. We are using
Java version 8, Spring-MVC 5 framework for the application development and the code is running on
Tomcat version 9.
We are able to view the content and download the PDF when the application running on Oracle DB version 11 but not on version 19.
This issue happening only for the PDF view and not on the
Doc, Xls file extensions.
I also referred the below links but it did not work.
Link1
Link2
Please help.
Code
Error Details
Systemld Unknown; Line #1; Column #17907; The entity name must immediately follow the '& in the entity reference.
fr.opensagres.xdocreport.converter.XDocConverterException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.ooxml.POIXMLTypeloader
at fr.opensagres.xdocreport.document.AbstractXocReport.convert(AbstractDocReport.java:745)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.ClibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:747)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.Interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
at org.springframework.transaction.interceptor.TransactionInterceptor.Invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.ooxml.POIXMLTypeLoader
at org.apache.pol.xwpf.usermodel.XWPFDocument.onDocumentRead(XMPFDocument.java:161)
at org.apache.pol.ooxml.PODMLDocument.load(POIXMLDocument.java:169)
at org.apache.poi.pf.usermodel.XWPFDocument.<init>(XWPFDocument.java:126)
at fr.opensagres.xdocreport.comverter.docx.poi.itext.XWPF2PDFVialTextConverter.convert(XWPF2PDFVialTextConverter.java:66)
at fr.opensagres.xdocreport.document.AbstractXDocReport.convert(AbstractXDocReport.java:710)
pom.xml