Problem displaying PDF in BSP

Hi All,
With the help of Craigs Blog
/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
I coded a BSP to display PDF from a spool number.
I did everything mentioned in the blog. When i execute, the pdf gets displayed, however the data is some unconverted junk data. Can any one suggest what i am doing wrong here.
Heres the coding in the Event handler (OnInputProcessing) :
DATA: radioButtonGroup TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
DATA: fileUpload TYPE REF TO CL_HTMLB_FILEUPLOAD.
DATA: cached_response TYPE REF TO if_http_response.
DATA: response TYPE REF TO if_http_response.
DATA: guid TYPE guid_32.
fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
                       request = request
                       id      = 'myUpload'
                       name    = 'fileUpload' ).
file_name      = fileUpload->file_name.
file_mime_type = fileUpload->file_content_type.
file_length    = fileUpload->file_length.
file_content   = fileUpload->file_content.
radioButtonGroup ?= CL_HTMLB_MANAGER=>GET_DATA(
                       request = request
                       id      = 'display_type'
                       name    = 'radioButtonGroup' ).
display_type = radioButtonGroup->selection.
IF display_type = 'convertspool'.
  DATA: itab TYPE TLINE,
        witab TYPE TABLE OF TLINE,
        output TYPE STRING,
        outputx TYPE XSTRING.
  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      SRC_SPOOLID              = 0002344365
      NO_DIALOG                = 'X'
    TABLES
      PDF                      = witab
    EXCEPTIONS
      ERR_NO_ABAP_SPOOLJOB     = 1
      ERR_NO_SPOOLJOB          = 2
      ERR_NO_PERMISSION        = 3
      ERR_CONV_NOT_POSSIBLE    = 4
      ERR_BAD_DESTDEVICE       = 5
      USER_CANCELLED           = 6
      ERR_SPOOLERROR           = 7
      ERR_TEMSEERROR           = 8
      ERR_BTCJOB_OPEN_FAILED   = 8
      ERR_BTCJOB_SUBMIT_FAILED = 9
      ERR_BTCJOB_CLOSE_FAILED  = 10
      others                   = 11.
  if sy-subrc EQ 0.
    LOOP AT witab INTO itab.
      CONCATENATE
        output
        itab-tdline
      INTO output.
    ENDLOOP.
****Convert the Character String to Binary String
    data: r_string  type string.
    data: R_XSTRING type xstring.
    call function 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        text   = output
      IMPORTING
        buffer = outputx.
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING
add_c_msg = 1.
    l_pdf_len = xstrlen( outputx ).
    cached_response->set_data( data   = outputx
                        length = l_pdf_len ).
    cached_response->set_header_field( name  =
if_http_header_fields=>content_type
                                       value = 'application/pdf' ).
    cached_response->set_status( code = 200 reason = 'OK' ).
    cached_response->server_cache_expire_rel( expires_rel = 180 ).
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_32 = guid.
    CONCATENATE runtime->application_url '/' guid '.pdf' INTO
display_url.
    cl_http_server=>server_cache_upload( url      = display_url
                                         response = cached_response ).
  ENDIF.
  RETURN.
ENDIF.
Regards
Sri

With the help of some other posts and blogs.. am able to display the pdf now.
However, the default magnification(zoom) is always 44.5%. Any ideas as to how this can be increased or set to a default value.
Sri

Similar Messages

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Problems displaying PDF files in browser - Help requested

    The scenario is that I visit a website that has information available via a link that normally would open a PDF document in a browser window.  The sort of document, that once open, if I clicked 'File-save as' in the browser would immediately save as a PDF file.  In the current situation I click on the link and all I get that opens is a screen full of random characters from top to bottom.  I have tried right click 'file save as' on the link that would open the PDF in the browser, but all it wants to save is a .PNG file, i.e. http://echa.europa.eu/echa-styled-theme/images/doc_lang/en.png - which is what I get from right click 'properties' on that link which should open the PDF in the brawser - normally I would see a .PDF file described. I therefore can't even download the file to open as a PDF direct from a stored location on my own PC - all it seems to see is the graphics format - this probably why when the browser goes to open the PDF file I get the random characters, i.e. the application is doing its best to translate what it does see.  I would be grateful for some advice.  Pertinant information follows:
    1.  It happens across more websites than just one example that I've quoted.
    2.  It happens on my desktop only - I don't have the problem on 4 other portable computers, including ones running the same O/S
    3.  Desktop is running Windows Home Pro, all updates executed, running the latest version of Acrobat reader with all updates executed - I tried yet another uninstall, reboot, new download, reinstall, reboot etc. yesterday.  Desktop is HP Pavillion with 12GB RAM
    4.  I get the random character display when running IE9 on the desktop, I have also replicated the problem with other versions of IE installed instead.  If I try using Chrome as a browser it goes away and tries and just fails to open the link entirely and reverts to the original page.
    5.  I've already checked online for similar problems and can confirm that all the Adobe plugins are installed per what seems standard advice I have also checked the internet settings in Adobe Acrobat preferences and all seems fine.
    6.  Thing like the browsers and Adobe arobat are running as per their standard set-ups with nothing else done to these.
    7.  Any other PDF files stored on the hard drive of the desktop open in Acrobat reader without problems
    8.  Acrobat reader version is 11.0.06.70
    Any assistance to open the PDF files in the browser and get it working particularly with IE would be great, I am quite IT literate and can try most things.  Many thanks

    Moderator
    I have no idea how to edit the above message, but apparently it has been rejected.  I cannot understand why, I am a regular contributor in many forums and have never suffered the indignity of having had a message rejected before.  The message contains an excellent example of the problems I am having in the following link Vacancies
    How on earth can I demonstrate the problems I am having without being to post an example - that example has both sorts of links on one page, ones I can open and ones I can't - if anyone with technical knowledge is trying to help me then that is just the sort of page that would be useful to help solve the problem.  Rather than the link to the ECHA website in the above posting (which I note was approved).  I struggle with your logic in accepting one message and rejecting the other.  It is difficult enough as a user to describe a problem in words let alone have the best example of the problem rejected without explanation and no right of appeal on the email that I got telling me.  Not happy here!   All I am trying to do is to solve the problem I have

  • To Display PDF from BSP

    Hi,
    Im calling a method in my BSP application which gives me PDF output.
    CALL METHOD ref->******
      EXPORTING
        lv_vbeln      = lv_vbeln
      IMPORTING
       l_header      = l_header
       wa_head_right =
       message       =
       l_vbeln_text  =
       with_hold     =
       with_hold_n   =
       g_flag        =
       l_pricekey    =
         formout  = formoutput.
    My formoutput-PDF has the xstring, and to call this PDF file i have written the below code
    l_pdf_xstring = formoutput-pdf.
    CREATE OBJECT cached_response TYPE cl_http_response
                            EXPORTING add_c_msg = 1.
    data = l_pdf_xstring.
    l_pdf_len1 = XSTRLEN( l_pdf_xstring ).
    CALL METHOD cached_RESPONSE->SET_CONTENT_TYPE
      EXPORTING
        CONTENT_TYPE = 'application/pdf'.
    cached_response->set_cdata( data   = data
                                length = l_pdf_len ).
    CALL METHOD cached_response->if_http_response~set_status
      EXPORTING
        code   = 200
        reason = 'OK'.
    CALL METHOD cached_response->if_http_response~server_cache_expire_rel
      EXPORTING
        expires_rel       = 180.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_32 = guid.
    v_guid = guid.
        call method cl_http_ext_csif=>access_info_get
          changing
            crep_http = lv_crep_http
          exceptions
            failed    = 1
            others    = 2.
        if lv_crep_http-http_port is not INITIAL.
          write lv_crep_http-http_port to lv_crep_http-http_port no-zero.
        else.
          write lv_crep_http-http_sport to lv_crep_http-http_sport no-zero.
        endif.
    CONCATENATE runtime->application_url '/' v_guid '.pdf' INTO display_url.
    cl_http_server=>server_cache_upload( url      = display_url
                                         response = cached_response ).
        if lv_crep_http-http_port is not INITIAL.
          concatenate 'http://' lv_crep_http-http_serv ':'
          lv_crep_http-http_port display_url into display_url.
        else.
          concatenate 'https://' lv_crep_http-http_serv ':'
          lv_crep_http-http_sport display_url into display_url.
        endif.
        data: lv_url1 type string.
        lv_url1 = display_url.
    When I open the generated link, its giving that my PDF file is damaged or cannot be displayed. I have found the same code in many forums, its not working in this particular program. Please help me out with this.
    Thanks in advance.

    With the help of some other posts and blogs.. am able to display the pdf now.
    However, the default magnification(zoom) is always 44.5%. Any ideas as to how this can be increased or set to a default value.
    Sri

  • Problems displaying PDF in Portal EP7 - only able to display HTML form

    Hi,
    Anyone knows how to force showing of PDF based form instead of HTML form in the portal? We're currently on EP7 SPS10.
    We have tested ADS in backend, meaning that travelforms show up as PDF there and we can control what to show with a switch in a table. But it doesn't seem to be picked up in the portal. Regardless of whether we set the parameter sap.xss.tra.UsePDF or not (both in the iview property Application Parameters and/or in the resource "EMPLOYEE_TRAVE_TRIP_FORM_PDF" of service "EMPLOYEE_TRAVEL_TRIPFORM") it still displays the HTML form.
    Has anyone experienced this before? We're having a hard time figuring out where and how to enable PDF forms. Any help is greatly appreciated!
    Thanks,
    Hans Petter Bjørn

    Hans,
    We have the same problem.Did you figure out how to do this? Any info would be extremely helpful.
    Thanks
    Ronnie

  • Problem displaying PDF file in new window.

    Using NetBeans 6.5, Internet Explorer 7.
    I am using the code example from BalusC at the site:
    http://balusc.blogspot.com/2006/05/pdf-handling.html
    I am having no problem reading and displaying the PDF file, but it displays it in the same window,
    not a new window and it overwrites the current page, so I can't use the back arrow to fetch the page that is overwritten.
    I am using a commandLink to fetch the file.
    Does anyone know why I am not getting a new window or tab for the display?
    The jsp portion for the link is:
    <h:commandLink action="#{MainPage.linkAction3_action}" id="linkAction3"
              style="color: rgb(0, 0, 0); font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; left: 280px; top: 0px; position: absolute"
              target="_blank" value="Insurance Document"/>The "MainPage.linkAction_action" method just makes a call to the display function:
        public String linkAction3_action() {
            sb1.setMessage("");
            dsb.setFilePath("C:/");
            dsb.setFileName("Insurance_Summary.pdf");
            dsb.downloadPDF();
            return null;
        }And the downloadPDF() method is basically a cut and paste from the BalusC site;
        public void downloadPDF()
            // Reference:   http://balusc.blogspot.com/2006/05/pdf-handling.html
            // Prepare.
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExternalContext externalContext = facesContext.getExternalContext();
            HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
            File file = new File(getFilePath(), getFileName());
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open file.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                // Init servlet response.
                response.reset();
                response.setContentType("application/pdf");
                response.setContentLength( (int)file.length());
                response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            catch( Exception e )
                System.out.println( "Error displaying file.");
            finally {
                // Gently close streams.
                close(output);
                close(input);
            // Inform JSF that it doesn't need to handle response.
            // This is very important, otherwise you will get the following exception in the logs:
            // java.lang.IllegalStateException: Cannot forward after response has been committed.
            facesContext.responseComplete();
        }

    1) window.open will open a new window and call a servlet.
    window.open ("http://path_to_yourservlet/PDFServlet", "newWindowName");
    if you ant to pass some values from your web page to the servlet you can pass as
    window.open ("http://path_to_yourservlet/PDFServlet?param1=value1&param2=value2", "newWindowName");
    2) The servlet will fetch and display the pdf file.
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class PDFServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet
         private final static int DEFAULT_BUFFER_SIZE = 1000;
         public PDFServlet()
              super();
         public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String fileName = "Insurance_Summary.pdf";
              File file = new File("C:/"+fileName+"");
              response.setContentType("application/pdf");
         OutputStream output = response.getOutputStream();
         BufferedInputStream input = null;
         //BufferedOutputStream output = null;
         try {
         // Open file.
         input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
         response.setContentLength( (int)file.length());
         response.setHeader("Content-disposition", "inline; filename=\"" + fileName + "\"");
         output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
         // Write file contents to response.
         byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
         int length;
         while ((length = input.read(buffer)) > 0) {
         output.write(buffer, 0, length);
         output.flush();
         catch( Exception e )
         System.out.println( "Error displaying file.");
         finally {
         input.close();
    Regards,
    Milind Dhar

  • Problem displaying PDF in Firefox 4 browser

    Since installing Firefox, I cannot download a PDF file larger than 5MB and get it to display in the browser. A file of 4.9MB works OK. If I disable the Adobe Reader plug-in, I can download the larger file and it will display in Adobe. Same issue with the Foxit plugin.

    I have more information.  The problem is with the SRC parameter with my object tag.  It runs fine on Adobe Reader 10.1.0.  It doesn't with 10.1.2.  Using Fiddler2 I captured data using Reader 10.1.0 and 10.1.2.  In both cases, the data appears to be the same.  I get an HTTP/1.1 200 OK in both cases.  So the file is downloaded, it just isn't loaded into the Reader in 10.1.2.  Any ideas?

  • Safari Problem displaying pdf's

    I updated as suggested by Updater to Safari 5.1.5 and now no pdf's will display from websites - just black screen. I am running OS10.6.8  How can I go back to previous installation?

    Thanks Carolyn Samit!
    I have a 2012 Macbook and I'm running Safari (6.0.1). The same thing was happening. I ignored it for a while, but then searched and found this posting. After deleting "AdobePDFViewerNPAPI.plugin" I'm able to see the PDFs.
    What caused this? I must have downloaded this Adobe software unknowingly, right? Safari didn't have a problem with this previously ... so was it an upgrade issue with Safari or a user issue (unwittingly downloading Adobe crap)?

  • A problem displaying PDF file in the Web Browser layout.

    I'm hoping someone can help me with this issue.  I need to display my PDF documents in the web-browser layout as part of my daily job.  I use JAWS 14, and many times, when my document is launched, it comes up blank, or at least that's what JAWS reports.  If I press the F5 key to refresh the page, then it displays properly.  I need the document to show up properly when it is initially loaded.  How can I accomplish this?    

    I'm hoping someone can help me with this issue.  I need to display my PDF documents in the web-browser layout as part of my daily job.  I use JAWS 14, and many times, when my document is launched, it comes up blank, or at least that's what JAWS reports.  If I press the F5 key to refresh the page, then it displays properly.  I need the document to show up properly when it is initially loaded.  How can I accomplish this?    

  • Problem displaying PDF with Jasper Reports

    I have the following code that loads a report and displays it in PDF format:
    if(jasperReport==null) {
         logger.debug("Loading...");
         InputStream inStream = null;
         try {
              inStream = getServletContext().getResourceAsStream("/WEB-INF/reports/UnitReport.jasper");
              logger.debug("got inStream");
              jasperReport = (JasperReport) JRLoader.loadObject(inStream);
              logger.debug("Loaded compiled report");
         } catch(Exception e) {
              logger.error(e.getMessage(),e);
         } finally {
              try { inStream.close(); } catch(Exception e) {}
              logger.debug("closed");
    OutputStream outStream = null;
    Connection conn = null;
    try {
         logger.debug("Start build");
         LoginInfo lInfo = (LoginInfo) request.getSession().getAttribute("LoginInfo");
         logger.debug("got name: " + lInfo.getFullName());
         String unitID = (String) request.getParameter("unitID");
         response.setContentType("application/pdf");
         outStream = response.getOutputStream();
         logger.debug("set content type & got OutputStream");
         JRExporter exporter = new JRPdfExporter();
         logger.debug("new exporter");
         conn = DBConnection.getDBConnection();
         logger.debug("got connection");
         //Setup parameters
         Map<String, Object> params = new HashMap<String, Object>();
         params.put("unitID", new Long(unitID));
         params.put("userName", lInfo.getFullName());
         if(debug) {
              logger.debug("set parameters: ");
              logger.debug("  Unit ID:    " + unitID);
              logger.debug("  User Name:  " + lInfo.getFullName());
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, conn);
         logger.debug("built report");
         exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
         exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outStream);
         logger.debug("set output parameters");     
         exporter.exportReport();
         logger.debug("dumped.");
    } catch(Exception e) {
         logger.error(e.getMessage(),e);
    } finally {
         try {outStream.close(); } catch(Exception e) {}
         try {conn.close(); } catch(Exception e) {}
         logger.debug("cleanup done.");
    }This works fine locally but when I deploy the EAR file to the production server I get the following:
    [5/19/08 20:55:36:730 CDT] 00000045 SystemOut     O 20:55:36.730 DEBUG JasperReports.doGet:42 - Start
    [5/19/08 20:55:36:730 CDT] 00000045 SystemOut     O 20:55:36.730 DEBUG JasperReports.doGet:49 - reportID: randdunitreport
    [5/19/08 20:55:36:746 CDT] 00000045 SystemOut     O 20:55:36.746 DEBUG JasperReports.doGet:56 - Loading...
    [5/19/08 20:55:36:746 CDT] 00000045 SystemOut     O 20:55:36.746 DEBUG JasperReports.doGet:62 - got inStream
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:64 - Loaded compiled report
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:71 - closed
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:77 - Start build
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:85 - set content type & got OutputStream
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:88 - new exporter
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:91 - got connection
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:98 - set parameters:
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:99 -   Unit ID:    6472
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:100 -   User Name:  Fred Smith
    [5/19/08 20:55:37:996 CDT] 00000045 SystemOut     O 20:55:37.996 ERROR JasperReports.doGet:114 - Error loading object from URL : file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MOMWEBNode01Cell/ClaimProEAR.ear/ClaimPro.
    war/WEB-INF/classes/
    net.sf.jasperreports.engine.JRException: Error loading object from URL : file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MOMWEBNode01Cell/ClaimProEAR.ear/ClaimPro.war/WEB-INF/classes/
            at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:145)
            at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:264)
            at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:308)
            at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:257)
            at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)
            at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:692)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113)
            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:895)
            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:798)
            at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
            at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
            at com.scag.claimpro.servlet.JasperReports.doGet(JasperReports.java:103)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
            at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
            at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
            at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
            at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
            at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
            at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
            at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
            at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
            at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
            at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
            at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
            at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
            at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
            at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
            at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    Caused by:
    java.io.StreamCorruptedException: invalid stream header
            at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
            at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
            at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:140)
            ... 35 more
    [5/19/08 20:55:37:996 CDT] 00000045 SystemOut     O 20:55:37.996 DEBUG JasperReports.doGet:118 - cleanup done.UnitReport contains 2 subreports and works just fine on my local server. Am I missing something here or doing something wrong...any help is greatly appreciated.
    Thanks,
    -Jeff

    How will u convert the document to PDF via XML if the document contains the chart.
    If u have done this please send the code to me on "[email protected]"
    Thanks in advance
    nitish

  • Safari won't display pdf in browser and I do not have adobe reader or ply ins

    I've been checking the posts and all the discussions/questions and answers but the only thing I have been able to find about problems displaying pdfs in browser have to do with adobe plug-ins. I never had adobe reader and checked in /library/internet plug ins and never found those plug ins. I then downloaded and installed adobe reader X and got rid of the plug ins in the library and that still has not solved the problem. Whenever I click on a link for a pdf it just automatically downloads the pdf. I just want to view the pdfs in the browser.
    Thanks for the help

    Hi,
    You probably won't have to reinstall Safari. Two things you can try. If you open Adobe Reader and go into the 'Internet' section of its preferences, you should be able to disable the browser plug-in. Some times that alone isn't enough, in which case, browse to HD/Library/Internet Plug-ins/ and move the Adobe plugin out of the folder. Restart Safari for the changes to take effect.
    Yang

  • PDF addresses not longer load and display PDF in Firefox and solutions suggest to other users with problem DON'T WORK (work fine in Chrome and Safari)

    This is an ongoing problem with other users. When putting a PDF in address window of Firefox and clicking go to address FIREFOX WILL NOT LOAD AND DISPLAY THE PDF. This problem has come up in questions from other users on your site. NONE OF THE SUGGESTED SOLUTIONS WORK! (trying either the Firefox PDF viewer or the Acrobat viewer as default viewer)
    I am using Firefox 23.0.1 (as some of the other users with the same problem). This was not a problem in the past with Firefox. Safari and Chrome continue load and display PDFs just fine from their addresses. This is a big problem as I now have to inform people who want to view my PDFs NOT TO USE FIREFOX BUT TO USE SAFARI OR CHROME.

    It appears that a link to a PDF on an internet page will not download in Firefox either!
    I went to this page:
    http://www.nasa.gov/connect/ebooks/earth_art_detail.html#.UjYEzrwsU08
    and tried to download the PDF link at the bottom of the page (Download: PDF 11.3 MB) It didn't work! Nothing happens. Tried it in Safari and it worked flawlessly.
    I have a PDF file of my work in the public_html folder on my URL. I give the address generated by that file to people who want to view my work---this works perfectly in Safari and Chrome. As to your other question, can't bookmark it if I can't get to it in Firefox.

  • Problem with pdf display downloaded from application server

    Hi all,
    I have a problem with displaying pdf downloaded from application server (saved in BINARY MODE).
    I am getting the pdf output of adobe form in FPFORMOUTPUT-PDF as rawstring back to my program and then converting that rawstring into binary form using the function module SCMS_BINARY_TO_STRING.
    Now, when I export the data to presentation server directly using cl_gui_frontend_services=>gui_download, the pdf is downloaded properly.
    However, when I save the data to application server file by looping at the internal table obtained from SCMS_XSTRING_TO_BINARY and using TRANSFER, and subsequently downloading the file in "unconverted format" from AL11 to my desktop, I am getting a "blank" pdf file (with the same number of pages as the one downloaded using gui_download).
    I have tried different encodings during download but in those cases i get corrupted pdf message. only the default option of INTIAL value seems to work.
    I am forced to believe that there is a problem in my code which saves the data to app server but I cant find any solution that is logical. Any solution to this would be greatly appreciated.
    Regards,
    Sasi
    Edited by: Sasi Upadrasta on Sep 29, 2010 7:55 PM

    used a program to read the file from appl server and then downloading it to desktop.

  • Open PDF Slow Problem and Edit Registry to Disable "Display PDF in Browser"

    There is around 400 users who were installed Acrobat Reader 9. But it is found that they open our intranet pdf very slow due to NETBIOS problem. The alternative solution is to disable the browser integration feature.
    But how can I set Group Policy or Windows Registry to disable the "Display PDF in browser" feature for all the users?

    If your users use Internet explorer, you can disable the add-on. to disable the add-on you will need to know the version of IE they are using. the most commonly used scripts to do that are kixstart or .VBS scripts.
    e-mail me if you need any help with the script

  • Problems in displaying .pdf documents

    Hi there,
    I have problems in displaying .pdf files on MacBookPro. Everytime I open an .pdf file in Acrobat Reader or any Browser, the application closes after 5-10 seconds. I don't get any error messege, the file and the application i opened it with just close. I already reinstalled Acrobat Reader twice, but no success. Does any body have advice what could be causing this problem and how to solve this?
    Thanks and Regards,
    Philipp

    Welcome to the Forums!
    What version of Adobe Reader are you trying to install? I have 8.1.2 and it runs fine, although I don't usually use it, nor do I have it set as the default browser pdf viewer.
    Not sure what the issues are with Adobe Reader, but is Preview (Apple's viewer application, which displays pdfs) inadequate for some reason?

Maybe you are looking for

  • Why are the threads start and terminate randomly?

    Hi there, I got the program below. I am wondering why are the threads start and terminate randomly? Everytime, I run the program, it produces different results. I know that these four threads have got same normal priority (should be 5), and under win

  • Bluetooth Headphones Stop working after reboot or power cycle

    I have some Insignia NS-BTHDP blue tooth headphones and whenever I restart my Imac or turn off my headphones they stop working. They still connect and the my Imac acts like it is using them for audio output but no sound ever comes from them. I have t

  • Setting Line Pattern for Lines

    Hi All, How to set line pattern for Lines? I am trying to use Line Pattern to draw some thing like "======" ( with out gap though I used equal symbol to draw I don't have other way to show an example). I have tried setting line pattern it is not work

  • Inbound XML IDOC to IDOC

    I've searched the internet for solutions but I have not seen any solutions.  I'm trying to upload an XML IDOC (generated from SAP) back into SAP using IDOC_XML_FROM_FILE.  I've configured the my XML port to see the directory where the idoc is stored

  • TabIndex in ADF Components

    Hi guys, In HTML I can define the tabIndex on components for define the navigation order on components. In ADF Faces this is possible? If yes how I can to do this? Regards, Renan