Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using WebDynpro api's in java Application

Hi all,

Let me explain what i am doing.

I am trying to use WebDynPro API's in java.

With the help of the e-learning by Angel Dichev on Extracting xml data from PDF using WebDynPro Api's,I created an ejb in which the code for data extraction is placed in a business methos which accepts pdf content as inputstream and gives back the xml output as string.I have created a java application which will call the ejb method and supply the input to the EJB.I have given the runtime references in the ear file which is deployed in the server.

For some pdf contents (passed as inputstream) exceptions are raised and for some the output comes perfectely.

Please tell me what i am missing and where

I am posting the exception for your understanding

Error : com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException:

Processing exception during a "GetData" operation.

Request start time: Fri Dec 21 19:12:34 IST 2007

com.adobe.ads.exception.FailedCreationException:

Specific error information:

$$$/Err/PDFCommands/PDFlibError=: PDF command failed due to PDFlib error: ^0

The file is damaged and could not be repaired.

General error information:

IDL:com/adobe/document/pdf/PDFOperationFailure:1.0

Exception Stack Trace:

com.adobe.ads.exception.FailedCreationException:

Specific error information:

$$$/Err/PDFCommands/PDFlibError=: PDF command failed due to PDFlib error: ^0

The file is damaged and could not be repaired.

General error information:

IDL:com/adobe/document/pdf/PDFOperationFailure:1.0

* at com.adobe.EJB_PDFAgent.getRemotePdfDocument(Unknown Source)*

* at com.adobe.EJB_PDFAgent.getFormType(Unknown Source)*

* at com.adobe.ads.request.GetData.execute(Unknown Source)*

* at com.adobe.BaseADSRequest.doWork(Unknown Source)*

* at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)*

* at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)*

* at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)*

* at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)*

* at sun.reflect.GeneratedMethodAccessor2225.invoke(Unknown Source)*

* 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)*

* ... 32 more*

Former Member
Not what you were looking for? View more on this topic or Ask a question