cancel
Showing results for 
Search instead for 
Did you mean: 

PDFDocumentRuntimeException: Severe : PDFDocument is NULL

Former Member
0 Kudos

Hi,

Our devlopement sandbox environment

is NW 04s, J2EE Engine 7.00 patchlevel

and i am using NWDS 2.0.16.

I develop a simple Interactive

Form Application

(TutWD_OnlineInteractiveForm_Init)

and deployed.

However while i am trying to access

this application i am

getting the follwoing exception.

com.sap.tc.webdynpro.clientserver.adobe.pdfdocument

.base.core.PDFDocumentRuntimeException: Severe : PDFDocument is NULL. Exception :

Service call exception; nested exception is:

com.sap.engine.services.webservices.jaxrpc.

exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://xxxxxxx:50000/

AdobeDocumentServices/Config?style=document"

at com.sap.tc.webdynpro.clientserver.uielib.adobe

.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:385)

at com.sap.tc.webdynpro.clientserver.cal.

ClientApplication.afterApplicationModification(ClientApplication.java:1117)

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:330)

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

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

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

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

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

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

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

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

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:390)

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

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

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

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

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

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

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

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

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

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Thanks in advance for helping me.

Regards,

Ranjan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ranjan,

Ensure that ACF is installed in the NWDS and ADS is configured in VA with a valid license to use pdf.

Regards

Srinivasan T

Former Member
0 Kudos

Hi Srini,

Thanks a Lot for the reply. Please tell me how to check that ACF is installed in NWDS(2.0.16) and how to ensure it is enabled. What is this "VA"?? I do not have remote access to the server. I am using NWDS 2.0.16 to develop the application and deploying using SDM password.

Could you please explain in detail.

Regards,

Ranjan

Former Member
0 Kudos

Hi,

VA is Visual Administrator of the J2EE Engine. A message has to be sent to SAP Market Place to obtain the license for using Adobe PDF. After getting the same, the ADS has to be installed through SAPinst and the license key has to be given while installation. ACF is activated by default starting SP 11 of NWDS. If not, u can download it from SAP Market Place and install in your machine. Users (developers) who would use the Adobe has to be configured in the VM.

Regards,

Srinivasan T

Former Member
0 Kudos

Hi Srini,

Thanks a lot for the quick response.

I am using SP16 of NWDS. I talked to

the Sandbox admin and he said he

already applied the license and my

user already have permission to the system.

in fact i tested this using http://xxx:50000/AdobeDocumentServices/Config

and use my user id and password to test.

while testing i left all the input fields blank and see the response below.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><rpl:rpDataResponse xmlns:rpl='urn:AdobeDocumentServicesVi'>

<rpl:Response xmlns:pns='urn:com.adobe'>

<pns:rpStrings>

<pns:RpString><pns:name>

TraceString</pns:name><pns:value>Begin trace

Adobe Document Services

Trace Results:

String: =

Stream:

IIOP service is running

Created a Data Manager for this request

Locating stream: PDFDocument and loading

into a DOM

Required stream: "PDFDocument" not found.

</pns:value></pns:RpString><pns:RpString>

<pns:name>Results</pns:name><pns:value>null

</pns:value></pns:RpString><pns:RpString>

<pns:name>VersionInfo</pns:name>

<pns:value>705.20050920103554.237304

</pns:value></pns:RpString>

</pns:rpStrings></rpl:Response>

</rpl:rpDataResponse></SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Please guide.

Is it VM (Virtual Machine) or some thing else.

Regards,

Ranjan

Former Member
0 Kudos

Hi,

It is good that you have access to use PDF. It seems that server could not locate the PDF Document. Check whether you have the Acrobat Reader version 7.0.x in your machine, else download and install. Also try with ACF installation.

Srinivasan T