PDF Printing with Apex Listener: XSL over 32k gives error

I'm using Ape Listener 2.0.2 deployed in GlassFish. We do have some custom designed XSL which are over 32k. We tried apex_util api but get the error
Error processing branch. ORA-00942: table or view does not exist
My XML is 5966 bytes and XSL is 36551 bytes.
Please help.

Apples and Oranges really.. Why do you want TWO App Servers running on your server?   The HTTP Server requires a 3rd party product to produce PDF files (FOP)... The Apex Listener is the PREFERRED App Server over the HTTP server.  I would suggest switching your access to the APEX Listener based port and try shutting down the HTTP server unless it offers you something the Listener is NOT providing..
Thank you,
Tony Miller
LuvMuffin Software

Similar Messages

  • Apex 4.2.2 PDF Printing with Apex 2.0 Listener

    We recently installed Apex 4.2 with the Apex 2.0 Listener and can successfully print interactive reports and classic reports to PDF.  I viewed Mark Sewtz PDF Printing with Apex 4.2.2 and saw how he is using third party tools to format reports.  We have also looked into the Jasper Report Integration Toolkit, but have only got it working on the Tomcat environment, not WebLogic.
    I'm trying to download a classic report in PDF format with our logo displayed at the header.  In the print attributes section, there is a section for header.  I've tried adding the following in the header section:
    <img src = "http://hr.unm.edu/common/images/unm_dept_logo.gif">
    No Logo Prints
    #APP_IMAGES#unm_dept_logo.gif
    Prints in header:
    wwv_flow_file_mgr.get_file?
    p_security_group_id=3930016164431413%26p_flow_id=106%26p_fname=unm_dept_logo.gif
    #WORKSPACE_IMAGES#unm_dept_logo.gif
    Prints in header: /i/unm_dept_logo.gif
    I've also added the logo in the report region, prior to the columns printing, but no logo downloads to PDF.
    Does the Apex Listener only render text?  Is there any way to get the logo to print in the header without using a third party tool?  Any suggestions are greatly appreciated.  Thanks!

    Hi,
    There are different options to include images in your PDF exports. What's important to understand though is that with the PDF export functionality we separate the formatting from the actual data. So the formatting is defined in your RTF or XSL-FO templates and the data is stored in the XML that APEX generates based on your report data. We have several formatting options exposed on the print attributes pages, i.e. you can define page formatting, dimensions, fonts, colors, etc - all of these are applied to what we call generic XSL-FO templates. Those templates are generic in that they can be used with different reports, having variable numbers of columns and variable column names. Those formatting attributes can not be used however with named column templates, such as those that you generate with BI Publisher or those third-party tools I talked about in my Blog.
    So if you want to use these formatting options, you need a generic report layout - which you get out of the box using the built-in layout. But you also have the option to create your own generic report layout (see Shared Components -> Report Layouts). When creating a custom generic report layout, you'll get a copy of the built-in layout as a starting point. Once created, you can manually modify this layout to meet your needs. As you edit this template, you'll find a number of #....# substitution strings. This is what APEX uses at runtime to fill in your formatting values as well as to assemble your generic layout based on your result set.
    Now one way to include your own image would be to add an image reference to this generic report layout. You can't use the page header or footer attributes on the print attributes page for that because the FOP rendering engine does not understand or translate HTML. It renders XSL-FO. So to add your own image reference, you need to use XSL-FO mark-up. If you want to add an image to your page header, look for the #PAGE_HEADER# substitution string in the "Page Template" attribute of your generic report layout. You should be able to find the following:
    <fo:inline xsl:use-attribute-sets="page-header">
        #PAGE_HEADER#
    </fo:inline>
    Now assuming you have a file stored in your local images directory on localhost, you could add the following external graphic reference:
    <fo:inline xsl:use-attribute-sets="page-header">
        <fo:external-graphic src="http://localhost:8080/i/cloud.gif" content-height="scale-to-fit" height="30px"  content-width="150px" scaling="non-uniform"/>
        #PAGE_HEADER#
    </fo:inline>
    Once you're done with your chanages, save the report layout and edit your report. Go to the print attributes and select your generic report layout and then run your report page and export the PDF. Provided the APEX Listener is able to find this external image reference, it will now be included above your report in your PDF document.
    Regards,
    Marc

  • Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex  FOP.WAR

    Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex fop.war/apex_fop.jsp
    Hello,
    Excuse me bad english.
    I have a problem with Oracle XE and Printing from Reports over Tomcat 6.0.13.
    I have update Oracle XE with Apex 3.1 and it works fine.
    Now i have tried to Print a report to PDF. So i have deployed the FOP.WAR from Apex Utilities under Tomcat.
    I see in Tomcat Manager http://localhost:8888/manager/html/list that the FOO
    has been deployed and is running.
    If i try to print then i get this Message down to this page.
    Can anybody give me a hint to solve this problem???
    Hint
    To resolve the problem i have installed Oracle OC4J with same Port and deployed
    the same foo.war file.
    Then works and all printing from Oracle Apex work fine and okay.
    So i thing the Apex and Oracle work correct.
    But we have a small Application so i would prefer to work with Tomcat a application Server.
    Becaus of previous Errors have copied some *.jar files to C:\tomcat6.0.13\lib
    but i thing this is not the Problem.
    18.03.2007 18:12 546.765 xml.jar
    18.03.2007 18:07 634.772 xmlmesg.jar
    18.03.2007 18:14 1.238.899 xmlparserv2.jar
    10.06.2007 22:59 674.005 xquery.jar
    18.03.2007 18:11 3.059 xsqlserializers.jar
    18.03.2007 18:14 194.691 xsu12.jar
    10.11.2005 13:13 7.043.169 tools.jar
    .... and preinstalled files
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:604)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:120)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    ------------------------------------------------------------------------

    at the end of the apex_fop.jsp put the follow code just before the driver.run(); line:
    out.clear();
    out = pageContext.pushBody();
    and explanation of why this works is here:
    http://forums.sun.com/thread.jspa?threadID=5307942

  • PDF printing using APEX Listener

    Hi -
    I have one report region a an apex page which displays a classic report based on a simple query. I also have a some header information above the report which are the application item information passed from the previous page. I am trying to generate a PDF report(using APEX listener), the report comes fine but it doesn't show the header information that is displayed above the report. Is there a way to do that? I tried putting some values in "Print Attributes" --> "Page Header" section but it just shows it as static text. Please provide your expertise.
    APEX version: 4.2.2
    Oracle:11gR2
    Printing Engine: Apex Listener
    Thanks,
    -Seenu

    You will need to build an Xsl document and load it into APEX..  Here is the link showing how to do advanced printing with APEX..:
    Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • PDF printing with APEX version 3.2.1 and OAS 10.1.2.3

    Hello,
    Is it possible to print PDF's with APEX version 3.2.1 and OAS 10.1.2.3? (Not using freeware- that'll never fly with my company).
    Thanks!

    JasperReports will do this and there is an integration toolkit out there for it and APEX.
    BI Publisher is available, and costly
    Oracle Reports can do this and is still available..
    One question, why would your company shy away from open source software like Cocoon/FOP? It comes with APEX 3.2 as an installable WAR and if you use the APEX listener, it comes with that for FREE!!
    Thank you,
    Tony Miller
    Webster, TX

  • PDF printing and APEX Listener.

    Hi,
    I noticed in the Application Express statement of direction, dated February 2, 2010, the section regarding the Application Express Listener stated "improved PDF printing". I construed (possibly misconstrued) this to mean the APEX Listener might include its own FOP processor, thus simplifying the setup and use of simple PDF printing in APEX.
    As I can't find any mention of PDF printing in the Listener Installation Guide, I was wondering if this was a misinterpretation on my part or has this functionality simply not been implemented? If it has not been implemented, are there plans to do so in a later release?
    Regards
    Andre

    This feature slipped out for this release. We will revisit for a future version.
    -kris

  • PDF-printing in APEX Listener

    Hello,
    We have installed Listener apex_listener.1.10.179.10.43 on AIX . . . . .
    What is the way to confige PDF printing for Apex 4.0 ?
    Thanks for the help
    Edited by: user11979779 on 7-jul-2010 1:15

    You should ask this in the apex forum itself. This one is specific to the listener.
    -kris

  • PDF Printing 11g APEX

    Hi,
    On and off for the last wee while, I have been fighting to configure PDF printing with APEX in my 11g instance. Specifically I am always producing PDF files of size 0 bytes.
    I am running 11g on Windoze and have BI Publisher 10.1.3.2.1 installed. The instructions are easy enough (I got it working when I was running 10g!), but I cannot get it working this time :-(
    Can anybody point me the way of error logs for both APEX and BI Publisher so I can have a dig and see if I can find anything wrong.
    Thanks.

    Graham,
    When setting up your 11g database, did you perform the post-installation tasks, particularly enabling network services? Since APEX reaches out to BI Publisher through http, you'll have to enable network services when setting up the database, because in 11g, that's disabled by default.
    Here's the link to the documentation:
    http://download.oracle.com/docs/cd/B28359_01/install.111/b32006/postcfg.htm#BGEJJIHE
    In case the link doesn't work, it's chapter 4.5.6 Enabling Network Services in Oracle Database 11g, of the Database 11g installation guide.
    Regards,
    Marc

  • Generate pdf with apex listener 2.0

    hi,
    we would like to generate pdf out of apex.
    as long as we have text (IRR) WITHOUT special characters (öäü), everything is working fine.
    when we have this characters in a text-columng (IRR), then we get a .pdf with the following content:
    javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x3) was found in the element content of the document.
    could this be a problem of the characterset? but if, where to change what?
    - we defined in ADMIN in 'report printing' / 'instance-settings': oracle-apex-listener
    - we are working with apex-listener 2.0 (integrated in weblogic-server)
    - we work with APEX 4.2.1.00.08
    thanks for any ideas
    roland
    Edited by: user514151 on 01.04.2013 23:24

    I have this same problem with windows-1250 encoding.
    Invalid byte 1 of 1-byte UTF-8 sequence.
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:687)
         at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:557)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1753)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1426)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2754)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
         at oracle.dbtools.apex.fop.FOPUtils.fop2pdf(FOPUtils.java:72)
         at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.requestTOPDF(FOP2PDF.java:87)
         at oracle.dbtools.apex.hooks.postProcess.FOP2PDF.postProcess(FOP2PDF.java:49)
         at oracle.dbtools.apex.hooks.ProcessorRegistry.postProcess(ProcessorRegistry.java:56)
         at oracle.dbtools.apex.ModApex.handleRequest(ModApex.java:241)
         at oracle.dbtools.apex.ModApex.doGet(ModApex.java:98)
         at oracle.dbtools.apex.ModApex.service(ModApex.java:316)
         at oracle.dbtools.rt.web.HttpEndpointBase.modApex(HttpEndpointBase.java:260)
         at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:110)
    Any solution ?
    Regards
    md

  • PDF Printing with FOP/Apache Tomcat/J4LFOPServer in windows

    Hi everyone,
    I have been learning to create pdf report with Apex 4.2 and BI Publisher 10 which I have been successful with. Now I like to learn how to create pdf reports using FOP thinking of the customers who will not spend money on BI Publisher. I have gone through the documents and procedures described in Java 4 Less. http://www.java4less.com/apache/fop.php and http://www.java4less.com/fopdesigner/fodesigner.php?info=apex. Configured Apex instance setting accordingly.
    For default layout a tabular pdf report is created.
    I have created an xsl-fo file named Formatted_report.fo on same query and xml file from report query with BI Desktop. But when I try to print a formatted output with Formatted_report.fo report layout it does not work(J4LFOPServer ). but same layout with .rtf template works fine (BI Publisher Print Server).
    Please help
    Hasan Al Mamun
    Programmer/Assistant Systems Analyst
    Bangladesh Bank
    Dhaka, Bangladesh
    Edited by: 913230 on Dec 15, 2012 9:37 AM

    hi,
    if you use the J4lFOPServer as you write, you can set it in debug mode as described here:
    http://www.java4less.com/apache/fop.php?info=faq#debug
    you will then see the XML data and the FO data in the server window. Maybe you can see there if there is an error and that can help you fixing it.
    Jon

  • Problem regarding PDF printing in apex 3.1 and 11g database using cocoon

    Hi,
    i am configuring pdf printing on apex 3.1 (database 11g on windows XP OS) with cocoon/apache tomcat/fop using steps given in Carl Backstrom blog
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    I am using cocoon 2.2.10 / tomcat 6.0.20 and JDK 1.6
    I did everything as was mentioned in Carl's blog and everything configured without any hassle. I even enabled network services for FLOWS_030100 user on database. Even after doing all the steps I'm getting the error
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
    I'm confused and don't know what to do next.

    Hi,
    By default, the ability to interact with network services is disabled in Oracle Database 11g release 1 (11.1). Therefore, if running Oracle Application Express with Oracle Database 11g release 1 (11.1), use the new DBMS_NETWORK_ACL_ADMIN package to grant connect privileges to any host for the FLOWS_030100 database user. Failing to grant these privileges results in issues with PDF/report printing, specifically, you will get the following error message:
    ORA-20001: The printing engine could not be reached because either
    the URL specified is incorrect or a proxy URL needs to be specified.
    Follow the steps mentioned in the Oracle Application Express Installation Guide, [Enabling Network Services in Oracle Database11g|http://download.oracle.com/docs/cd/E10513_01/doc/install.310/e10496/post_inst.htm#BGEJJIHE]. Also refer to the [troubleshooting section|http://download.oracle.com/docs/cd/E10513_01/doc/install.310/e10496/post_inst.htm#BHAGIHIB] in case you receive an ORA-44416: Invalid ACL error after running the previous script.
    /Kenny

  • PDF printing with oc4j apache fop not working

    I am configuring PDF printing in Apex 3.1.1. I have set up a shared component report query with a simple query. I have implemented the oc4j standalone and implemented the fop.war as specified in the "pdf printing in Apex" documentation. When I use the test button to verify the output of the report, I am redirected to a 404-page not found and the oc4j instance logs the following:
    08/09/09 12:02:36 [ERROR] Logger not set
    08/09/09 12:02:36 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/09/09 12:02:36 [INFO] building formatting object tree
    08/09/09 12:02:36 [INFO] setting up fonts
    08/09/09 12:02:36 [INFO] [1]
    08/09/09 12:02:36 [WARNING] table-layout=auto is not supported, using fixed!
    08/09/09 12:02:36 [WARNING] Sum of fixed column widths 662000 greater than maximum specified IPD 658800
    08/09/09 12:02:36 [INFO] Parsing of document complete, stopping renderer
    Any ideas why this is happening?
    Database is oracle 9.2.0.7
    OC4J standalone 10.1.3

    Hello,
    Just did some more search on this, and apparently it's a more common problem:
    Re: PDF problem FOP mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • PDF Printing in APEX 3.0

    Hello. I am working my way thru the PDF Printing in Application Express 3.0 document. I am currently stuck at step 5: Configure Oracle Application Express to use the JSP for PDF printing. When I access the Admin Services home page and select Manage Services, I cannot locate the Instance Settings, under the Manage Environment Settings. Is there an error in the documentation or am I just not in the right spot?
    Thanks
    Dennis

    Hi Denise,
    That .cpio file is not a CD image file, it is actually an archive file containing the files and directory layout that you need to extract first. You can do that by using the (Linux/Unix) command cpio like this -
    cpio -idmv < file.cpioNote that BI Publisher is an extra licensed option that you will need to make sure you're covered for.
    As an alternative (and if you're willing to live without the 'Advanced' support that BIP provides), then you can use Apache FOP. Carl Backstrom made a fantastic video showing how to set this up, which you can find here -
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    APEX does not come with a built-in BI Publisher, I think you're thinking of the pre-supplied FOP configuration in APEX 3.0.1 (which makes it even easier to setup now).
    If you haven't looked through it already, I can highly recommend the "PDF Printing in APEX" document available here -
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    Hope this helps,
    John.

  • Pdf printing with linux client

    hi,
    i'm working with a SuSE 9.3 Client and I want to use PDF-Printing with the Acrobat Reader. With Windows Xp it works fine, but if i choose the PDF-Printer with the Linux-Client nothing happens. The PDF-Job exist in the cue. What do i have to do that it works?
    P.S. I`am from germany ;-)

    Thanks! But on which machine do i have to put the lp command?
    Application-Server?
    Tarantella Server?
    Client?
    I have put it on my Client! But nothinng happens.
    My PATH --> /home/me/bin:/usr/local/sgdee:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/qt3/bin
    my script -->
    me@my-notebook:~> cat /usr/local/sgdee/lp
    #!/bin/bash
    LPINFILE=/tmp/.nclp.$$
    PATH="/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin"
    export PATH
    [ -f $1 ] && mv $1 $LPINFILE
    [ -f $2 ] && mv $2 $LPINFILE
    echo "Print: $* -> $LPINFILE" >> /tmp/nclog.`logname`
    echo "/usr/bin/xpdf -display $DISPLAY $LPINFILE; rm -f $LPINFILE" | at now
    exit 0
    me@my-notebook:~>

  • PDFs print with magenta when printing in greyscale

    PDFs print with magenta when printing in greyscale

    BTW... Asking the SAME thing THREE TIMES WON'T change the answer.

Maybe you are looking for

  • ADB for A2107A-H win xp not working

    Hi, I just bought a new A2107A-H running Android 4.0.3. To debug a few apps I wrote with the eclipse ide I tried to connect the A2107A-H with adb - no success. The adb runs on win xp. I tried the suggestions in the thread ADB for A2109 and red a lot

  • Installed os X Mountain Lion and now computer won't boot (first had keyboard issues-reverse caps)

    Hi all, I just updated my macbook air to osX mountain lion and now it will not boot at all.. At first I was having issues with the keyboard and keys typying weird characters.. and the caps lock was stuck on reverse.  Now I have nothing.. Can someone

  • Event handling in portal through sap netweaver.

    Hi... Please let me know..how to evoke event handling in iviews..thru sap netweaver in ep.

  • Publishing Error

    Computer says : Publish Error There was an error updating .Mac. THis comes up after it going through all the reading of pages/sites etc. and before it says Publishing will now continue in the background... I have tried it three times yesterday and no

  • Excel

    Hello masters!! Im encountering a problem when I download a file in excel. Actually I dont know if its abap side or excel thing. the problem is I have a description field example of text in description field. example ::    color blue #house what happ