Hi, I cannot touch other jars currently available on the server as they are required to run the application. How to overcome this issue? Any suggestions?
Thanks, Suren -----Original Message----- From: Tilman Hausherr [mailto:[email protected]] Sent: Thursday, April 20, 2017 2:12 PM To: [email protected] Subject: Re: Embed/attach files to pdf Hi, I only wrote a question, which was "Could it be that you're using several different versions of Apache commons log in your build?". Tilman Am 20.04.2017 um 19:58 schrieb Surendranath Subramani: > Hi Tilman, > > Your response is missing. > > > -----Original Message----- > From: Tilman Hausherr [mailto:[email protected]] > Sent: Thursday, April 20, 2017 1:29 PM > To: [email protected] > Subject: Re: Embed/attach files to pdf > > Am 20.04.2017 um 16:18 schrieb Surendranath Subramani: >> Hi, >> >> I used pdfbox 2.0.3 to embed files. Reference material >> http://www.docjar.com/docs/api/org/apache/pdfbox/examples/pdmodel/Emb >> e >> ddedFiles.html >> >> It worked fine locally in eclipse IDE but when I place the jar on the >> application server it did not work I get IllegalAccessError error. >> >> The java version on the server is 1.7.0. >> >> I raised my question on the forum >> https://community.oracle.com/thread/4038238 and i got the response saying it >> is due to difference in compiler version. >> >> I noticed that jdk 1.7.0_75 used to build pdfbox 2.0.3 so I am thinking I >> get the error because of version issue. >> >> So I went back to older version 1.7.10 jar which was build using jdk >> 1.6.0_26 but the problem is files are NOT embed files. >> >> So my question is to work on jdk 1.7.0 what version of jar file I should be >> using. >> >> ## Detail 0 ## >> java.lang.IllegalAccessError >> at >> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:218) > Could it be that you're using several different versions of Apache commons > log in your build? > > Tilman > > >> at >> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) >> at >> org.apache.pdfbox.pdmodel.PDDocument.<clinit>(PDDocument.java:75) >> at java.lang.J9VMInternals.initializeImpl(Native Method) >> at >> java.lang.J9VMInternals.initialize(J9VMInternals.java:241) >> at CV.oracle.apps.icx.por.ic.pdfBox.PDF.doIt1(PDF.java:33) >> at >> CV.oracle.apps.icx.por.ic.approval.webui.icAgendaCO.printPdf(icAgendaCO.java:253) >> at >> CV.oracle.apps.icx.por.ic.approval.webui.icAgendaCO.processFormRequest(icAgendaCO.java:190) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:827) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) >> at >> oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1217) >> at >> oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) >> at >> oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) >> at >> oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) >> at >> oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) >> at >> oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3064) >> at >> oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1898) >> at >> oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.jav >> a >> :557) >> >> Thanks, >> Suren >> >> >> -------------------------------------------------------- >> The information transmitted in this email and any of its attachments is >> intended only for the person or entity to which it is addressed and may >> contain information concerning Altice USA and/or its affiliates and >> subsidiaries that is proprietary, privileged, confidential and/or subject to >> copyright. Any review, retransmission, dissemination or other use of, or >> taking of any action in reliance upon, this information by persons or >> entities other than the intended recipient(s) is prohibited and may be >> unlawful. If you received this in error, please contact the sender >> immediately and delete and destroy the communication and all of the >> attachments you have received and all copies thereof. >> -------------------------------------------------------- >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

