Losing HttpSession

Hi all,
Something very odd here.
WLS 7.0, trying to get a WAR ported.
Deploys allright, connects to the EJBs allright, but after the first page
(our login page), the next JSP explodes because something it is looking for
in the HttpSession that was put there by the Login page, is gone. In fact,
the session that I get in the JSP's 'session' variable has no items
whatsoever (using getAttributeNames() to check).
WLS is running on my own machine, so my URL to the app is:
http://localhost:7001/appName. I am getting a cookie (according to IE):
sessiontimedout-9HvsufwMwtYGPeBJUlf4AtXwwsWa926jKnk5d2EsxZc2WaG6q5pX!7818888
38!1032302380281
This is a fresh instal of WLS, no real configuration, I haven't broken
anything consciously. Anyone have any ideas what this could be? It pretty
much stops us cold, as you can imagine.
Thanx!
Will Hartung
([email protected])

          In the case of WL6 and WL7 clustering, if the requests from the same user jump
          around different instances, we experience this kind of session loss problem very
          frequently. I am not sure if this is the same case for WL5. The idea is, find
          a way to make sure the requests from the same use always hit the same instance
          unless it is dwon.
          "Cameron Purdy" <[email protected]> wrote:
          >Are you using cookies or URL encoding?
          >
          >Peace,
          >
          >Cameron Purdy
          >Tangosol, Inc.
          >http://www.tangosol.com/coherence.jsp
          >Tangosol Coherence: Clustered Replicated Cache for Weblogic
          >
          >
          >"Sam Dupont" <[email protected]> wrote in message
          >news:[email protected]..
          >> Any advise on the following problem would be greatly appreciated.
          >>
          >> I am running WebLogic 5.1 (don't know ServicePack offhand) on two
          >instances which are clustered.
          >>
          >> When both instances are up and I redirect from a jsp to a jsp, I lose
          >the
          >httpSession. When either of the instances are down, the httpSession
          >is not
          >lost.
          >>
          >> Has anyone ever seen anything like this or what might be causing it?
          >>
          >> Thanks
          >
          >
          

Similar Messages

  • Losing field (in a Composit Object) in an HttpSession

    Hello. I am losing fields in a Composite object (object tree) that I am storing inside of an HttpSession. I'm developing with Tomcat and I saw that Tomcat implements the put/getAttribute methods with a Hashtable.
    So in my case, I store object A. in an HttpSession. For a user requests, I get A. and do some processing that sets object D. If I put that object back into the session and come back to it in a later request, object D has now been lost.
    A
    B
    C
    D
    Is there some contract that I'm missing here? I don't think these objects (A - D) need to be serialized. What am I missing here?
    Thanks in advance
    Tim

    It is very difficult to figure out what is going wrong from the info u have given. Examine your server log carefully if you can find any clue.
    You may also write a listener implementing HttpSessionAttributeListener and implement the methods
    attributeAdded(HttpSessionBindingEvent) ,attributeRemoved(HttpSessionBindingEvent) ,attributeReplaced(HttpSessionBindingEvent) to write some meaningful message in logs.
    Track the message generated by attributeRemoved() method in particular to find out when exactly is your object D going out of session. May be that will give u some clue. You can use HttpSessionBindingEvent.getName() and
    HttpSessionBindingEvent.getValue() methods to know about the object added/removed/reset in your session that has invoked the particular method in your listener.
    Also you will need to register the listener class in your web.xml for that to work properly.
    You will find more examples/help of this listener in net if u do a google search.

  • 9iasR2, rwservlet, jsp report, output pdf HttpSession losing information

    Hi,
    I think this is actually something I'm doing wrong with JDeveloper/my understanding of HttpSession, so I'm posting here after getting no help from the Reports folks.
    I have a number of .jsp reports and our application also generates letters for the users with Reports server. We use http://server/reports/rwservlet?report=blah&keymap=blah to run the reports. The keymap specifies the userid and the other relevant information (destype=CACHE, desformat=PDF, etc)
    The problem is that we are storing information in the HttpSession and many times, but not 100% of the time, once we open the rwservlet results (PDF) into a frame and try to go "back" to our application, the data in HttpSession is gone. It's not 100% of the time, but when using the http://mysrv:7777 for all the URLS to go to apache directly, it happens nearly 100% of the time. When getting the webcache involved it happens much much less.
    I'm wondering if it's because I'm "leaving" my context-root (i.e. going from http://myserv/myapp to http://myserv/reports/rwservlet or something else
    If anyone has experienced this or has a better definition, I'd be happy to hear it.
    Also, if there were a way to include the rwservlet "inside" my application so that I'm not "jumping out" of my application, that would be good to try.
    Thanks for any ideas!
    Regards,
    Jeff

    Hi,
    I am using rwservlet from my JSP without problem. I am using 2 jsp pages. First copy output from rwservlet to the local file (report server is on other machine and I need archive of reports) and in second jsp I send this pdf file to the user directly from JSP.
    first.jsp include:
    <BODY onLoad="window.open("second.jsp?report="+<%=finame%>,...);">
    String sestavaURL="http://host:port/rwservlet?..";
    URL sestava=new URL(sestavaURL);
    HttpURLConnection uc=(HttpURLConnection)sestava.openConnection();
    uc.connect();
    InputStream is=uc.getInputStream();
    //is = Input stream with "cached" PDF report
    FileOutputStream os=new FileOutputStream(finame);
    //os= filename in report archive on localhost
    byte[] buff=new byte[1000];
    int readChars;
    while((readChars=is.read(buff))!=-1)
    os.write(buff,0,readChars);
    and the second.jsp includes:
    <%@page import="java.util.*,java.net.*,java.io.*,oracle.jbo.*,oracle.jbo.html.*,oracle.jbo.server.DBTransaction,java.sql.*"%><%@taglib uri="/webapp/DataTags.tld" prefix="jbo"%><%
    %>
    <%@ page contentType="text/html;charset=ISO-8859-2" errorPage="errorpage.jsp" %><%
    String fileName=finame;
    FileInputStream is;
    try
    is=new FileInputStream(fileName);
    catch(Exception e)
    response.setContentType("text/html");
    out.write("<HTML><BODY><H1>Report was not found</H1></BODY></HTML>");
    return;
    byte[] buff=new byte[1024];
    int readChars;
    response.resetBuffer();
    response.setContentType("application/pdf");
    response.setHeader("Content-disposition","inline;filename=generated.pdf");
    while((readChars=is.read(buff))!=-1)
    out.write(new String(buff),0,readChars); %>
    I hope this help you.
    Best regards
    Lubomir Sterba

  • Losing values in httpsession...

    This is a web application which is run over multiple servers. So the same war is deployed in multiple servers a to h , and a load balancer sends in requests to either of them...
    I believe that the load balancer sends all the requests associated with one session to the same server , say server a.
    This web app is not marked distributable and the stuff in httpsession is not serializable.
    I understand that if the server a comes down or whatever, the loadbalancer will direct requests to another machine which will recognize that the session id is invalid and redirect the browser to a login page.
    Now my question is this. How it possible to have a scenario where only parts of the httpsession are lost ?

    This is very specific to the server. Which one are you using?
    Also remember, the server may chose to serialize the session (in between requests) to conserve resources and any non-serializable data may be lost.
    All this depends on how you have configured your server.
    ram.

  • Deployig to a Cluster without losing session.

    Hi,
              We have a cluster setup with 4 servers. We use HttpSession and
              StatefulSessionBeans in the cluster with in-memory replication. Is it
              possible to redeploy the application to a cluster without losing
              session ?.
              Thanks,
              -Senthil.
              

    We have a cluster setup with 4 servers. We use HttpSession and          > StatefulSessionBeans in the cluster with in-memory replication. Is it
              > possible to redeploy the application to a cluster without losing
              > session ?.
              Not with WebLogic session replication. The session replication is "lazy"
              (only when something happens) so the best approach is to make sure there are
              no imcompatibilities and then cycle the cluster one server at a time, maybe
              one server every hour (or whatever your session timeout is).
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "Senthil" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              >
              > Thanks,
              > -Senthil.
              

  • ADF – Could I have HttpSession and EJB 3 Statefull session in same applicat

    I am using JDeveloper 10.3.2. Fist I create a single demo application to create EJB Session Bean (Statefull) and is working fine.
    When I am trying to use the same EJB to my large Application a got runtime Error,
    Without any exception. (Losing the information of EJB).
    And the Question is, Shall I use HttpSession and EJB 3 Statefull session in same application?

    Hi,
    if it is a Web application you need the https session anyway and the two are different kind of beasts, one handled by teh EJB container, the other by the web container.
    The question is why you ned stateful session beans - which seems to be a rare usecase? Usually state is persisted and tracked in the business service.
    However, without an error message its hard to tell what going wrong here
    Frank

  • I have 3 iTunes accounts which I had set up each time I bought a device not realising they all linked up (blonde!!). Can I consolidate them into one account without losing tunes,pics etc??

    I have 3 iTunes accounts which I had set up each time I got a new device not realising I should use the same one. Is there a way to consolidate the accounts without losing tunes etc as at the moment my iPad, new iPhone and iPod are all getting different downloads : (

    It's impossible to merge two iTunes accounts

  • My wife and I have made many purchases over several years on seperate accounts, how could we join them into one account, without losing everything?

    My wife and I have made many purchases over several years on seperate accounts, how could we join them into one account, without losing everything? We both use Iphone 5's and share an Imac at home.

    Purchases using one Apple ID cannot be merged or transferred to another Apple ID. Purchases are forever tied to that Apple ID used. You have to decide which Apple you want to use for purchases and stick to that Apple ID so that you can share: Settings > iTunes & App Stores > Apple ID : > use the same Apple ID here to share purchases.

  • Can I make a new iTunes account for my iPhone without losing photos?

    For the past four years, my sister and I have shared an iTunes account, as we were younger then and so liked roughly the same music.    In April 2014, I bought myself an iPhone 5s, and connected it to our usual, joined Apple ID.  Now though, we have very different tastes in music, and whenever one of us downloads songs they all get synced onto both of our phones.  For Christmas, I was given a laptop, and have been thinking about simply making my own iTunes Apple ID, to give myself a completely separate account.  What will happen to my existing songs and photos when I sync my phone to the new account?  I am willing to re-download all my songs as it would make it easier for me in the future, but I'm worried about losing all my photos as I don't have a camera and my phone has many photos that are important to me on it.  If I back up my phone on my old account, and then use it on my new account, what will happen to my photos and songs? Please help, many thanks in advance!

    you can connect the iPhone to your mac and import those iPhone photos and videos to iPhoto assuming you have iPhoto. You can create a folder and export all those photos to the Finder. Keep safe somewhere.  Also keep the iPhoto library for safe keeping. When you restore your iPhone you can sync all those photos back to the iPhone. so you will lose nothing. Just remember when you export from iPhoto select jpeg for photos and original for videos taken with the iPhone.

  • Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it?

    Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it? Because i've made lot of paid purchases using this apple id. In my game center account i have so many games data that i'd never installed.i wanna  stop sharing  friends and games with this xxx apple id in my old ipad version ios 4.2. and i can still keep using this apple id in my new ipad 3rd gen version ios 6 without sharing game and friends with this xxx apple id? and how to remove the games data that i never downloaded in my ipad but still registered at my game center account.i wanna keep using this apple id coz so many fav application i've purchased from this id. the answer as soon as possible if there is some one can help me to solve it.thank u for reading my question and very big thanks for anyone who  can give me a helpful answer.                 

    Why do you ask in the iWeb forum?

  • I have a 5 yr. old iPhone 3GS, I can't back it up to my laptop, it's not working, but wondered if i can back it up to her laptop, if I create a new user account name, w/out losing her info?

    My 5+ yr. old iPhone 3GS is on it's last legs. I desperatly need to "back it up" ASAP, so I can buy a new iPhone, and I really need to be able to transfer my 5 years worth of info to a new iPhone, (a 4S). The computer I used to back my iPhone on when I first got it no longer works, so I was wondering about being able to back my iPhone up to my daughters laptop, but she also has an iPhone 3GS, that's already backed up to her laptop. I know you couldnt back up two iPhones up to one computer, (at least that's what I was told, years ago), but I was recently told by an "Apple" rep that I could "probably" back my iPhone up to her computer without losing anyone's info, if I created a "Secondary User Name Account" on her computer. I'm not comfortble doing this unless I'm reassured more than being told that it's "probably" safe.
    Does anyone know what options I have, and if this idea would result in one or both of us losing our info, if we tried to store two iPhones "back up info" on one laptop?
    My phone's barely working at all, but I can still access my info, (for now, at least). I really need to do something now.
    Could anyone who knows how this works please give me some info?
    Thanks in advance.

    First, you don't have a 5+ year old 3GS. The 3GS has only been around for under 4 years. In fact, 5 years ago there were NO iPhones; the original iPhone (2 generations before the 3GS) came out on June 29, 2007 - not quite 5 years ago. The 3GS was released June 19, 2009.
    That aside, you can sync multiple phones to one computer - see http://support.apple.com/kb/HT1495. boogeyman is wrong. It is 100% safe to create an additional user name on her computer, log in with that name, and back up the phone. See this for details on what you want to do: http://support.apple.com/kb/HT2109

  • I have an iPad and and iPhone. They share an iCloud and I want separate iCloud accounts. How do I create a new account without losing any information? I want to keep the original account on one device.

    I have an iPad and an iPhone that share an iCloud account. I didn't realize when I got my iPad last year that when I signed up the iCloud on the device that it would share and use 5g of iCloud between the both of them. How do I unsync them and have two separate iCloud accounts? I don't care about sharing between them. When my kids put games on my iPad, I don't want them going on my phone. How do I create a new iCloud without losing any info on the other device?

    Hi sugaliko,
    You may need to set up your BlueTooth connection to the keyboard again. Use the steps in this article for guidance -
    iOS: Third-party Bluetooth accessories
    http://support.apple.com/kb/HT1664
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • I recently just updated my iPhone 4s to 5.0.1 and I am losing battery life at a faster rate. How do I help my battery life or can I go back to the old system?

    This is my first iPhone I am having problems with my battery life. I recently updated to the new operating system for the iPhone 4S. I am losing battery life at a quick rate is there anything that I can do.

    You can search the forum and read the many helpful posts with suggestions on how to improve your battery life.

  • What other methods are there to re-install Win 8.1 pro without losing files & programs, if I am unable to update my Recovery image?

    So I am thinking my Windows 8.1 Pro needs a refresh, but I have not ran "recimg /createimage C:\*" for a while and because of the problems I have. I cannot create a new one, it just wont work and I've had a post on here about that issue for a while
    now and nothing has worked.  So I know I need to re-install windows but I really want to be able to keep my Programs & files.
    So my question is, are there any other methods to re-install Windows 8.1 pro without losing my programs?
    That's the reason I have not just done a reinstall, because of the time and effort needed to do this in a timely manner.  Also I need to keep my programs APPDATA intact so that my applications still work as they do now, some programs have got months
    of history and data.  Also I am not certain I still have the installers for some of my applications, I know I can get them but again its the time it would take.
    This is why I run a separate backup of my APPDATA DIR, am I right in thinking that If I did have to reinstall that I could just restore the old APPDATA data to the new Install and my programs would automatically have all there normal settings?
    So what are my options?
    Thanks peeps.
    JK MCP

    Isn't that only used when a PC will not boot?
    What options does booting with this give me?
    Thanks
    JK MCP
    Hi,
    USB recovery disk was used to recover your system when it encounter problem. You can try to use it to fix your problem instead reinstall system. However, there is no method to keep your program whenreinstall system.
    Roger Lu
    TechNet Community Support

  • I have a late 2012 iMac running osx 10.8.5.  I keep losing access to my internal hard drive.  I can reboot and regain access and it will last for a few minutes or hours.  Disk utility does not seems to help.

    I have a late 2012 iMac with an I5 precessor running OSX 10.8.5 and a 1tb internal hard drive.  I keep losing access to the internal hard drive/startup disk.
    I can reboot and everything operates as normal for a few minutes or hours but then I lose all access again to anything on the hard drive.  The computer is still up and running but no files can be accessed and certain websites cannot be acessed even though internet access appears to be normal.  Disk utility can only find permission errors related to iTunes which can be repaired only to come back at the next scan (I would not think permission errors would have anything to do with the hard drive crashing).  It does not seem to matter what program I am using at the time access is lost and it can lose access sometimes right after reboot when no program is running.

    You will need to boot into the Recovery Volume (command - R on a restart or hold down the option/alt key during restart and select it) to run Disk Utility/Disk Repair.

Maybe you are looking for