JSP/Java to Generate PDFs

I am looking into what is involved in dynamically generating PDFs in Java. The project that I am looking into involves taking data submitted via a form and generating a PDF from it. Can anyone direct me to a good site, tutorial, or give some advice on this matter?
Your replies are greatly appreciated!
sr

BTW,
What is the major benefit in using Jasper report?
If we design our report template (layout) in simple HTML with some embedded custom tag to retrieve dynamic content from a database and other static data such as picture, words, etc, the result will be a html page containing both static and dynamic information.
I am just wondering how can I save time using Jasper report
Cheers
Trajano

Similar Messages

  • Sample JAVA program: generate PDF from xsf:fo File

    Hi everybody,
    we already have an xsl that converts an xml into an xsl:fo file.
    I am now looking for a very simple sample that converts this xsl:fo into a PDF.
    It would be profitable if the java-sample would read the xsl:fo file as an input-stream.
    Thanks
    Regards
    Mario

    Hi,
    as I am not a JAVA expert.
    Do you know how to reuse the generated PDF in the java sample not as a fileOutputStream.
    I need to attach the generated PDF to a mail-xml-document.
    (I know haw to generate a mail structure in java-mappping)
    What kind of object is the generated PDF within the java?
    Any ideas
    Regards Mario

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • JNDI error while generating pdf from crystal reports in java

    Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
    1. Server Name      = testdb
    2. Database Name  = testdb
    3. User
    4. Password
    I am using CR XI.
    In CRConfig.xml i had given following details.
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>user</JDBCUserName>
         <JNDIURL>password</JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>testdb</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
         </GenericJDBCDriver>
    </JDBC>
    When i am calling from java as standalone, i am getting following error.
    JRCAgent1 detected an exception: Error finding JNDI name (testdb)
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)      at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
    Can anyone let me know where is the problem?

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • Generating pdf using java..

    hi everybody!
    is there any API that could be used to generate PDF,WORD docs from java. For WORD, there is some API JACOB, but for some reason it won't work for me.
    suggestions and code samples are highly appreciated.
    thanks in advance,
    /rahul

    I have successfull used FOP API
    http://xml.apache.org/fop
    DS.

  • JSP to Generate PDF Document

    Hi,
    I am developing a jsp system that needs to generate a pdf document for every page before proceding to the next on the click of a button.
    What i have now is itext but itext is a time taker! i have to literally code every page and extract values from my classes.
    What i would like is if there was such an api that could auto generate the jsp page into pdf since all the values will be there when the user clicks to procede to the next page.
    Would really appreciate help!!
    Thanks,
    Dev

    Try to find out more about Filters usage.
    It's a kind of wrapper that get executed when a user request a resources(page for instance) before the file(specified in form action) takes control, this is used to carry out common process to a group of pages without coding each piece of code in each page,
    AND when a response is send back, this same Filter get control to include or modified current response to client.
    I think that in order to parse the response and generate .pdf files(if the pdf for current page does not exist) you should write the html response in xml format. or at least you should use a component like JTidy that builds an XHTML-compliant page from a non-xhtml compliant page.
    In Filter implementation you should parse the response and transform it using Formatting Object Processor such as FOP or XING, or anyother
    Hope this help as starting point
    Regards
    OO

  • Generate PDF from VC without using BI-JAVA or PDF convertor on client side

    Hi there
    I need to generate a PDF from Visual Composer
    a pdf final result,  generated by several BAPIS, several tables , logo, static text, etc
    but I do not want to use the two solutions below described.
    I want to use a component or something installed on the server, to facilitate user's life.
    Is there any PDF convertor in R3? I have to install an Adobe Component?  other idea?
    a. In this thread ilustrates how to generate a PDF in a very simple way using a print function
    and a PDF convertor previously installed.
    Re: How to export from VC a bapi output table to a PDF file
    b. I have read another solution that uses the PCD location of the Web Analizar (BI-Java).
    Thanks, Alex Market

    Again, NO BI-JAVA. NO PDF convertor on client side.
    My idea is to create a Flex component with the PDF convert library.
    Something like this,
    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/
    Then embed it to the Visual Composer
    like Amir Mimran show us in this  "How to guide"
    Re: NEW: Flash Component Consumption in Visual Composer 7.01 SP5
    The problem that I see is
    our installation is 7.0 SP18, we have to upgrade to 7.01 SP5 at least,
    the Flash Components feature is available on 7.01 SP5 (NetWeaver 2004s Enhancement Pack 1, SP5)
    and more important, currently, this functionaily is only available in Windows Platform.
    Unix flatform will be supported from ehp1 sp6, according to this post
    VC model including flash component is not visible in run-time.
    regards, Alex

  • Generate PDF from Java

    Is there any way to generate PDF directly from any kind of Pane (especially JEditorPane or JTextPane) in Java (Swing) application? I would like to write a program, that shows the user a document summarizing user's actions and allows to print it or save as a PDF file.
    If you know any external library or extension that make my dreams come true, please let me know :)
    Andrew Orkan

    I use this library for many years. It`s realy very good. I`ve never had any problem with it. It's extremly easy to use. Many of examples are included.
    http://www.lowagie.com/iText/

  • Generating pdf file through jsp/servlet

    One of the MIME types for servlets/JSP response is "application/pdf".
    After setting Content-Type header "application/pdf" in servlet by
    setContentType() method, I am unable to get the output in a pdf file.
    Please let me know how I can generate a pdf file through Servelt/JSP
    response.
    Thanks.

    We've got a product which allows you to convert XML to PDF from a JSP. It doesn't currently take straight HTML, but the XML syntax we use is pretty similar (you can use CSS2 and so on), so for many pages it doesn't take a lot of conversion.
    If you check out http://big.faceless.org/products/report/examples.jsp you'll see a few examples, two of which are dynamically run from a JSP. There's a free trial download for you to test with (although it's a commercial product).
    Hope that helps.
    Cheers... Mike
    Mike Bremford - CTO mike at big.faceless.org
    Big Faceless Organization http://big.faceless.org

  • Generating PDF doc from java..

    hello all!
    i am looking for some API that would help me generate PDF or WORD document in my JSP or servlets.
    i have to present data and some graphs in PDF document.
    suggestions are appreciated.
    thanks in adavance,
    /rahul

    thanks aswhin. iText workds just fine.
    i am also looking to generate word documents from my servlets.
    do you have any suggestions?
    thanks once again.
    /rahul

  • Error while generating PDF - in Bex Web

    Hi Experts,
    I am currently having the issue that I receive the error "Error while generating PDF" when using the "Print Version" functionality. This problem only occurrs for the Bex Web Query. I know that the ADS service is configured correctly- The webservice test is successful and other applications (Guided Procedures, MSS) also use it successfully.
    Please see below the excerpt from the default trace:
    A message was generated:
    ERROR
    Error while generating PDF
    com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExportRenderingRootNode_0001
    Message: 28
    Stack trace: java.lang.ArrayIndexOutOfBoundsException: 28
    at com.sap.ip.bi.export.xfa.impl.SizeCalculator.getColumnSizes(SizeCalculator.java:178)
    at com.sap.ip.bi.export.impl.ExportController.setSizes(ExportController.java:220)
    at com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:611)
    at com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:408)
    at com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:336)
    at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:58)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:453)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:105)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:252)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:3809)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:3867)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:3510)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3470)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2489)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:892)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:813)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:456)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    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:175)
    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)
    If you have any idea or clue it would be greatly appreciated.
    Thanks in advance for every support,
    Jan

    Hi Jan,
    Most possible causes for encountering this issue are:
    Possible cause:
    - The ADS is installed on a plattform, that is currently not supported by SAP for ADS. Please check the avaliablity at: Product Availability Matrix
    - Mixing of different Netweaver releases (NW04 and NW04s) -> This is unfortunatelly not possibble the J2EE engine release has to match with the ABAP stack release in order connect them properly.
    - The ADS SP level does not match the J2EE engine SP level. -> Please update the software components to have the same support package level.
    Hope this helps!!
    Regards,
    Arafat

  • Error when Generate PDF File on SAP BW 7.3

    Hello friends i have a problem.
    I have a report that was built using the web designer deployed on Production Environment.  This report has the option for print a PDF file but this process fail.  I ran the SAP Support Desktop tool  over SAP BW and i find the following error:
    I followed this note and the notes internally but i don't find the solution (Parameters of timeout, checking the web service, etc...)
    Aditionally i check the "fatal erros" on the NWA and i get 3 types of errors just when i generate the PDF:
    The first:
    Failed to allocate a connection due to an exception (the
    full stack trace is logged below): org.omg.CORBA.COMM_FAILURE:   vmcid: SUN
    minor code: 2  completed: No
    The second:
    org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 2
    completed: No
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 2 completed: No
    at
    com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:179)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at
    com.adobe.service._ControlAgentStub.setLogLevel(_ControlAgentStub.java:22)
    at
    com.adobe.service.ProcessResource.allocateConnection(ProcessResource.java:572)
    at
    com.adobe.service.ConnectionResource.getConnection(ConnectionResource.java:39)
    at
    com.adobe.service.J2EEConnectionFactoryManagerPeerImpl.getConnection(J2EEConnectionFactoryManagerPeerImpl.java:117)
    at com.adobe.ads.remote.ConnectionFactoryHandler.getConnection(Unknown
    Source)
    at com.adobe.ads.remote.EJB_XMLFormAgent.getConnection(Unknown
    Source)
    at com.adobe.ads.remote.EJB_XMLFormAgent.renderAll(Unknown Source)
    at com.adobe.ads.operation.support.RemoteRenderer.renderAllRemote(Unknown
    Source)
    at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown
    Source)
    at com.adobe.ads.operation.support.RemoteRenderer.renderAll(Unknown
    Source)
    at com.adobe.ads.operation.Render.renderWithoutCache(Unknown Source)
    at com.adobe.ads.operation.Render.execute(Unknown Source)
    at
    com.adobe.ads.operation.ADSOperation.doWork(Unknown Source)
    at
    com.adobe.ads.request.ADSRequest.processOperations(Unknown Source)
    at
    com.adobe.ads.request.ADSRequest.process(Unknown Source)
    at
    com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
    at
    com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
    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:597)
    at
    com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    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:597)
    at
    com.sap.engine.services.ejb3.util.BeanMethods.executeReflectMethod(BeanMethods.java:314)
    at
    com.sap.engine.services.ejb3.jacc.ExecuteMethodPrivilegedAction.run(ExecuteMethodPrivilegedAction.java:38)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    javax.security.auth.Subject.doAs(Subject.java:396)
    at
    com.sap.engine.services.ejb3.jacc.ContainerJ2EESecurityProviderBaseImpl.doAs(ContainerJ2EESecurityProviderBaseImpl.java:262)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_RunAs.invoke(Interceptors_RunAs.java:24)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
    at
    com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:204)
    at
    com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process0(RuntimeProcessingEnvironment.java:710)
    at
    com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:662)
    at
    com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.process(RuntimeProcessingEnvironment.java:322)
    at
    com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPostWOLogging(ServletDispatcherImpl.java:199)
    at
    com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:65)
    at
    com.sap.engine.services.webservices.servlet.SoapServlet.doPost(SoapServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at
    com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
    at
    com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at
    com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at
    com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at
    com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at
    com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    The Third and the last
    Exception thrown:
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA exception when
    calling the PDF object after 8882
    msec
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: EXPORT XFA
    exception when calling the PDF object after 8882 msec
    at
    com.sap.ip.bi.export.xfa.impl.Document.provideContentStream(Document.java:279)
    at
    com.sap.ip.bi.export.xfa.impl.Document.writeDocumentToByte(Document.java:527)
    at
    com.sap.ip.bi.export.xfa.impl.PDFConverter.getBinaryResultContainer(PDFConverter.java:183)
    at
    com.sap.ip.bi.export.impl.ExportController.getBinaryResultContainer(ExportController.java:537)
    at
    com.sap.ip.bi.export.controller.ExportResult.getExportResult(ExportResult.java:83)
    at
    com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:70)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:556)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:142)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:389)
    at
    com.sap.ip.bi.webapplications.pageexport.impl.PageExportRenderingRootNode.processSnippetRendering(PageExportRenderingRootNode.java:274)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.buildRenderingTree(Page.java:1299)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRenderingRootNode(Page.java:4780)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRendering(Page.java:4746)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.doProcessRequest(Page.java:2750)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page._processRequest(Page.java:714)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4802)
    at
    com.sap.ip.bi.webapplications.runtime.impl.page.Page.processRequest(Page.java:4795)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.doProcessRequest(Controller.java:1191)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller._processRequest(Controller.java:1047)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:1015)
    at
    com.sap.ip.bi.webapplications.runtime.impl.controller.Controller.processRequest(Controller.java:72)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:446)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:362)
    at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:26)
    at
    com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
    at
    com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)
    at
    com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
    at
    com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at
    com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
    at
    com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at
    com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
    at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
    at
    com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
    at
    com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
    at
    com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
    at
    com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:201)
    at
    com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
    at
    com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at
    com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at
    com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at
    com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at
    com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at
    com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at
    com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at
    com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at
    com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at
    com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at
    com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by:
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument
    Processor failed to process RenderRequest Due to the following Reason
    Server
    Exception: javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentCreationContext.execute(PDFDocumentCreationContext.java:183)
    at
    com.sap.tc.adobe.pdfdocument.impl.PDFCreationContextImpl.execute(PDFCreationContextImpl.java:103)
    at
    com.sap.ip.bi.export.xfa.impl.Document.provideContentStream(Document.java:225)
    ... 83 more
    Caused by:
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException: Server
    Exception: javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:381)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.doSoapCall(PDFObjectDII.java:91)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObject.execute(PDFObject.java:111)
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:176)
    at
    com.sap.tc.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
    ... 86 more
    Caused by: java.rmi.ServerException: Server Exception:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.processFault(SOAPTransportBinding.java:2075)
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1416)
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:991)
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:945)
    at
    com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:76)
    at
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectDII.invoke(PDFObjectDII.java:328)
    ... 90 more
    Caused by:
    com.sap.engine.services.webservices.jaxrpc.exceptions.SOAPFaultException:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.RollbackException: Transaction:with ID 43783 will be
    rolledback because resource manager RM com.adobe.service.ResourcePeerImpl was
    not able to prepare its transaction branch. Returned result from prepare is
    TMFAIL.
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.FaultUtil.buildFaultException_SOAP11(FaultUtil.java:225)
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.FaultUtil.buildFaultException(FaultUtil.java:65)
    at
    com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.processFault(SOAPTransportBinding.java:2031)
    ... 95 more
    Finally i compare the environments (Production, Dev and QAS) and in DEV and QAS this report works perfectly (generate PDF file correctly). I compare configurations of them and they have the same parameters and values.
    The Support Desktop tools set on green all (DEV and QAS)
    I found an article about the ADS rfc that use the adobe document service, so i check in the environment production and this doesn't exists (using SM59).  I check in the environments DEV and QAS and this doesn't exists, but in both evironments appears just "ADS is enabled" and works perfectly.
    I tried to execute the program test of PDF's (FP_TEST_IA_01 and FP_TEST_00) on the three environments and not working on all.
    Please help me with this, i am crazy with this!!!
    Thanks and greetings.
    Alex

    Hi Alex,
    follow up as per Note:
    1052659
    See defaultTrace.trc and create SAP customer message if needed.
    cheers
    m./

  • Generate Pdf Report using OAF

    Hi,
    I need to generate Pdf Report using OAF.. I dont know how to generate Pdf reports..
    Can anyone help me to do it using OAF..
    Please tell me what steps i need to use and any jar files required for doing it...
    Thanks,
    Babu

    Hi Guys ,
    I found the classes the DocumentHelper class is found in
    oracle.apps.xdo.oa.common.DocumentHelper
    The properties class was in java.util.properties
    I compiled the code and when i run it i get the following exception
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: Got minus one from a read call; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at runregion.jspService(runregion.jsp:96)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    I get the exception at this point in the code :
    String dataDefCode = "DTFEMP" ;
    String dataDefApp = "CIE";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    Thanks
    Tom...

  • Using FOP for generating PDF report

    Hi,
    I followed the otn article for generating pdf files uing FOP.
    But I was unable to do so. When I debugged it I found that when the javascript tries to get the XMLFO output from htmldb it gets a blank xml output. I tried to use the exact same url the java script uses ( I got the url by using alerts in java script) I got back an empty xml file.
    I am using htmldb 2.0 on 9.2.0.5.
    Can any one point me to the right direction
    thanks
    amit

    Hi,
    I am using iAS 1.0.2.2.2 (Jserv) it is an Oracle Applications Environment.
    I finished the whole note.
    1. Downloaded the FOP jar files.
    2. Unzipped the jar files in the JAVA_TOP of the Applications environment
    3. JAVA_TOP is already in the class path of the jserv
    4. Added the jsp file to the correct directory
    5. Created the htmdb application with the java script
    6. I put some debugging alerts in the java script
    Now when I click on the pdf link I don't get any output. Because of the debugging statement in the java script I was able to figure out that the java script is not getting any output when it calls back the htmldb for the XML FOP outout.
    I finally tried the URL which the java script uses directly. It came back with an empty xml file.
    thanks
    amit

  • Crystal Report generate PDF with J2EE problem

    Dear All
    I am having a great problem on generating PDF file by Crystal Report in J2EE.
    I have my J2EE application runs Crystal Report to generate PDF files.
    However for a report, i hit the following error (red color) when the PDF is generating.
    But is no problem for the other reports.
    Here is the code  that i used to generate the PDF
    My OS and Java version as follows
    Window 2003 server.
    Java 1.4.2_04
    Please Kindly Help
    Thanks very much
    public static void export(HttpServletRequest request, HttpServletResponse response, String reportPath, ArrayList paramList, ReportExportFormat outFormat) throws Exception{
         System.gc();
      HttpSession session = request.getSession(false);
      Object reportSource = getReportSource(request, reportPath);
      ReportExportControl exportControl = new ReportExportControl();
      if(paramList != null && paramList.size()>0){
       exportControl.setParameterFields(getParamFields(paramList));
      ExportOptions exportOptions = new ExportOptions();
      exportOptions.setExportFormatType(outFormat);
      PDFExportFormatOptions pdfexpopts = new PDFExportFormatOptions();
      exportOptions.setFormatOptions(pdfexpopts);
      exportControl.setReportSource(reportSource);
      exportControl.setExportOptions(exportOptions);
      exportControl.processHttpRequest(request, response, session.getServletContext(), null);
      exportControl.dispose();
        public static IReportSource getReportSource(HttpServletRequest request, String reportPath) throws Exception{
      ReportClientDocument oReportClientDocument = new ReportClientDocument();
      HttpSession session = request.getSession(false);
      oReportClientDocument.open(reportPath, 0);
      return oReportClientDocument.getReportSource();
    00:57:08,671 ERROR reportdefinition Thread-28 - Report printer was not valid, switching to default printer.
    00:57:08,687 ERROR objectformatter Thread-28 - com.crystaldecisions.reports.dataengine.k: |Y
    00:57:09,343 ERROR b Thread-28 - Disk Exporter: no output file was created by an exporter
    00:57:09,343 ERROR b Thread-28 - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); java.lang.IllegalArgumentException

    Hi,
    I have tried this code but stil the same.
    However i tried setup another tomcat and application in the other machine and the only job for  the application is exporting the report that has problem, then the error is gone.
    So i guess that is the memory size problem.
    Thanks for this
    One more question about the memory size between Tomcat and Crystal report.
    I have set in catalina.bat as
    set JAVA_OPTS = "-Xms2048M -Xmx1024M"
    and CRConfig as
    <JVMMaxHeap>1024000000</JVMMaxHeap>
    <JVMMinHeap>512000000</JVMMinHeap>
    1. Is that the correct setting.?
    2. The memory in the JAVA_OPT and is the MAX and MIN memory that java would use,
        then is the Max memory in CRConf is 1024M out of the java heap size or the application use another 1024 memory

Maybe you are looking for

  • I have a ringtone in iTunes, but can't get it to "sounds" file

    I have a ringtone in iTunes, but can't get it to "sounds" file

  • ITunes doesn't open after updating into Mavericks.

    Please help me how to reinstall the itunes in mac OSX? I couldn't delete my itunes program in mac book because it is required by OS X. Do I need to reinstall the itunes?

  • Adjust bit rate on movie replay

    When I go to YouTube to view videos on my PB G4, I can adjust the streaming bit rate from 480 to 360 to 240. I need to play at 240 on my unit in order to keep the video clip streaming without halting, probably due to my limited RAM capacity of 1.25 m

  • Does macbook have to have internal hard drive to boot?!

    As i'm having partition problems with the aftermarket hard drive installed in my macbook, I am resigned to re-partitioning it to install SL and restoring from time machine. However, the old stock hard drive I have is in a caddy, I kept it as a backup

  • ITMS URLs don't open anymore in iTunes 6...

    After upgrading iTunes to v.6, all iTunes Music Store URLs don't work anymore. For example, I open www.apple.com, and there is iTMS link at the bottom of the page. I click on it and ... Apple.com is reloaded, that's all. If I click on the same link s