cancel
Showing results for 
Search instead for 
Did you mean: 

PDFDocumentRuntimeException

Former Member
0 Kudos

Hi,

We have ADS configured with EP and works perfect earlier.

There is something went wrong in server and

now when i am deploying and accessing

the interactive form i got the following

message. I am sure there is nothing wrong in the application.

Please suggest what to do in server level to overcome this probelm.

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

base.core.PDFDocumentRuntimeException: Severe : PDFDocument is NULL. Exception : Service call exception; nested exception is: java.lang.Exception: Incorrect content-type found text/html

Detailed Exception Chain

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

pdfdocument.base.core.PDFDocumentRuntimeException: Severe : PDFDocument is NULL. Exception : Service call exception; nested exception is:

java.lang.Exception:

Incorrect content-type found text/html

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 for your help.

Regards,

Ranjan

Accepted Solutions (1)

Accepted Solutions (1)

markus_meisl
Active Contributor
0 Kudos

Hi Ranjan,

the J2EE User Management Engine has a configuration for setting an expiry date for passwords. Because of this setting, you can get an error after the password expires. (see documentation at http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/16c43bdd3da244a1d3372a77b5f83f/frameset.htm) This could be a reason here.

Try this:

Check the user ADSUser in the Visual Admin: -> Server -> Service -> Security provider -> UserManagement tab

-> ADSUser

Enter a password again and check 'No password change is required'.

Hope this works,

Markus Meisl

SAP NetWeaver Product Management

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Markus,

Thanks a lot.

I use the user management tab. however the change password button is disabled. however i solved it another way.

Visual Administrator -> server -> service -> web service security

-> Web Service Client -> sap.com -> tcwdpdfobject -> com.sap.tc.web

dynpro.adsproxy.AdsProxy*ConfigPort_Document

I visit here and change the user to my user, i have adsclient permission and it works.

Please advice why that Change Password button is disabled. i logged into VA using admin previledge.

Regards,

Ranjan

Former Member
0 Kudos

Hi Ranjan,

I am facing the same problem ( PDF Document Null) while creating the interactive form.

I followed your method and reached

'com.sap.tc.webdynpro.adsproxy.AdsProxy/ConfigPort_Document'. Out here, in Username and password field, we have ADSUSER and a password already entered.

What should be my next step, in order to resolve this issue?

Kindly help me resolve this issue.

Thanks & Regards,

Sharath

Former Member
0 Kudos

Hi Sharath ,

Try this. It may solve your problem.

Log on to visual Admistrator.

Click on Services->Security Provider->User Management.

Search for ADsuser and click on it.

Switch on to Edit mode for editing ADSUSer.

Change its password to xxxxxxxx. then select (Check) No Password Change Required.

Save it. Then again reach 'com.sap.tc.webdynpro.adsproxy.AdsProxy/ConfigPort_Document' and retype the new password.

Another thing make sure your your ADSUser is a part of ADSCallers Parent Group.

if not give that permission.

Hope it works.

If not, copy and paste the entire error message with root cause and post it.

Cheers,

Ranjan

Former Member
0 Kudos

Hi Ranjan,

I have recieved a new exception after following your instructions. I am pasting below the exception:

Root Cause

The initial exception that caused the request to fail, was:

com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: ADS Render Exception occured. Append "sap-wd-errorPdf=true" to the URL and access the application once again. This time you will get an error PDF. Save the error PDF on the file system. This is a helpful attachment in case of an OSS message. com.adobe.ads.exception.FailedCreationException: Specific error information: $$$/Err/PDF/OpenPDFFile/NoEmbeddedPDF=the PDF must have an embedded content. General error information: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0 Exception Stack Trace: com.adobe.ads.exception.FailedCreationException: Specific error information: $$$/Err/PDF/OpenPDFFile/NoEmbeddedPDF=the PDF must have an embedded content. General error information: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0 at com.adobe.EJB_PDFAgent.getRemotePdfDocument(EJB_PDFAgent.java:815) at com.adobe.EJB_PDFAgent.importDataObjectWithDescription(EJB_PDFAgent.java:440) at com.adobe.ads.request.Embed.embedFile(Embed.java:162) at com.adobe.AdobeDocumentServicesWorker.processRenderLog(AdobeDocumentServicesWorker.java:1245) at com.adobe.AdobeDocumentServicesWorker.processRender(AdobeDocumentServicesWorker.java:1168) at com.adobe.AdobeDocumentServicesWorker.execute(AdobeDocumentServicesWorker.java:598) at com.adobe.AdobeDocumentServicesEJB.processRequest(AdobeDocumentServicesEJB.java:130) at com.adobe.AdobeDocumentServicesEJB.rpData(AdobeDocumentServicesEJB.java:108) at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79) at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92) at SoapServlet.doPost(SoapServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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) Caused by: com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0 at com.adobe.document.pdf.PDFOperationFailureHelper.read(PDFOperationFailureHelper.java:67) at com.adobe.document.pdf._PDFFactoryStub.openPDF(_PDFFactoryStub.java:29) at com.adobe.EJB_PDFAgent.getRemotePdfDocument(EJB_PDFAgent.java:803) ... 33 more

Thanks & Regards,

Sharath

Message was edited by: sharath m.g

Former Member
0 Kudos

Hi Sharath ,

have you check these two options.

1)select (Check) No Password Change Required

2) make sure your your ADSUser is a part of ADSCallers

Parent Group

3)you may restart your server.

4) Check the ADS service

http://<host>:<your port number>/AdobeDocumentServices/Config

Select the test link

Submit without entering the parameters

use ADSUser and password you use when creating user

If you get back the version number, then your config is fine, otherwise please re-read and redo all the config.

If you have the version number, please check the security provider make sure you use the basic authentication User: ADSUser and correctly typed password. This is part of the configuration document. You can take a look at document for more details.

Check the authentication modes.

These are the options which i used earlier to solve the probelm.

Hope it will help you.

Else contact your System ADMIN or logon a OSS message to SAP.

Cheers,

Ranjan

Former Member
0 Kudos

Hi Ranjan,

Thanks for all the help that you have provided. I checked for the checkbox and parent group ADSCallers. I followed the steps that you mentioned( We restarted our server ). The test link returned the version number with this message:

"HTTP/1.1 200 OK

Connection: close

Set-Cookie: <value is hidden>

Set-Cookie: <value is hidden>

Server: SAP J2EE Engine/7.00

Content-Type: text/xml; charset=UTF-8

Date: Thu, 22 Jun 2006 13:22:54 GMT

<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

Required stream: "PDFDocument" not found.

</pns:value></pns:RpString><pns:RpString><pns:name>Error_Level</pns:name><pns:value>0</pns:value></pns:RpString><pns:RpString><pns:name>Results</pns:name><pns:value></pns:value></pns:RpString><pns:RpString><pns:name>VersionInfo</pns:name><pns:value>705.20051005114147.242570</pns:value></pns:RpString></pns:rpStrings></rpl:Response></rpl:rpDataResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> "

Now, i tried to deploy the application. We obtain runtime exception:

" Root Cause

The initial exception that caused the request to fail, was:

" com .sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Severe : PDFDocument is NULL. Exception : Service call exception; nested exception is: java.net.ConnectException: Connection refused: connect ".

If you are able to decifer this exception( i am totally lost ) kindly help me out.

Regards,

Sharath