OutputStream Losing session Data

i have a jsf adf 11 project where i have a jspx page with two graphs.
and i have a button where clients make a download the graph image.
FacesContext fctx = FacesContext.getCurrentInstance();
HttpServletResponse response = (HttpServletResponse) fctx
.getExternalContext().getResponse();
response.reset();
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Refresh", "1");
response.setContentType("application/png");
response.setHeader("Content-disposition", "attachment; filename=teste.png");
try {           
OutputStream outputStream = response.getOutputStream();
graphSexo.getImageView().exportToPNG(outputStream);
outputStream.flush();
} catch (Exception e) {
e.printStackTrace();
fctx.responseComplete();
My problem is after download prompt displays to the client, i lose all data from the page !
I need to reder this page again to another download of this image !
can anyone help me!?
sorry about my english !!!

I think you are using IE6 plus SP1. If yes try uninstall SP1 and you should be able to run an application as expected. I just had experienced "lost session" on WebSphere 4(WS4) with IE6+SP1 so I tested IE6+SP1(with varity of configuration setting) with WS on all SP of WS -> still lost the session. But testing IE6+SP1 on another application servers, I just tried couple of them but it all work fine. I finally test IE6 without SP1 -> the session is worked fine with the same application that didn't work on IE6+SP1.
Guess it is the conflict between WS and IE6+SP1
hope this helps.

Similar Messages

  • IE6 losing session data

    Hi all,
    I've a wierd problem wherein the session data is lost only in IE6 browser. I'm storing all the parameters passed to my application in the Httpsession object, but for some reason in IE6 browser the session object becomes null. And all the data I store is lost.
    This doesn't happen in IE5 or IE5.5.
    CAn anyone help?
    Thanks,
    nkoneru

    I think you are using IE6 plus SP1. If yes try uninstall SP1 and you should be able to run an application as expected. I just had experienced "lost session" on WebSphere 4(WS4) with IE6+SP1 so I tested IE6+SP1(with varity of configuration setting) with WS on all SP of WS -> still lost the session. But testing IE6+SP1 on another application servers, I just tried couple of them but it all work fine. I finally test IE6 without SP1 -> the session is worked fine with the same application that didn't work on IE6+SP1.
    Guess it is the conflict between WS and IE6+SP1
    hope this helps.

  • How do I access session data through an EJB?

    Hi
    How do I access session data through an EJB?
    I am currantly developing a Web service (using ejb's, JBoss.net and Apache Axis). A client making a call to this Web service, is expecting a bussiness-object in return. My problem is that this bussiness-object i stored in a users session data. How do I retrieve this bussiness-object from the users session.
    I have read that this does not work with httpsessions, is this true? If this is true, is it possible to store the bussiness object in a JavaBean e.g:
    <jsp:useBean id="userContextWebImpl" scope="session" class="com.ac.march.client.UserContextWebImpl">
    <%
    String key = "test";
    String value = "This is the value";
    userContextWebImpl.setValue( key, value1 );
    %>
    </jsp:useBean>
    and then retrieve this information through the EJB? Or is it possible to do this by using Statfull JavaBeans? Or can this be done through a nother solution?
    Please help!

    I have created a JavaBean with scope="application" to store some data. The data is stored when a user prefomes a spesific task.
    A different person then makes a call to a Web-Service on the server. The Web-Service then asks an EJB to retrieve the data stored in the JavaBean (servlet cotext). In other words: How do I retrieve this data from the EJB?
    I have tried with this code, but with no luck.
    (ApplicationContextWebImpl is the JavaBean)
    public static String getBookingResult( String key )
         String myResult = null;
         String myKey = key;
         ApplicationContextWebImpl applicationContextWebImpl = null;
         try
              applicationContextWebImpl = new ApplicationContextWebImpl();
              myResult = (String)applicationContextWebImpl.getValue( key );
         catch ( java.rmi.RemoteException e )
         return myResult;
    }

  • Waveburner;  a few Questions regarding track files and Session Data

    After a bit of negotiating, I'm almost ready to burn. Was having problems with file locations and discovered that i had multiple files in different locations. Those have been eliminated and all relative track files are in one place now with the Song Data File as well.
    I then re-imported the individual aif tracks only to find that all of my fades and edits are GONE. It appears that I may have to DO THEM ALL OVER AGAIN! Please tell me that there is a work around.
    Is it possible to import only the Session Data related to the fades and edits(everything but the actual audio files), so as to avoid all this "do-again" work?
    I was also wonder if it is necessary, or perhaps a good idea, to change the File INFO for each of the individual audio track files from "OpenWith" iTunes (default setting) to "Open With": WAVEBURNER ?. (selectable on the aiff files, "Show More Info" window
    Currently the aif files are set to "OpenWith" iTunes (default)
    One last question please.
    Is Waveburner really up to snuff? How many people are using this for Mastering and Burning CD's? I'm about to start inserting some AU Mastering Plug Ins and I'm hoping for the best. Any other suggestions are greatly appreciated.
    G5 Dual 2.0/PBook G41.5Ghz/LogicPro7 Live5 Reason3.0 PansncDA7 TascamFW1804   Mac OS X (10.4.7)  

    You're grammer isn't bad jord, it was I who asked a plethora of questions under one Subject heading.
    When i open the project file(.wb3),
    The prompt says;
    "Please choose a replacement from the list below:"
    /Volumes/320GB HD/Users/ahuihou/.Trash/1 Track 01.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/2 Track 02.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/3 Track 03.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/4 Track 04.aiff
    /Volumes/320GB HD/Users/ahuihou/.Trash/6 Track 06.aiff
    As you can see the files are in the trash.
    The first problem is that there are no actual files in the trash. Just an icon of a CD Disc which was dragged there to eject it, It is no longer in the disc drive/tray. Perhaps i should put the disc back in the drive and then update/replace the files afterwords. (The CD is scratched.)
    The strange thing is that i can still preview the track that's in the trash by selecting More Info and playing it on the little Quicktime player bar. I guess the file is in a cache somewhere?
    I've looked everywhere on all drives for the specific files but can not find them anywhere.
    In the Replacement prompt there is a place that I can check to "Search in the same folder for subsequent files" button on the "Replacement" prompt.
    which "same folder" is it refering to?
    The Trash folder where the old files are or the Folder where the actual .wb3 project file is? I do have all of the correctly named song files/regions in the same folder with the project file.
    maybe i should just start again. i'm not one to give up easy though and would much prefer to "beat" the computer at the game.

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • How can we reset the session data in SAP ISA B2B application.

    com.sap.isa.isacore.action.IsaCoreInitAction$StartupParameter this action class providing the special feature to store all data passed to it in the request as parameters into the session context and make them available for all other actions.
    1. But in the inner class they had defined private parametrized constructor.
    2. Action class is defined as final.(there is no chance to override the method)
    3. There is no setter method (only getter() is available).
    4. Creating a new Z_ class that is reflecting in entire application.
    5.They had hard coded the Session attribute name in Action class.
    6. Application is expecting a session object with the same attributes.
    Is there any chance to create a new object for this class or any where any chance to reset the session data. Am using the Multiple_SoldTO concept in my application. My back end ECC .Please help me.
    Advanced Thanks
    PC.M
    Edited by: pmudigonda on Jul 6, 2011 1:21 PM

    I am not sure about your requirement, but yet.. Did you check UserSessionData object? It encompasses all the session variables.

  • Can I upgrade from snow leopard to mountain lion without losing my data?

    Have finished an upgrade to snow leopard without losing any data on each of 9 MacBook Pros so far.  (Have 9 more to go) Can I do the mountain lion upgrade on them without losing data or must I back up the detritus of 4 years use by teachers who despite all pleas have never backed up their documents?  Would appreciate a swift reply as everyone wants their mbp's back in their hands on Monday morning. My thanks in advance to any gurus who care to reply as my local gurus seem to have fled the ashram for the weekend.

    Installing a new version of OS X should not lead to any data loss. Of course, it's best to have a backup if anything 'goes wrong' but simply isntalling the new OS shouldn't damage any data.
    Clinton

  • My iPod dispalys this message: "Connect to a computer. Use iTunes to restore."  When I connect to a computer, iTunes doesn't recognise it.  The iPod 5th Gen does not work at all. How do I fix my iPod without losing any data?

    My iPod dispalys this message:
    "Connect to a computer. Use iTunes to restore."  When I connect to a computer, iTunes doesn't recognise it.  The iPod 5th Gen does not work at all. How do I fix my iPod without losing any data?
    I have seen the Apple webpage suggesting the "five R's" (including restore).  Before doing anything, I want to be sure that restoring or any other action is not going to delete or risk my data. 
    I would be very grateful if anyone can suggest a fix for this problem, in a way that will not risk my data. 
    Thanks in advance!

    Did you try a hard reset with the iPod still connected to your PC?  Have you tried multiple USB ports, preferably high powered USB 2.0 ports?
    To do a hard reset, first make sure the hold switch is in the Off position, then press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    Have you also worked through each and every single troubleshooting suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • My computer crashed.    How do I sync with a new computer without losing unsaved data?

    My computer crashed.    How do I sync with a new computer without losing unsaved data?

    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For items you cannot get the above way use a third-party utility such as Phone to PC

  • I have just purchased a new ipad2 to replace my old ipad. How do i sync all the data in my apps I am worried about losing my data?

    I have just purchased a new ipad2 to replace my old ipad. How do i sync all the data in my apps I am worried about losing my data?

    iPad settings and data created and stored by a 3rd party party app along with app settings are included with the iPad's backup along with other data.
    If you are syncing your iPad direct with iTunes on your computer via USB, the iPad's backup is updated as the first step during the iTunes sync process.
    The first time you connect a new iPad or iOS device to iTunes that is used to sync with another iOS device, you are prompted to transfer the backup for the other iOS device to the new device. This is followed by a sync to transfer the same content from your computer that is on the old iPad to the new iPad such as music, movies, tv shows, 3rd party apps, photos, audio and print books, etc.

  • Could not deserialize session data, java.io.InvalidClassException

    Whenever I click on logout link from Liferay(Which deployed as application on Weblogic 10.3),It shows below Exception in the console however i am able to logout sucessfully.
    Could not deserialize session data.
    java.io.InvalidClassException: org.hibernate.proxy.pojo.javassist.SerializableProxy; local class incompatible: stream classdesc serialVersionUID = 1180036893511205383, local class serialVersionUID = -2265249369383210104 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
    It seems to be Classpath polluted with different hibernate jars.But still not able to figure it out.Below is the jar files which i have in classpath.
    hibernate-annotations.jar
    hibernate-commons-annotations.jar
    hibernate-core.jar
    hibernate3.jar
    Application Server: Weblogic 10.3
    Any Help would be much appreciated.

    Sounds like you have two different versions of a class in the two applications.
              If you change a class implementation and recompile - the updated class gets a new UID. Looks like maybe one app has a jar with the older class and the other app has a jar with the new class.

  • HT3728 My Time Capsule is working fine with ethernet connection, but it is no longer working with wifi, probably because of my wrong setting; is there a way to reset wifi setting without losing backuped data? Thanks you all

    y Time Capsule is working fine with ethernet connection, but it is no longer working with wifi, probably because of my wrong setting; is there a way to reset wifi setting without losing backuped data? Thanks you all

    Giancarlo Messalli wrote:
    1) are you sure a reset holding the reset button will not delete my data?
    Absolutely sure.. There is no connection at all.. reset is only the router side of the TC.
    For the hard disk to be erased you need to access the airport utility disk page.. request erase and confirm the operation.
    2) I can access to time capsule by ethernet but I am not able to input the corret setting by myself
    Thank you again
    I am uncertain why if you have access you cannot change settings.. but that is why you reset things so any of those problems should be fixed.
    Here is the Apple info on reset.
    http://support.apple.com/kb/ht3728
    And here is the quote from the horse's mouth so to speak.
    Factory default reset: Perform this reset if you wish to repurpose the AirPort Base Station or Time Capsule and want to remove all personal profiles and settings first. This reset resets the device to its state when you first purchased it. Data stored on internal or external hard drives connected to the device will not be erased. If you choose, you may manually erase the hard drive using AirPort Utility.

  • I got a new computer and need to sync my iPhone and iPad on it, how do i do that without losing all data.

    I got a new computer and need to sync my iPhone and ipad on it, how do i do that without losing all data. I need help ASAP!

    If you still have the old computer see: http://support.apple.com/kb/HT4527
    If you don't have your old computer, but you made regular backups of it, restore the most recent backup using the backup software that you used to make the backup. You will have to read the instructions for it.
    If you don't have your old computer and you did not back it up regularly see: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How to replicate session data at the user level?

    Hi all,
    my client has users who use laptop/tablet computers in the field with wireless connections. The application requires the users to complete long multi-page forms where the data is only submitted to the EIS layer at the end of the process. The connections regularly drop out which understandably is a cause of some grief. In addition, the users want to be able to switch to another machine in order to complete their session.
    The 'switching machine' requirement kills the idea of using persistent cookies and session replication unfortunately. So I am faced with the idea of storing the session data (keyed by user id), in serialized form, either on a stand-alone disk which is accessible by each webserver in the cluster or is the database. The problem with the database idea is the performance hit of traversing the EJB and JDBC layers.
    Can anyone suggest the best practice in this case? Or point to an article or tool that covers the problem?
    BTW, the app serves a small (<50) and stable base of authenticated users so scalability is not really an issue whereas failover is.
    Regards,
    Dave.

    > Is it possible to close a PO at the header level
    Po can be closed at Item level and not Header level. You can set Deletion Indicator and further can be archived thru SARA MM_EKKO
    or a way to deactivate the PO so that no new items can be added?
    You can activate Release strategy and Choose a Proper Release indicatory so that no new changes to be carried out.
    Else go for User Exits

  • Migration from PC to Mac without losing application data (savegames etc.)

    Hello everyone,
    I am migrating from from my old Windows PC onto a MacBook Pro, and I'm having difficulties with iTunes and my iOS devices (iPhone 4, iPad 1). Maybe someone here can help me out, I'd be ever so grateful.
    I set up iTunes on my MBP yesterday and logged in to my account. I replaced the empty iTunes Media folder with my old one (which contains all my music, videos and applications) via an external hard drive.
    First problem: it wouldn't import these files into my new library automatically. Just showed me an empty library I think I imported the entire iTunes Media folder manually yesterday via "Add to folder". The status right now (after some experimentation) is old iTunes Media folder copied, but nothing imported (that is, I have an empty library).
    When I connected my iPhone and tried to synch, I first had to authorize the MacBook for the iPhone. So far, so good. However when I tried to synch iTunes warned me that if I synch, all data on the iPhone will be removed and replaced by the data from my new local library (which is, of couse a copy of my old library, but doesn't store application data like savegames).
    I tried to do it via "transfer purchased items from iPhone", which took forever, but yielded the same result: a warning that all data on the iPhone would be erased.
    So the question is: How do I connect my iPhone and iPad to iTunes on my new Mac without losing application data like settings and savegames? And why is this so complicated and intransparent? I should be able to just copy my media, say "authorize this Computer, then add iPhone to the registered devices" and then proceed like nothing ever changed.
    I searched the net until three in the morning yesterday, but couldn't find anything that sounded safe enough to give it a try.
    Thanks in advance and best Regards,
    Nate
    PS: I do have the backup-folders from my old PC on a USB stick - are those going to help?
    Message was edited by: Nathan1980 (Correction)
    Message was edited by: Nathan1980

    I was fighting this battle the past few days myself; but actually it is REALLY easy now. See here:
    http://www.macworld.com/article/146958/2010/03/moveitunes_windowsmac.html
    Then, once iTunes was on the Mac, I did this:
    1. On the Mac rename ...\iTunes\iTunes Library.itl as ...\iTunes\iTunes Library
    2. On the Mac delete ...\iTunes\iTunes Library Genius.itdb (Apparently the PC & Mac versions are not compatible - iTunes will just rebuild it later)
    3. Launch iTunes and immediately press & hold down the Option key until a dialog opens asking you to Choose a library. Navigate to the folder/drive you've copied from the PC and open ...\iTunes\iTunes Library.
    (thanks to turingtest2 for the above steps)
    That was it. Did it yesterday evening. All playlists, libraries, everything copied fine. No problems; no broken links. Perfect.

Maybe you are looking for