Skip navigation
tipitaii
Currently Being Moderated

Export PDF to Word Exception!

Jul 21, 2011 11:54 PM

Hi all,

 

I have written the code below. I have an exception and i could not export a pdf file to word document. Please help me ASAP. Is there any body knows how can ı solve this problem.

 

Code

//Creating a web service object.

 

GeneratePDFServiceService genSerClient = new GeneratePDFServiceService();

genSerClient.Credentials =

 

new System.Net.NetworkCredential("xxxxxxx", "xxxxxxxx");

//pdf document

new tekalcy2_adobepdf.BLOB pdfDoc = new tekalcy2_adobepdf.BLOB();

pdfDoc.binaryData=System.IO.File.ReadAllBytes(@"C:\test.pdf");

pdfDoc.contentType ="PDF";

 

 

List<mapItem> mapResult = new List<mapItem>(genSerClient.ExportPDF(pdfDoc, @"C:\test.pdf", "DOC", null));

 

 

Note: I use the ExportPDF function but i got exception:

The exception is Below:

ALC-PDG-1000-000: com.adobe.livecycle.generatepdf.client.ConversionException: ALC-PDG-001-000-Conversion failed because of an exception.

Caused by: org.omg.CORBA.TRANSACTION_ROLLEDBACK:   vmcid: 0x0  minor code: 0  completed: No
at com.ibm.ws.Transaction.JTS.TxClientInterceptor.receive_common(TxClien tInterceptor.java:322)
at com.ibm.ws.Transaction.JTS.TxClientInterceptor.receive_exception(TxCl ientInterceptor.java:130)
at com.ibm.rmi.pi.InterceptorManager.invokeInterceptor(InterceptorManage r.java:596)
at com.ibm.rmi.pi.InterceptorManager.iterateClientInterceptors(Intercept orManager.java:408)
at com.ibm.rmi.pi.InterceptorManager.iterateReceiveException(Interceptor Manager.java:699)
at com.ibm.rmi.corba.ClientDelegate.intercept(ClientDelegate.java:996)
at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:447)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1185)
at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:764)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1215)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:484)
at com.adobe.native2pdf.bmc._ConverterAgentStub.convertToPdf(_ConverterA gentStub.java:34)
at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.convertToPdf( NativeToPDFTransactionCallback.java:191)
at com.adobe.pdfg.callbacks.NativeToPDFTransactionCallback.doInTransacti on(NativeToPDFTransactionCallback.java:163)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapt erBean.doRequiresNew(EjbTransactionBMTAdapterBean.java:218)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTr ansactionBMTAdapter_3af08fdf.doRequiresNew(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute (EjbTransactionProvider.java:133)
at com.adobe.idp.dsc.transaction.impl.DefaultTransactionTemplate.execute (DefaultTransactionTemplate.java:79)
at com.adobe.pdfg.BMCCaller.invokeInSMT(BMCCaller.java:769)
at com.adobe.pdfg.Native2PdfCaller.callNativeBMC(Native2PdfCaller.java:7 79)
at com.adobe.pdfg.Native2PdfCaller.exportPDF(Native2PdfCaller.java:276)
at com.adobe.pdfg.GeneratePDFImpl.exportPDFCommon(GeneratePDFImpl.java:1 418)
at com.adobe.pdfg.GeneratePDFImpl.exportPDF(GeneratePDFImpl.java:1377)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(Defaul tPOJOInvokerImpl.java:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(In vocationInterceptor.java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.do InTransaction(TransactionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapt erBean.doBMT(EjbTransactionBMTAdapterBean.java:197)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTr ansactionBMTAdapter_3af08fdf.doBMT(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute (EjbTransactionProvider.java:95)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.inte rcept(TransactionInterceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.inte rcept(InvocationStrategyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept( InvalidStateInterceptor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept (AuthorizationInterceptor.java:132)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterc eptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.procee d(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineI mpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.soap.axis.AdobeAxisServiceProvider.in vokeMethod(AdobeAxisServiceProvider.java:222)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider .java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java: 323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454 )
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69 9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper .java:1096)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper .java:1037)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilte rChain.java:145)
at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(I nvocationFilter.java:43)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterI nstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilte rChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilt erChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFil terManager.java:832)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFil terManager.java:679)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletW rapper.java:566)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(Servle tWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(Cac heServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java: 748)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.jav a:1466)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.jav a:119)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimina tion(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInforma tion(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(Htt pICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted (AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFutu re.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChanne lFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.j ava:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: org.omg.CORBA.UNKNOWN:   vmcid: 0x0  minor code: 0  completed: No
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at com.ibm.rmi.iiop.ReplyMessage._getSystemException(ReplyMessage.java:2 55)
at com.ibm.rmi.iiop.ReplyMessage.getSystemException(ReplyMessage.java:19 0)
at com.ibm.rmi.iiop.ClientResponseImpl.getSystemException(ClientResponse Impl.java:232)
at com.ibm.rmi.corba.ClientDelegate.intercept(ClientDelegate.java:968)
... 78 more

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points