After Upgrade to Netweaver, opening pdf from portal gives an error

After an upgrade to Netweaver 4.0, the following code for opening a pdf file constructed from a byte stream passed from an RFC fails.
Document doc = new Document(PageSize.A4);
javax.servlet.http.HttpServletResponse myResponse = request.getServletResponse(true);
myResponse.setHeader("Content-Disposition","attachment;filename=\"AIPDoc.pdf\"");
myResponse.setContentType("application/pdf");
ByteArrayOutputStream baosPdf = new ByteArrayOutputStream();
OutputStream os = myResponse.getOutputStream();
os.write(pdfResult);
PdfWriter.getInstance(doc, os);
It throws a "file not found error" on opening directly. However, if saved and viewed; it opens fine. I believe we need to specify the portal url in the filename but not sure.
Thanks,
Devina

Hi Devina,
We are also opening a pdf file constructed from a byte stream passed from an RFC.  Our problem is that we are experiencing inconsistent results.  The file appears to open on some PC workstations but not on others.  When it doesn't work we simply get a blank screen in the window.  Did you resolve your issue?  If so, perhaps you can provide us with some suggestions for solving our problem.
Thank you,
Angie

Similar Messages

  • Unable to open pdf from some particular shared folder which is not in domain

    Encountered a strange issue here.
    We have copuple of users who login with Citrix session.
    They are able to open pdf from all the shared folders but not one which is not in domain.
    User are able to open all other files viz. doc, excel, notepad and so from that particular folder.
    Issue with all the pdf files and not only one particular file.
    Double clicking the pdf file starts the process AcroRd32.exe but the file does not open.
    If an already running AcroRd32.exe process is there (means if Adobe Reader is already open), then it's possible to open the pdf files from that folder.
    Moreover, came across one strange thing.
    I created a shortcut to one of the pdf file from that folder within the same folder.
    And it was possible to open pdf file from that shortcut but not directly :S
    Gives error: "Acrobat failed to connect DDE server" after about 20 mins if we try to open file directly.
    Googled a bit and found that issue can be resolved by navigating to
    HKEY_CLASSES_ROOT\acrobat\shell\open\ddeexec\application and changing the Key "AcroviewA10"  to  "AcroviewR10
    But when I navigated to the mentioned registry there was no AcroviewA10 but instead it was just Acroview.
    Adobe Reader version: 9.5.5
    I will be really grateful if somebody can provide solution for this.

    What happens when you open the Adobe app, then tell it to open the file?
    How big are the attachments?  There are limitations to the size allowed to be sent:
    Email Provider
    Size Limit
    Gmail
    25Mb
    Outlook
    20Mb
    Yahoo
    25Mb
    Are you sending the files to yourself?  Not sure how you are emailing files from a website...
    Are the PDF's password-protected, or some kind of copyrighted eBook perhaps?  Can you email other files successfully, or are PDF's the only files that don't work?
    Perhaps using a free Cloud service as an intermediary might work better.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Can't open PDFs from Outlook Access denied

    We are trying to open PDFs from Outlook in Reader XI.  Even after disabling protected mode, continue to receive the message "There was an error opening this document.  Access denied.".  Any suggestions?
    Thanks

    A. Fix One PC
    Launch Adobe Acrobat Reader X
    Go to: Edit > Preferences...
    Click on "General" in the left pane.
    Uncheck "Enable Protected Mode at startup"
    You will prompted with a dialog box to remind you to close the application for the change to go into effect. Click Yes.
    Click OK to save your change.
    Exit Adobe Reader
    B. Fix Several PCs in Your Organization
    Following the above steps aren't practical if you have Adobe Acrobat installed on 1,000+ computers in 30 regional offices! Push this registry setting using your standard software deployment software.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\10.0\Privileged]
    "bProtectedMode"=dword:00000000

  • Installed Pro 9 and Reader 9 now cannot open pdf from web, but can from an email?

    Installed Both Adobe Acrobat 9 professional and reader 9 yesterday on co worker machine. Went to open a pdf attachement in email no problem. Went to web to download and open a pdf and will not let her, giving co worker the error message need reader 8 or 9 to open this document!
    have unistalled 9 reader and reinstalled same problem.
    So then uninstalled reader 9 and can now open pdf from the web
    My machine has both on and no problems.
    Thank YOU for your help!!

    It may be that you will need to uninstall Reader and Repair Acrobat after the uninstall. Adobe does not recommend the installation of both products. Since you have already done the uninstall and things work fine with just Acrobat, leave things alone as that is the recommended installation.

  • After upgrading to CS5, printing PDFs has become a nightmare!

    After upgrading to CS5, printing PDFs has become a nightmare!
    For example,
    1. It would never finish printing the file, just the first so many pages. So... 
    2. I updated the driver, and then I could print one copy only without problems. But...
    3. I can never print more than one copy of a PDF without collate mis-sequence problems. It just does not print one whole copy before printing the next copy. And it goes back and forth printing some of the first copy, then the second, then a few pages from the first, etc. Eventually it all prints, but they are mixed up sequentially. But some pages are in order.  And...
    4. It prints soooo slow compared to before.
    I upgraded from CS3
    My printer is a Ricoh SP C420DN Color Laser Printer
    Pat-

    Partrick David Yanello wrote:
    All I know is that before I could print fine and fast and in any quantity I wanted (while using CS3 Indesign exported PDFs and Booklet Spreads on my latest and greatest printer, a Color Ricoh SP C420 DN).
    But now, since I upgraded to a Master Suite of CS5, at first it would never print the whole file, even once. And when I upgraded to the Universal Print Driver, and or any other drivers, it will only print one copy of a PDF without mis-sequencing the printed pages, and it is so slow. It is worthless.
    Pat-
    P.S. I think I need to try to call Ricoh or something, but will that work? Sigh!
    Yeah, this sounds like a general print driver problem with the newer versions of the Adobe products, not just Acrobat or ID. Ricoh may or may not have an updated driver, but theyare definitely the ones to ask.
    You haven't told us the OS... Some Mac users have had good luck, I think, using the CUPS drivers with problem printers when the manufacturer doesn't have a solution, but I'm a Windows guy, so don't do much with Mac printing.

  • Acrobat reader XI cannot open pdfs from IE9

    My pc has IE9, windows 7.  After I installed Acrobat reader XI, I can no longer open pdfs from a secure website.  Can anyone help?

    "Internal Error Occurred" appears when .pdf is opened from Outlook 2010 email
    I am absolutely pulling out my hair over this one!!
    PC/Win 7 64bit/Adobe XI/Office 2010
    I have tried Uninstalling and re-installing
    I have tried using an adobe software removal tool
    I have tried modifying the security settings in reader
    I've tried running repair on MS Office
    If you open the .pdf from an email directly, it opens Reader with the error "Internal Error Occurred"
    If you drag and drop the .pdf onto the desktop, and then open it, it opens.
    If you open Adobe Reader FIRST, then open the .pdf from the email, it opens fine.
    ONLY when you open a .pdf from an email with Adobe Reader closed (so Outlook is asking AR to open first, and then present the .pdf) is it behaving this way.
    Hypothesis: Outlook 2010 does not like to open Adobe Reader.
    SO....tell me all of you brilliant geniuses? How do I solve this puzzle and become an end user's hero?

  • Opening PDFs from gMail account in iBooks

    I've previously opened PDFs from gMail messages using iBooks but today, for some unknown reason, I cannot open any new PDF file attachment larger than 200k.
    iPod Touch 8GB (2nd generation) using iOS4.1- Still have 5.7GB available so I'm not sure why certain size files won't open.
    I've even tried using Safari w/ gMail account - In both cases, as soon as I try to open the PDF attachments w/ iBooks, the display drops out without transferring to Ibooks as it used to do.
    Message was edited by: MacNoob0909

    Tried resetting - No joy.
    When I tried to open the attachment w/ "iBooks", the iPod switched to iBooks and an "Untitled" file showed on the bookshelf momentarily then the display dropped out and returned to the "Home" screen. No joy there.
    Even tried opening w/ "Quick Look" - Again, no joy. Just a dropout and back to the "Home" screen.
    Looks like I may have to do a total reset - Now iBooks loads w/ "Untitled" file displaying and then the display drops w/ a return to the home screen - In the process of total reset as I write this - Will update after I do a restore. - Its going to take at least 2 hours for reset/restore operation.
    Message was edited by: MacNoob0909

  • Hi, I have an iphone 3GS from HK. After upgrading to 4.3.3 from 4.3.2 as prompted by itunes on May 10, 2011 my entire contact in my iphone was wiped out! When I checked my backup file in Outlook Express it was also wiped out!!! What can I do now?

    Hi, I have an iphone 3GS purchased in HK. After upgrading to 4.3.3 from 4.3.2 as prompted by itunes on May 10, 2011 my entire contact in my iphone was wiped out. When I checked my backed up file in Outlook Express, it was also wiped out during the synchronization. I tried to restore from backup on iTunes but still, the contact was not there anymore. I have contacted your HK Apple Hotline and talked to a technical support called TIMMY LO, he said there is nothing to do with them and he refused to provide any support to recover my contact, he even said I should try to pay extra money to 3rd party supplier and see what they can do to my iphone, despite the fact that this could be caused by the pre-mature release of 4.3.3 when a bug still hasn't been fixed. I am very disappointed at Apple's service, especially considering that I have been a loyal customer of iphone / ipod touch in the past few years. I need an official reply from Apple on this! How can Apple be so irresponsible to their own firmware failure??

    Hi, I have an iphone 3GS purchased in HK. After upgrading to 4.3.3 from 4.3.2 as prompted by itunes on May 10, 2011 my entire contact in my iphone was wiped out. When I checked my backed up file in Outlook Express, it was also wiped out during the synchronization. I tried to restore from backup on iTunes but still, the contact was not there anymore. I have contacted your HK Apple Hotline and talked to a technical support called TIMMY LO, he said there is nothing to do with them and he refused to provide any support to recover my contact, he even said I should try to pay extra money to 3rd party supplier and see what they can do to my iphone, despite the fact that this could be caused by the pre-mature release of 4.3.3 when a bug still hasn't been fixed. I am very disappointed at Apple's service, especially considering that I have been a loyal customer of iphone / ipod touch in the past few years. I need an official reply from Apple on this! How can Apple be so irresponsible to their own firmware failure??

  • Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy

    Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.

    What is your operating system, browser?
    What is the exact message you are getting?

  • Cannot find backslash (\) on German keyboard anymore after upgrading to OS 10.6 from OS 10.5

    Cannot find backslash (\) on German keyboard anymore after upgrading to OS 10.6 from OS 10.5. It used to be at Alt-ß. Anyone can help please ?

    Never mind. Found it in an old post. It is mapped at Shift-Alt-7, really weird.
    The post is at:
    http://www.innoq.com/blog/st/2003/12/backslash_on_mac_os_x.html

  • Access Denied Bug Opening PDFs from the DFS in Reader X

    Hi,
    Do you have any timelines for when a bugfix will be released for the Access Denied problems when opening PDFs from a DFS share with Protected Mode enabled? We were hoping to make use of the new sandboxing technology within the corporate environment, as recent issues with security vulnerabilities (in Adobe Reader 9, the authplay.dll issues) would be mitigated by the technology. However, as the Protected Mode does not work when opening from the DFS there is no point in moving to Adobe Reader X from 9.4.1 at the moment.
    It would be good to have a release date so that we can start taking advantage of the technology as soon as we are able to.

    There's no dates, or indications of when this will be done. Thanks for your useful assistance though.

  • Issues after upgrading to 5.6.3 from 5.6.2

    Hi,
    The alignment of vertical lines in layout is off after upgrading to 5.6.3 from 5.6.2.
    Did anyone have issues after the upgrade?
    Thanks
    Sudeep

    Nothing noticeable

  • Open link from portal favorites

    Hi all,
    When we add some KM Navigation iView to portal favorites and try to open it from portal favorites link it opened with wrong layoutset (not the same layoutset that declarated in original iView). How can we change it?
    Thanks,
    Ola

    Hi Ola,
    we had the same problem, that we want to open the KM Folder in our customized layout and not in the standard user layout.
    The only way we found to realize this, was to overwrite the standard user layout with our customized layout.
    You will have to decide, if you want to change the standard in this case... a better solution we haven't found
    Best Regards
    Frank

  • CS6: DistributedCOM Error id: 10016 when open pdf from web page in Win8.1

    For example here below I've got the issue: 
    http://modemwifi.it/wp-content/uploads/asus-dsl-n55u.pdf
    Adobe Acrobat X pro V 10.1.8:
    DistributedCOM Error id: 10016 when open pdf from web page.
    Nome registro: System
    Origine:       Microsoft-Windows-DistributedCOM
    Data:          04/11/2013 19:09:19
    ID evento:     10016
    Categoria attività:Nessuna
    Livello:       Errore
    Parole chiave: Classico
    Utente:        PC-PIERO\Piero
    Computer:      Pc-Piero
    Descrizione:
    Le impostazioni delle autorizzazioni impostazioni predefinite del computer non concedono l'autorizzazione di Attivazione in Locale per l'applicazione server COM con CLSID
    {B801CA65-A1FC-11D0-85AD-444553540000}
    e APPID
    {2EAF0840-690A-101B-9CA8-9240CE2738AE}
    all'utente Pc-Piero\SID Piero (S-1-5-21-3453328585-262132574-2759341577-1001) dall'indirizzo LocalHost (tramite LRPC) in esecuzione nel SID del contenitore di applicazioni Non disponibile (S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1277922394). Per modificare tale autorizzazione di sicurezza, è possibile utilizzare lo strumento amministrativo Servizi componenti.
    XML evento:
    < Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
        <EventID Qualifiers="0">10016</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2013-11-04T18:09:19.468877700Z" />
        <EventRecordID>14806</EventRecordID>
        <Correlation />
        <Execution ProcessID="768" ThreadID="776" />
        <Channel>System</Channel>
        <Computer>Pc-Piero</Computer>
        <Security UserID="S-1-5-21-3453328585-262132574-2759341577-1001" />
      </System>
      <EventData>
        <Data Name="param1">impostazioni predefinite del computer</Data>
        <Data Name="param2">Locale</Data>
        <Data Name="param3">Attivazione</Data>
        <Data Name="param4">{B801CA65-A1FC-11D0-85AD-444553540000}</Data>
        <Data Name="param5">{2EAF0840-690A-101B-9CA8-9240CE2738AE}</Data>
        <Data Name="param6">Pc-Piero</Data>
        <Data Name="param7">Piero</Data>
        <Data Name="param8">S-1-5-21-3453328585-262132574-2759341577-1001</Data>
        <Data Name="param9">LocalHost (tramite LRPC)</Data>
        <Data Name="param10">Non disponibile</Data>
        <Data Name="param11">S-1-15-2-1430448594-2639229838-973813799-439329657-1197984847-4069167804-1 277922394</Data>
      </EventData>
    < /Event>
    How can I solve this problem?
    Thanks

    // I got this from an Action (I�m using Struts)
    java.sql.Blob file=(java.sql.Blob)request.getAttribute("PDFfile");
    String filename=(String)request.getAttribute("filename");
    try{
      int iLength = (int)(file.length());
      response.setHeader("Content-type", "application/pdf");   
      response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"");
      response.setHeader("Expires","0");
      response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
      response.setHeader("Pragma","public");
      response.setContentLength(iLength);
      ServletOutputStream os = response.getOutputStream();
      InputStream in = null;
      in = file.getBinaryStream();
      byte buff[] = new byte[1024];
      while (true) {
          int i = in.read(buff);
          if (i<0) break;      
          os.write(buff,0,i); 
      os.flush();
      os.close();
    } catch(Exception ex){
       out.println("Error while reading file : " + ex.getMessage());
    }and now it�s running !!! I�m not using response.setContentType(...) and I do this in response.setHeader("Content-type", "application/pdf"). And I use response.setHeader("Content-Disposition", "inline; filename=\""+filename+"\"") instead of response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");

  • Safari hijacked by Adobe Reader - cant open pdfs from Safari

    I would greatly appreciate any help cant seem to find this exact problem elsewhere.
    I have a Macpro (new tower) running  10.9.4
    A few days ago I received an email from a trusted friend which included a link. I followed the link which asked me to download Adobe Reader which i foolishly did. Since then when I try to open a PDF from Safari I get the following message "Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User Licence Agreement, then Quit and relaunch the browser"
    Please note I can still open PDFs from the Finder and other browser's (e.g. Opera) also allow me to download
    I went to the Adobe site and downloaded Reader but it wont let me complete the installation. I fear my Mac has been infected by a trojan etc and can't seem to find out how to get around this.
    So far I have tried
    1) went to /Library/Internet Plug-ins - but nothing there
    2) reinstall of Mavericks
    Any help appreciated. I suppose a clean reinstall would help but don't want to do that just yet

    Open a Finder Window.
    Click on the Go in the menu bar.
    Press on option on the keyboard, "Library" will appear. Click on that.
    In the new Finder Window that it opens up, or the one that you have opened already. It'll show that particular folder. In that folder is Internet Plug-ins.
    Check to see if Adobe is in there. If so, delete it and reboot.
    I honestly thought it was in the same folder that you tried, but I don't remember at the moment. So my instructions are just a shot in the dark.
    KOT

Maybe you are looking for

  • Message attributes

    Hi , I want to create new message in SPRO and make it an error message. "purchasing across company codes is not allowed"  to prevent buyers from wrongly coding a purchase order to the wrong company code Regards, Satyendra

  • Help with panning image

    Hi There I'm building a site that features a panning panoramic image with buttons embedded into it. I've got a piece of script that does it for me, but I have two issues. 1. My panning image is 500 pixels high and my document is 700px, right now the

  • Messy format exporting to excel and text/html

    Need help please....i'm in the middle of problems, i'm developing application that can exporting reports to some formats like pdf, excel, and text/html. it is become a problem when i exporting it to excel or text/html, the format are so messy... I'm

  • Remote Interface

    Hey. I was wondering if there was a way to enumerate the remote interface used by an RMI server if you do not have the RMI Client. Ive been looking at reflection but from what ive seen it assumes you know what type of object you will be dealing with.

  • Why I don´t do backup the iTunes in Blu Ray ?, Why I don´t do backup the iTunes in Blu Ray ?, Why I don´t do backup the iTunes in Blu Ray ?

    Why I don´t to do  backup of itune in Blu-ray disc ??????