pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Embed/attach files to pdf
Date Thu, 20 Apr 2017 19:01:46 GMT
Am 20.04.2017 um 20:27 schrieb Surendranath Subramani:
> 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?

Sorry, I don't have any experience with such conflicts (if there are any).

Tilman



>
> Thanks,
> Suren
>
> -----Original Message-----
> From: Tilman Hausherr [mailto:THausherr@t-online.de]
> Sent: Thursday, April 20, 2017 2:12 PM
> To: users@pdfbox.apache.org
> 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:THausherr@t-online.de]
>> Sent: Thursday, April 20, 2017 1:29 PM
>> To: users@pdfbox.apache.org
>> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message