cancel
Showing results for 
Search instead for 
Did you mean: 

PDFDocumentRuntimeException while deploying the Application through NWDS

deepnain_kundra
Participant
0 Kudos

Hi,

I am configuring for Adobe Interactive Form and on deploying the application through NWDS I got the error while deploying as follows.

<b>com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:398)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))

at java.security.AccessController.doPrivileged1(Native Method)

at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))

Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:98)

at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:121)

at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:342)

... 30 more

Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException:

Processing exception during a "UsageRights" operation.

Request start time: Mon Mar 12 16:02:47 GMT+05:30 2007

com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: /tmp/adobewa_SPD_18828050/DM4291422590189871105.dir/DM-3572217866344419510.tmp

Specific error information:

error while logging into credential ^0

GeneralError: Operation failed.

SecurityHandler.login:-1:

Could not open Digital ID file with the password provided. Please try again.</b>

In order to resolve it I have taken the Adobe Credential File from SAP and put it under /usr/sap/<SAPSID>/SYS/global/AdobeDocumentServices/ TrustManagerService/trust/credentials directory as "003265.pfx", i.e. extracted zip file put here.

Now I opened the Visual Administrator and moved to Cluster tab, choose Server <x> -> Services -> Document Services Configuration

On the tab, select Runtime tab -> Credentials

Put the values as follows

Alias : ReaderRights

P12 File : clicked on browse and select the "003265.pfx"

sha1 : <blank>

Password : XXXXXX (Given by SAP)

Confirm Password : XXXXXX

And after that clicked on ADD button, then a message comes as follows

<b>An error occured while updating the credential expiry date for alias 'ReaderRights':Error Retrieving credential expiry: ReaderRights

Show Addtional Messages? with "Yes" and "No" button</b>

Also I restarted the PDF Manipulation Module, but still getting the same above error while deploying and same message on selecting "Document Services Configuration"

Can someone tell me how I can solve this error

Regards

Deep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Which NW version, and which SP ?

Could you please check if your ADS component is at the same SP level as the rest of your J2EE engine ?

Also, try to restart all the ADS-related modules and try to register your credential again. This step should be done without any error.

Regards,

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francois,

I am working on NW04s, SP10 and ADS patched for SP10 too. How can I verify i.e. what should I check for ADS Component is at the same SP level of J2EE Engine?

Regards

Deep

Former Member
0 Kudos

If your J2EE engine has been fully patched to SP10 it should be ok.

Are you sure about the integrity of your credential ? You can try with the temporary one from SDN. Normally everything should be ok.

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francios,

Yes the J2EE engine is fully patched to SP10. Please let me know how I can get the temporary one from SDN? May be this can help me.

I have also checked http://<FQDN>:<port>/AdobeDocumentServices/Config which too gives the Version. But still unable to resolve it that why I am getting message as <b>An error occured while updating the credential expiry date for alias 'ReaderRights':Error Retrieving credential expiry: ReaderRights

Show Addtional Messages? with "Yes" and "No" button</b>.

Please help me.

Regards

Deep

deepnain_kundra
Participant
0 Kudos

Hi Francois,

As I am looking into the pdf there is some prerequisites for "Configuring Credential Attributes" which are as follows:

<b>In SAP NetWeaver 2004s and as of SAP NetWeaver 04 SPS 12 you need to have installed a full version of JCE on the J2EE engine that hosts the Adobe document services in the folder (<JRE_HOME>/lib/security). The JCE files are required for extracting data from the credential file. Restart the J2EE engine after the installation of the JCE.</b>

Can you tell me how I can verify whether JCE full version is installed or not on J2EE Engine?

Regards

Deep

Former Member
0 Kudos

Hello,

There is one temporary credential <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/adobe_credential_sneakpreview_nw04.zip">available here on SDN</a>: try with this first, it should work !

The Java Cryptographic Extension must indeed be installed: you can check this by looking in the welcome page of your J2EE engine: http://hostname:port/ > System information. In the server and the cluster properties, you can check if the jce.jar file is present under sun.boot.class.path.

Regards,

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francois,

Thanks for your inputs. On using the temporary credential file, I am getting the same error pop-up message.

But sun.boot.class.path =

/usr/java14_64/jre/lib/core.jar:/usr/java14_64/jre/lib/graphics.jar:/usr/java14_64/jre/lib/security.jar:/usr/java14_64/jre/lib/server.jar:/usr/java14_64/jre/lib/xml.jar:/usr/java14_64/jre/lib/charsets.jar:/usr/java14_64/jre/classes:/usr/java14_64/jre/lib/ibmcertpathprovider.jar:/usr/java14_64/jre/lib/ibmjaaslm.jar:/usr/java14_64/jre/lib/ibmjcefw.jar:/usr/java14_64/jre/lib/ibmjgssprovider.jar:/usr/java14_64/jre/lib/ibmjssefips.jar:/usr/java14_64/jre/lib/ibmjsseprovider.jar:/usr/java14_64/jre/lib/ibmorb.jar:/usr/java14_64/jre/lib/ibmorbapi.jar:/usr/java14_64/jre/lib/ibmpkcs.jar

But here I am not able to find <b>jce.jar</b> entry. Also I am sending all the entries which I get for sun.boot.class.path.

So, what steps to be taken now?

Please suggest me.

Regards

Deep

Former Member
0 Kudos

Hi,

Please check <a href="/people/dezso.pap/blog/2007/01/10/common-problems-with-sap-interactive-forms-by-adobe--part-i- blog</a> and SAP note # 899808 about installation of JCE.

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francois,

Thanks for your inputs. I have downloaded JCE 1.4.2 from the website https://www6.software.ibm.com/dl/jcesdk/jcesdk-p which is mentioned in the note 899808.

From there I downloaded unrestrict142.zip file, and in this zip file there it contains local_policy.jar and US_export_policy.jar files.

And these files already exist in /usr/java14_64/jre/lib/security/. So <b>"jce.jar"</b> is also missing in this unrestrict142.zip file.

So what to do now, please suggest me.

Regards

Deep

Former Member
0 Kudos

Hello,

The jce.jar must not be present in the archive you've downloaded. You can also download this file on the Sun website: http://java.sun.com/j2se/1.4.2/download.html (at the bottom of the page).

Check also SAP note # 865166 and 607788 for JCE installation.

Just to be sure: on your J2EE, are all the ADS-related services started (IIOP, Document Services xx, PDF manipulation module, XML form module etc) ?

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francios,

The pop-up error message has gone. The problem is with the rights with the folder "credential" means I have added the credential file to the /usr/sap/<SAPSID>/SYS/global/AdobeDocumentServices/TrustManagerService/trust/credentials directory and done the steps as given in first message too but it does not set the Expiry Date.

Now I have given the full rights to credentials directory in Operating System and done these steps again.

This time it also fetches the Expiry date and the pop-up error message has gone.

So, there is no problem with JCE installation.

But again when I deployed the Travel Request Application the same error message is coming which is in my first message.

I am again putting some statements from my first message

<b>Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException:

Processing exception during a "UsageRights" operation.

Request start time: Mon Mar 12 16:02:47 GMT+05:30 2007

com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: /tmp/adobewa_SPD_18828050/DM4291422590189871105.dir/DM-3572217866344419510.tmp

Specific error information:

error while logging into credential ^0

GeneralError: Operation failed.

SecurityHandler.login:-1:

Could not open Digital ID file with the password provided. Please try again.</b>

Now when I am going through /tmp/adobewa_SPD_18828050/DM4291422590189871105.dir/DM-3572217866344419510.tmp

I come to know that upto /tmp/adobewa_SPD_18828050 it exists but DM4291422590189871105.dir/DM-3572217866344419510.tmp does not exist.

So what to do now. Please suggest.

Regards

Deep

Former Member
0 Kudos

Hi,

Good to know, you seem now closer...

It seems now there is a problem with the password you're using ('Could not open Digital ID file with the password provided. Please try again.')...

Francois

deepnain_kundra
Participant
0 Kudos

Hi Francois,

The problem is not with the password. Infact after restarting the EP Server the error has gone and on deploying, the PDF has been opened but it is not editable. So for that I will look into it why it is neither editable nor the combo box is coming, the one I had created in the Travel Request Application.

Anyways I am very thankful from the bottom of my heart for your continuous support.

Best Regards

Deep

Answers (0)