Problem with showModalDialog whenever server sends a new session cookie

Hi,
In our application we display a pdf to the user in a modal dialog whenever he clicks on the view button. We use siteminder for authentication.
Only on certain machines we sporadically get a blank modal dialog instead of the pdf. I used HttpAnalyzer to check on the HTTP requests and response. I found that whenever in case of a call to DisplayPDFServlet(see the code below to understand the calls) the siteminder does a "Set-Cookie" in the response, I get a blank modal dialog and the Response content is empty.
I tried to match my IE setting with the machines which do not have this problem, but it has been of no use.
The view action is handled in the code as follows:
1. Call a struts action class which fetches the pdf and puts it in session.
2. In the jsp to which the control is now directed to, we have an object tag wherein the value is a call to a servlet which gets the pdf from the session and writes it to the outputstream
Object tag in the jsp:
<object id="demo" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="750" height="530">
                         <param name="SRC" value="servlet/com.dcs.century21.display.util.DisplayPDFServlet?<%=System.currentTimeMillis()%>">
                    </object>
Servlet Code
public void doPost(
          HttpServletRequest request,
          HttpServletResponse response)
          throws ServletException, IOException
          HttpSession session = request.getSession();
          response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
          response.setHeader("Pragma", "no-cache"); //HTTP 1.0
          response.setDateHeader("Expires", 0);
          //prevents caching at the proxy server          response.setContentType("application/pdf");
          response.setHeader("Content-Type", "application/pdf");
          response.setHeader(
               "Content-Disposition",
               "inline;filename=somepdf.pdf");
          java.io.OutputStream outputStream = response.getOutputStream();
          if (session.getAttribute("contractDocumentByteData") instanceof byte[])
               byte[] data =
                    (byte[]) session.getAttribute("contractDocumentByteData");
               if (data != null)
                    response.setContentLength(data.length);
                    session.removeAttribute("contractDocumentByteData");
                    outputStream.write(data, 0, data.length);
               outputStream.flush();
               outputStream.close();
Please Help!!!
Vinay

Hi
I tried appending a "\n" to the end of the string, this didn't work. But, it seemed that using out.println(text) instead of out.print(text) when sending the message through the socket solved the problem.
Thanks a lot for the tip!
CK

Similar Messages

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • HT4864 I am getting a triangle with an exclamation point next to my inbox...it says: There may be a problem with the mail server or network. Verify the settings for account "MobileMe" or try again.  The server returned the error: Mail was unable to log in

    I can send but cannot recieve email
    This is the messege I am gewtting:
    There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
    The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
    The server returned the error: Service temporarily unavailable

    Also if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.

  • Logon problem with oracle management server

    I have problem with Oracle Management Server when I connect to the OMS message comes
    The exception (java.lang.NullPointerException) occurred.
    if any body have any idea pls tell us

    Hi,
    Oracle has changed the Enterprise Manager from version 1.5 to 2.0 .
    With the new Oracle8i dataase server another service has been added.
    If you want to user the OEM you have to install The Managment Server.
    The Managment server has its own user and privileges and is recommended when using OEM.

  • Can the problems with the Cirrus server cause this

    Hello,
    We are have been developing an application using the Cirrus server for two months now and today we are having difficulties with the Netconnection.call method which we use to call the OnRelay method on the other peer. When a peer invokes the call method on his netconnection the OnRelay on the peer is called some of the time (so it is really unreliable).
    We are curious whether this could be related to the recent problems with the Cirrus server? If not, what could be a reason the calls are working only some of the time?
    regards,
    Kevin

    while the problems with our hosting provider are not yet resolved, the cluster should be operating nominally. that should include the proper and relatively reliable functioning of the relay/onRelay function.
    note that relay/onRelay is rate limited to about 1 relay every 2 seconds (approximated with a sliding window and about 10 relays every 20 seconds). this rate limit is in place because the relay/onRelay function is expensive to provide and a developer was abusing it. the limit is implemented by dropping relay requests for a time if the rate exceeds the limit point. the limit is per sender NetConnection.

  • Problem with SAP XI server

    Hi guys
    I got a problem with the XI server,the status do not change to wait,they are always in run,i can send you the screen shots to there mail id if anyone is able to slove.I think it is the oracle problem,not sure though.I am unable to log on to the server
    thanks
    [email protected]

    I am looking for
    ADM100 SAP Web AS Administration I,
    ADM102 SAP Web AS Administration II
    ADM200 SAP Web AS Java Administration )
    If any one of you has this or any xi material,
    Can you please mail me to [email protected]
    Thanks in Advance,
    jaya

  • Problems with AOL IMAP server connection on my BlackBerry Z10 STL100-3, and BB PlayBook 64GB WiFi

    Problems with AOL IMAP server connection on my BlackBerry Z10 STL100-3, and BB PlayBook 64GB WiFi
    Thursday 4:20am EST, 02-19-2015
    Hi, My connection to the AOL IMAP server has suddenly failed - Says "Not Connected" on Accounts page
    I haven't changed anything and this just started failing this morning.
    I've saw same issue on my Blackberry PlayBook 64GB.
    Is anyone else recently experiencing AOL IMAP Errors?
    Solved!
    Go to Solution.

    Yes! Same thing happened suddenly to my Z10 this morning. No AOL. 

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • Intermittent proxy error "There is a problem with the proxy server's security certificate. Outlook is unable to connect to the proxy server "

    Hi all,
    From time to time (at least once a day), the following message pops up on the user's screen:
    "There is a problem with the proxy server's security certificate. Outlook is unable to connect to the proxy server . Error Code 80000000)."
    If we click "OK" it goes away and everything continues to work although sometimes Outlook disconnects. It is quite annoying...
    Any ideas?
    Thank you in advance

    Hi,
    For the security alert issue, I'd like to recommend you check the name in the alert windows, and confirm if the name is in your certificate.
    Additionally, to narrow down the cause, when the Outlook client cannot connect again, I recommand you firstly check the connectivity by using Test E-mail AutoConfiguration. For more information, you can refe to the following article:
    http://social.technet.microsoft.com/Forums/en-US/54bc6b17-9b60-46a4-9dad-584836d15a02/troubleshooting-and-introduction-for-exchange-20072010-autodiscover-details-about-test-email?forum=exchangesvrgeneral
    Thanks,
    Angela Shi
    TechNet Community Support

  • There is a problem with the proxy server's security certificate. The name on the security certificate is invalid or does not match the name of the target site "Mailserver"

    Good day Guys
    First of all I am not an Exchange Expert, and I might be asking a very stupid question, but please bare with me. :) 
    While I was on leave our Mail server fell over and The company got a Specialist to help out for the time being.
    We where\are on Microsoft Exchange 2007 , which Fell over, and the specialist was able to recover as much data as he could.
    They then installed Exchange 2013 and tried to migrate everything from 2007 to 2013 and not everything migrated over.
    But the problem is, Outlook Anywhere was enable on 2007 and worked a 100% (before the disaster)
    With Exchange 2013 I get the following error message when trying to connect With Outlook 2013, using an external connection:
    "There is a problem with the proxy server's security certificate. The name on the security certificate is invalid or does not match the name of the target site "Mailserver"
    Outlook is unable to connect to the Proxy server. (Error Code 0)"
    Has anyone had the Similar when migrating over from 2007 to 2013 or is this an Issue on IIS and nothing to do with Exchange migration?
    Your assistance will be greatly appreciated.

    Hi,
    Firstly, I would suggest we use Exchange 2013 FE as the Outlook Anywhere proxy server.
    For the certificate issue, it mostly occurs because the host name that Outlook are trying to access does not match the certificate SAN. Please check with this point. If they do not match, you
    can change the host name by referring to the following article:
    https://support.microsoft.com/kb/940726/en-us?wa=wsignin1.0
    Thanks,
    Simon Wu
    TechNet Community Support

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

  • Backup Problem with only Production Server

    Hi all
    Here i have backup problem in only production server. In my tape drive device all schedule backup of Development  server and Quality Server and Production server . In this i get all backup in Development and Quality server, But in Production server backup was fail and not only one all backup is fail from last 2 days . So can u tell me what is the problem with my production server and how can i find it in production.
    And any hardware issue or OS issue is responsible for this.
    Please help me out.
    Thanks
    Keyur

    Hi,
    Can u pls post us the backup log? Also let us know ur product details like OS, SAP, DB version and also the backup tool(if any).
    Regards,
    Varadharajan M

  • I have problem with Adobe ColdFusion Server Manager.

    I have a problem with Adobe ColdFusion Server Manager when you log on and connect to the server. An advantage of the settings do not load.

    When I see others screen cuts of CF Server Manager here:
    http://www.coldfusionjedi.com/index.cfm/2009/10/21/Quick-example-of-Diff-within-the-ColdFu sion-Server-Manager
    http://forta.com/blog/index.cfm/2009/7/6/Simplified-ColdFusion-Server-Management
    the Errors View button display’s the yellow ! sign. Without a better guide I just thought that is a normal button icon until I noticed Charlie comment earlier in the thread and I thought hold up that is not normal.
    As it is when I press Errors View I get “no error” which might be because there is none or just simply not giving meaningful details as per some other CF Server Manager limitations previously noticed in other threads on forum here.
    I just hope some of that helps the original post to do with the display of the settings on left side. Maybe a better look at the error might help? Does anything get logged in CFadmin UI > Debugging & Logging > Log Files that relates to issue?
    Regards, Carl.

  • Problem with reinstalling Adobe Illustrator CS4 on new pc

    Using a new PC with Windows 7.  Upon reinstalling and inputting serial number, prompt appears..."We looked inthe default locations for qualifying products installed on this machine but none found.  You may verify upgrade eligibility now by completing fields to the right."  Choices given do not include Adobe Illustrator CS4.  What next?  I appreciate the help.

    I have a disc in the same box  that says CS3.  I thought that was an older version.  Should I try installing that disc first?  It seems to have a different serial number. Thanks so much for your help.  I appreciate it. 
    Date: Mon, 3 Sep 2012 15:25:41 -0600
    From: [email protected]
    To: [email protected]
    Subject: problem with reinstalling Adobe Illustrator CS4 on new pc
        Re: problem with reinstalling Adobe Illustrator CS4 on new pc
        created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    It is looking for the qualifying product which entitles you to use the Illustrator CS4 update.  Did you have an older version of Illustrator which upgraded from?
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4670448#4670448
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4670448#4670448. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Help Needed Badly | BlackBerry INC000025111306 | BlackBerry PlayBook - Tablet button does not work, almost stuck, copper under screen, seventh repair

    I was really Humilitated my RIM on this Ticket whcih i rasied. 1) I bought a new tablet in last november in 2 months i had a Charger issue  2) They said this charger issue we cannot replace with new tablet and gave me a refurbished Tablet to me . 3)

  • Printing cut off in acrobat pro x

    In Acrobat Pro X for Windows, some documents cut off the right side by about 1". I've tried every setting change I can think of and nothing works to get the document centered again. Any thoughts?

  • OracleParameter Memory Leak

    Hello I try to insert (many) BLOBs into an Oracle 9.2 via ODP.NET 9.2.0.4. After ...thousand inserts my program unfortunatly runs into a "System out of memory Exception". I profiled my application and found out, that the OracleParameters are increasi

  • DataSource does not support requested type

    hi, i have a question about BI bean. i use 9iDS 2 JDeveloper to create a JSP with BI beans.when i run this page,error message show in console window.like this: Log : Current DataSource does not support requested type: DataMap.DATA_FORMATTED : oracle.

  • Calling functions dynamically

    how can i retrieve a Method object using the Class method getMethod(String name, Class[] parameterTypes)[\code]if the method i'm trying to retrieve has primitive parameters (i.e. they cannot be inserted into an array of type Class).  for instance, i