Printing PDF documents using FOP

Hi,
I seem to be getting the following error when printing to PDF using FOP:
report error:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1186
ORA-12571: TNS:packet writer failure
I've set up PDF printing by following the (FOP) instructions in the following link:
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
I've verified that my OC4J container and the jsp page apex_fop.jsp is running as it should as I can get PDF documents back if I call the jsp page outside of APEX (by sending in my own template and xml request parameters).
I've also verified that I do hit the apex_fop.jsp page when trying to print from within the APEX application. The problem is that the two parameters template and xml are both null when trying to print PDF from APEX.
It appears as though APEX is not sending in the template and xml request parameters.
My test case is to create a simply report query in shared components, use a generic layout, select the pdf option and click on Test Report. The result is the error shown above.
Any ideas? I know I'm close!
btw, I'm using 10g and APEX 3.1
Sanjeev

thanks Dimitri ..
I have progress... I went back and reconfig'd my oc4j, since Ihad donethat a long time ago.
Now I am getting the 500 Internal Server Error
Servlet eror: ... The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
The application.log give me a dump ...
09/01/20 18:55:29.515 10.1.3.4.0 Started
09/01/20 18:55:29.718 fop: 10.1.3.4.0 Started
09/01/20 19:00:45.906 fop: Servlet error
oracle.xml.parser.v2.XMLParseException: Start of root element expected.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:713)
at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:321)
at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
at apex_fop._jspService(_apex__fop.java:71)
at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher
.java:713)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher
.java:370)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler
.java:871)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler
.java:453)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler
.java:221)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor
.java:303)
at java.lang.Thread.run(Thread.java:619)
Not sure what to make of this, but it does give the xact same error each time.
For what it's worth, I can successfully call a test page per Marc Sewtz's blog, so conceptually something is working, which is progress. I'll keep at it, but suggestions are welcome. Thanks for the direction.
Karen

Similar Messages

  • Can I print the last page of a PDF document using command line?

    Hi
    I am in a situation in which I constantly have to deal with multiple PDF documents and I need to print the last page in each of these, and ONLY the last page. The total number of pages will vary for each file, so the page number for the last page will also vary.
    I would really prefer to not do this manually, by opening up each file in the visible Adobe Reader window and then print.
    Question:
    Is there a way with Adobe Reader (maybe with the help of some other Adobe product) to print only the last page of a PDF document using some kind of command line without opening up the PDF file in the visible Adobe Reader window?
    I'm using Windows.
    Thanks in advance,
    Regards,
    Emil

    Thank you for taking the time to reply.
    I tried both ways and neither works.  It gives me a prompt box that I have to click "next" for every page but after going thru all pages, nothing is sent to the printer.
    Also, all directions I've read indicate it will print to the default printer.  If my default printer is on a network, will that cause problems....
    and...
    should I be getting a prompt box on every page?  I thought all this would happen behind the scenes and not force me to interact with every page.
    dc

  • Not possible to print a SWF in a PDF document using the Print command in Ad

    Have a PDF with 3 pages, page 1 and 3 contains text and the 2nd page contains a SWF animation made with Xcelsius 2008. When printing the document using the Print function in Adobe the 2nd page is always empty, the SWF is never printed.  To be able to print the 2nd page containing the SWF animation I must use the print function in the Flash player (right click on the SWF animation).
    This problem should, according to Business Objects, be solved with the new version of Adobe Reader 9, but the problem still appear.

    I have seen this.  Adobe 9 cannot print embedded flash objects.  Xcelsius Engage/2008 includes a print button you can include on your dashboards to allow you to print them from your pdf files.

  • Printing a PDF document using Java 1.4 Printing API

    Hi,
    When I tried to print a PDF document using JAVA 1.4 Printing API, I got the following exception.
    Exception in thread "main" sun.print.PrintJobFlavorException: invalid flavor
    at sun.print.Win32PrintJob.print(Win32PrintJob.java:290)
    at Printing.main(Printing.java:40)
    I am able to print the same PDF document using Acrobat reader.
    Is PDF format not supported in JAVA 1.4 printing API? or is something wrong in my code?
    here is the sample JAVA program that I was using
    import javax.print.*;
    import javax.print.attribute.*;
    import java.io.*;
    public class Printing {
    public static void main(String args[]) throws Exception {
    String filename = args[0];
    PrintRequestAttributeSet pras =
    new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUT_STREAM.PDF;
    PrintService defaultService =
    PrintServiceLookup.lookupDefaultPrintService();
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream(filename);
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(fis, flavor, das);
    job.print(doc, pras);
    Thread.sleep(10000);
    System.exit(0);
    Thank you
    Sumana

    Here's a pure Java solution (that works!):
    http://www.mycgiserver.com/~zhouwu/pdf/readme.html
    The caveats are:
    - prints only to the default printer
    - requires a properties file located in the home directory
    my workaround for the last:
         * Print a PDF file to the default printer (might consume lots of memory!).
         * <p>
         * <b>Required:</b>
         * <ul>
         * <li>a file "acrobat.properties" needs to be in the working directory. The content is:
    <table align="center" bgcolor="#E0E0E0" border=1 cellpadding="10" cellspacing="0"><tr><td><pre style="margin-top:0; margin-bottom:0">
    #com.adobe.acrobat.Viewer Properties
    #Wed Oct 29 20:34:05 PST 2003
    com.adobe.acrobat.AcceptedLicAgreement=true
    com.adobe.acrobat.Fax_Fine_Mode=true
    com.adobe.acrobat.Find\:FindAll=false
    com.adobe.acrobat.Find\:FindBackwards=false
    com.adobe.acrobat.Find\:FindWholeWord=false
    com.adobe.acrobat.Find\:MatchCase=false
    com.adobe.acrobat.Open_Dialog_Directory=C\:\\temp\\
    com.adobe.acrobat.Open_Dialog_File=itext.pdf
    com.adobe.acrobat.Print_Method_Known=true
    com.adobe.acrobat.Shrink_To_Fit=false
    com.adobe.acrobat.SitePreferencesURL=file\://localhost/C\:/pdf/acrobat-site.properties
    com.adobe.acrobat.Use_Print_Server=false
    com.adobe.acrobat.util.fontDirectories=C\:\\Winnt\\Fonts
    com.adobe.acrobat.util.fontIgnoreExtensions=.fon;.pfm;.ini;.lst;.txt;.doc;.ttmap;.z;.enc;.dir;.afm;.f3b;.pfa;.spd;.ps;.bepf;.map;.alias;.scale;.all;.upr
    </pre></td></tr></table>
         * <li>The JAR files PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip in the CLASSPATH.
         * </ul>
         * <p>
         * Note: the file "acrobat.properties" is expected to be in the user's home directory. As this is not always feasible,
         * the system property "user.home" is mapped to "user.dir" for the time of execution.
         * @param fileName Name of PDF file to print.
         * @throws Exception on error.
         * @see <a href="http://www.mycgiserver.com/~zhouwu/pdf/readme.html">PDF Server (Silent) Printing</a>
        public void printPDF(String fileName) throws Exception {
            String oldHome = System.getProperty("user.home");
            System.setProperty("user.home", System.getProperty("user.dir"));
            PDFPrinter vi = new PDFPrinter();
            vi.activate();
            vi.setDocumentInputStream(new FileInputStream(fileName));
            vi.printAll();
            System.setProperty("user.home", oldHome);
        }//printPDF()I just need the following additional files in my CLASSPATH: PDFPrinter.jar, acrobat.jar and MRJToolkitStubs.zip. Despite the note at the site above that "printing quality is not very good", i can't agree: the print quality is quite good. Not perfect, but acceptable for most uses.
    (Tested on Windows 2000 SP4, J2SE 1.4.2_03, hp laserjet 2300dn)

  • Print PDF file using Acrobat SDK - Warning message

    Hello,
    We are trying to create automatic program in c# that will print all pdf files located in a specific folder, using Adobe Acrobat 9.0 SDK.
    Whenever the application tries to print file, we receive a warning message ("WARNING! A script has requested to print an Acrobat file. This could print an entire document. Do you want to proceed printing?").
    If we press yes, the file is printed, but next time we'll run the application, this message will appear again.
    Since this application supposed to run automatically (with no interaction with the end users), we want to prevent this warning message from appearing.
    How can we eliminate this warning message?
    Is there any other way to print PDF files using Adobe Acrobat from another application?
    Thanks,
    Lilach.

    joeln3:  I believe the original post refers to a client application, not a web page.  Why use JavaScript from within a client application?  I understood their use case to involve a client app referencing the PDF Library, loading various PDF files, and using one (or more) of the PDF Library's Print methods to invoke Acrobat's internal print routines.
    Dave

  • Problems in Windows 8 creating PDF documents using Adobe Acrobat Pro 9.5.5

    I am running Windows 8 with the latest version of MS Office (version 14) and Adobe Acrobat Pro 9.5.5.  I was not having any problems making/printing PDF documents until about 30 days ago.  The only things that I can think of that have changed during this time period is 1) I updated my Office Suite to version 14 from the previous version and, most recently, 2) my Adobe Acrobat Reader program was automatically updated to the latest version.  I ended-up uninstalled Adobe Reader becuase the new program became my default for openning all Adobe PDF files, even when I tried to force my computer to use Adobe Acrobat Pro as the default (becuase doing so allows me to edit docments with features not available in the free Reader version).  When I go to print a Word document, for example, to Adobe Acrobat, the process stalls/stops at the point where you are supposed to choose a location to print/safe the new PDF document file.  All I get is the Save-As Screen with most of the buttons and folder tree blank (see example below).  After 5-10 seconds, "not responding" shows up in the title of the Save-As Screen and I have to click the "X" box in the upper right corner to abort.  This problem seems to have first started when trying to print pictures from the Windows picture viewer.  After a while long, I noticed that the same problem occured when printing from my internet browser (Firefox), but I coudl still print from Word or Excel.  Now, as of the last couple of days, I can't print from any program except the basic Paint software program.  I think this may actually be a Windows issue because when trying to toublshoot this problem, I re-installed Adobe Acrobat Pro and it did not help. I also tried making PDF documents using the free PrimoPDF software and had the exact same problem.  I have no idea where to go from here.  All I know is that I desperately need to create PDF documents and cannot!  Please help!!

    You're asking a lot of ancient Acrobat to work with an Office that never existed when it was made. "Just updated my office suite" is a massive change, and Window 8 didn't exist at that time either...

  • Printer will no longer print PDF document--"no pages selected" although specific pages were selected?

    Brother printer will no longer print PDF document--"no pages selected" although I did specify pages.  Have reviewed and tried Adobe trouble shooting, not helpful.  Cannot print page as image.  Brother says to contact Adobe

    There may be some security issues related to the USPS PDFs.
    http://www.certified-mail-envelopes.com/signatures-usps-certified-mail-return-receipt-requested
    I can't help with the scan/print problem. You seem to have done everything I would try.
    I don't know if maybe using a registry cleaner would help.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

  • HT5364 I installed OX X Moutain Lion and now I have trouble printing pdf documents--get messages like "plug in failed" or "no pages selected on printer" when clearly pages are selected

    I installed OS X Mountain Lion on my desktop MAC and since then I cannot print pdf documents---I get messages like "plug in failed" or sometimes "no pages selected on printer" when clearly pages are selected

    DO NOT USE PREVIEW TO FILL OUT PDF FORMS, IT WILL DESTROY PDF FILES. Sorry, but I had to shout here to prevent damage to your PDF files.
    Here is one of the symptoms when you fill out a PDF form with Preview: If you save it and return it to the author, they will not be able to see the text that you've added to form fields - unless they click on a field, which will reveal the contents of just that field. You can recover from this problem, but Preview will also remove other field types, and will actually rewrite your complete PDF while ignoring what it does not understand. Take a look at this blog post for more information about the damage that Preview will cause: Preview.app - Killer of PDF Files

  • I can't print PDF files using Firefox on my MAC I tried the suggested help PDF files are blank and can't be downloaded on MAC whic is my problem

    I can't print "Living Social" vouchers, financial statements that are in a PDF format

    There have been problems reported with the latest Adobe Reader update on Mac.<br />
    See [[/questions/925119]]
    You can disable the Adobe Reader plugin in Firefox and use the Adobe Reader program or Preview instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.

  • Problem printing pdf documents created by ps2pdf

    When I try to print pdf documents that have been created from ps documents by ps2pdf, the output is corrupted. Many letters are missing but included graphics are printed just fine. This happens with my HP printer and with cups-pdf, when I print the pdf document to a new pdf document. There are no errors in the logs, so I don't know what is goning wrong. On a windows PC, the pdf documents are printed correct too. Other pdf documents, created by pdflatex are printed correct.
    If I don't use ps2pdf and print the ps document directly, the output is correct. I have tried different pdf-viewers without any difference. About half a year ago, everything was working fine, so could it be related to : "As of version cups 1.5.3-3 ArchLinux makes use of the new full pdf-based printing workflow."?

    Flo,
    In my limited experience with the iOS iWork apps, they weren't designed for those who are picky about the layout. They are highly automatic and if you don't like the result, it's not easy to override. If the format when printed leaves unpleasant margins, I think your best approach is to reshape the tables in such a way that they will better fit the target media. If you are having large top margin, make the tables narrower, then when they scale to fit the paper, then may fill it better.
    Jerry

  • Unable to print PDF files using Acrobat 8.

    I had to uninstall and then reinstall Office for Mac 2011.  I don't know if it's related or not,  but since doing so I have been unable to print PDF files using Adobe Acrobat 8. After opening a PDF file and hitting print, Adobe Acrobat 8 crashes. Any suggestions?  I already uninstalled and reinstalled Adobe Acrobat 8, but it still won't print PDF files. O

    While you are having difficulty in printing a PDF file, you may try the  subsequent steps. If you are in a rush and would like to print a simple  document such as a letter, a form, or a calendar, you may print it as an  image. Next option is that you may need to update your printer driver   if the PDF does not print, the PDF prints as a blank page or with  unreadable text or if you get an error message when you print.  Sometimes, when you print a file that is on a thumb drive or a network,  the file gets damaged. Then you have to open the copy on your hard drive  and print again. At last, you can try printing the PDF using another  printer and check your printer connection too if the PDF does not get  printed. get more help to fix unable to printer PDF file hope this helps you.
    Good Luck!

  • How to print PDF files using java print API

    Hi,
    I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
    Thanks in advance

    Mike,
    Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
    My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
    boolean showPrintDialog=true;
    PrinterJob printJob = PrinterJob.getPrinterJob ();
    printJob.setJobName ("Contract.pdf");
    try {
    if (showPrintDialog) {
    if (printJob.printDialog()) {
    printJob.print();
    else
    printJob.print ();
    } catch (Exception PrintException) {
                   PrintException.printStackTrace();
    Thank you and a happy new year.
    Cheers,
    Chris

  • While reading PDF document using Speak Screen option, iBooks doesn't turn pages automatically

    I have been using the speak screen option in iOS 8 to read books and pdf documents in iBooks app. iBooks app turned pages automatically and kept on reading the screen till i updated my phone to iOS8.3. Now, the app stops reading the screen once the page is completed. I have to stop my vehicle, unlock phone, open iBooks app, swipe down with two fingers. It's irritating.
    Earlier, I have read dozens of books and pdf documents using this function while doing exercise or routine tasks. now it's not possible unless someone helps.
    Thanks for your support in advance.
    Mukesh

    @Mukeshnnms
    Unfortunately, I am having precisely the same issue since updating to iOS 8.3 with my iPhone 5s.
    I just filled out a bug report here > https://www.apple.com/feedback/iphone.html, which I've often read on these forums is the best way to get some resolution. I don't know if you read the list of "fixes" for 8.3 or not (here: iOS 8.3), but, it includes the following:
    "Fixes an issue in Speak Screen where speech will not start again after pausing"
    So...apparently, in fixing THAT problem, they broke something else. At least for some of us...
    <Note to self: WAIT even longer than usual to do updates, read about bugs first.>

  • Hp laserjet pro 200 color MFP M276n not printing PDF documents

    Hello
    I am having problems printing PDF documents from our hp laserjet pro 200 color MFP M276n.
    I get a blank sheet of paper and a message on the printer saying 49 service error - turn off then on
    I can print word/excel documents.
    Many thanks
    Karen

    Hi,
    As I understand you get a 49 error while printing PDF document from hp laserjet pro 200 color MFP M276n.
    Kindly follow these steps to resolve the issue.
    1. Open the PDF document you want to print.
    2. Click File > print > Click on the Advanced option > select the print as image option.
    though I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution

  • HP Laserjet pro p1102 kills spooler when printing PDF documents

    I have a HP laserjet pro p1102 running on Win7 63x PC.
    When I print PDF documents nothing happens on the printer side.
    Instead the spooler is killed.
    When checking the spool file I can see that the documents have been spooled to the printer.
    New driver install done, aswell as firmware upgrade.
    Acrobar pro 11.0.07.
    Please assist.

    Hi @UFS-HYRAX,
    I see by your post that when printing a PDF the Print Spooler Crashes. I can help you.
    Do you have the same results when printing something else, other then a PDF?
    Clear the Spool folder and restart the Print Spooler.
    How to Clear Current Print Queue In Windows Vista & Windows 7.
    Run the Adobe Updates, the latest version is 11.0.09.
    Print the PDF file as an "image".  From the Adobe print screen, select the button "Advanced",  on that screen you see the box for "print as image". Click on that check it. This should resolve the issue.
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • F110 doesn't clear vendor open items. Interad it creates one more entry.

    Hi! This is the problem I have. I run F110, proposal is great, payment is great, check is printer. Check in FCHR is created. I go back to FBL1N - open item is still there! More that that - another open item with document type - ZP is there, but it sh

  • Sending a text document as pdf by email.

    Hi, I have a plain text document that needs to be send as a pdf document by email. The line type of the text document is PC408-linda, which is 132-character length. I am trying to use the FM ‘SO_NEW_DOCUMENT_ATT_SEND_API1’ for sending the document wh

  • Downloading aborted many times

    i purchased adobe pro.... trying to download... somewhere towards the middle it says that i have another install happening and that i must finish that one first.... Not sure what install is that or how to finish it... I tried to clean everything up a

  • My serial number is not valid?what do i do?

    my serial number is not valid?what do i do?

  • Exporting video downloaded from itunes

    I've downloaded a couple shows from the itunes store and wanted to export them using QT Pro to another format. But when i open the movie the export command is greyed out and cannot be selected. I've tried this with a few different itunes video downlo