Lost session on Solaris

I am experiencing the following problem running when running a servlet
          on Weblogic 4.5.1 SP 8 on Solaris (it works fine on NT) using IE with or
          without cookies (testing on Netscape will be done next week)
          - sometimes my session gets lost. It is pretty difficult to
          reproduce, but it happens enough to know it is a bug somewhere
          This is the code that gets executed:
          HttpSession sess=null;
          try {
          sess = req.getSession(true);
          catch (UnsupportedMethodException ume) {
          return ServerSession.getInstance(null);
          MySession m = (MySession)sess.getValue(SESSION_PROPERTY);
          if (m == null)
          m = new MySession ();
          sess.putValue(SESSION_PROPERTY, m);
          Does anybody know if this could be a Weblogic problem? It puzzels me
          that it happens on Solaris, and not on NT.
          It looks to me that the problem is either in
          req.getSession(true);
          or
          MySession m = (MySession)sess.getValue(SESSION_PROPERTY);
          Any help would be appreciated - I have been stuck with this one for a
          while....
          Thanks a lot,
          Branka Billante
          

This is a known bug. We're on it for a future service pack.
          Thanks,
          Michael
          Michael Girdley
          Product Manager, WebLogic Server & Express
          BEA Systems Inc
          Branka Billante <[email protected]> wrote in message
          news:[email protected]...
          > I am experiencing the following problem running when running a servlet
          > on Weblogic 4.5.1 SP 8 on Solaris (it works fine on NT) using IE with or
          > without cookies (testing on Netscape will be done next week)
          >
          > - sometimes my session gets lost. It is pretty difficult to
          > reproduce, but it happens enough to know it is a bug somewhere
          >
          > This is the code that gets executed:
          >
          > HttpSession sess=null;
          >
          > try {
          > sess = req.getSession(true);
          > }
          > catch (UnsupportedMethodException ume) {
          > return ServerSession.getInstance(null);
          > }
          > MySession m = (MySession)sess.getValue(SESSION_PROPERTY);
          > if (m == null)
          > {
          > m = new MySession ();
          > sess.putValue(SESSION_PROPERTY, m);
          > }
          >
          >
          > Does anybody know if this could be a Weblogic problem? It puzzels me
          > that it happens on Solaris, and not on NT.
          >
          > It looks to me that the problem is either in
          >
          > req.getSession(true);
          >
          > or
          >
          > MySession m = (MySession)sess.getValue(SESSION_PROPERTY);
          >
          > Any help would be appreciated - I have been stuck with this one for a
          > while....
          >
          > Thanks a lot,
          > Branka Billante
          >
          

Similar Messages

  • Window open lost session

    I have a jsp app and it lost session when I try to popup new window
    Googled around, millions of results but no helps
    It seems problem is in my IE 8
    If anyone has expeience with the issue, please give me a help. Thank you
    Edited by: mycoffee on Jul 28, 2010 1:45 PM

    Solved
    Solution: Reboost the machine
    Sorry guys

  • How to reconnect to a disconnected remote ssh session on solaris 10

    hi all
    How to reconnect to a disconnected remote ssh session on solaris 10
    is there a way to accomplish this

    No, there's not.
    A common solution for this is to get a copy of 'screen'. After connecting via ssh (or any other protocol), you can start a "screen" session. If you get disconnected (or disconnect intentionally), you can later come back on the machine and bring your existing "screen" session back.
    Darren

  • Lost session, editing in developer mode as continue with old topic

    hi
    i have same problem as guy:
    lost session, ff wont load it, just home page, hothing else.
    i saved sessionstore.bak file
    renamed to .js, nothing happend
    then following this advice:
    to type into dev console
    eval("ss = "+document.body.innerHTML.replace("<pre>", "").replace("</pre>", ""));
    and
    for (var i = 0; i < ss.windows[0].tabs.length; i++) { var ent = ss.windows[0].tabs[i].entries; var last = ent[ent.length-1]; document.write("<a href="+last.url+">"+last.url+"</a><br />"); }
    but something is wrong because it says as other guy:
    TypeError: ss.windows[0] is undefined
    please modify somehow that code to make it work
    i had a lot of tabs, must get them back
    thanks for help
    old not solved topic:
    https://support.mozilla.org/en-US/questions/947856

    hello, let's keep all the discussion on the subject in your originally created question at https://support.mozilla.org/en-US/questions/985630 - otherwise it's difficult for contributors to follow up and provide effective help. also refer to the [[Forum rules and guidelines]].
    thank you for your understanding!

  • Is there any way to restore lost sessions closed accidently?

    I had many tabs open but accidently closed the firefox without saving it. When I opened next time, I lost all the tabs. Is there any way to restore those tabs.
    I saw a posting which refering to renaming a file called sessionstore.bak but I could not find that file. I need a permanenet solution to this. I don't want to save everything in the bookmark. Alternatively, is there any way to save multiple opened sessions which can be retrieved any time.

    Apparently new in FireFox 4, possibly due to customer demand, there is a selection to Restore Previous Session in the History menu. Unfortunately, I must use it way too OFTEN.

  • Lost session WLCookieName

    Hi,
    I have webserver with apache and 2 application servers with weblogic, where the traffic is loadballanced. I have there more apps deployed, but for one I got session time out.
    When I have reviewed the configuration for this app:
    <Location /app1>
    SetHandler weblogic-handler
    WLCookieName cookie01
    </Location>
    I found out, that in application's weblogic.xml I don't have configured session-descriptor element. May it be the reason of session lost? If yes should I remove WLCookieName line in <Location> container, as far as I know default is JSESSIONID, or better way is configure weblogic.xml with the same CookieName to be sure that session will be not lost.
    Thanks for any idea.
    Edited by: double on 28-Apr-2011 12:03

    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/plugin_params.html#wp1143055
    If you change the name of the WebLogic Server session cookie in the WebLogic Server Web application,
    you need to change the CookieName parameter in the plug-in to the same value. The name of the
    WebLogic session cookie is set in the WebLogic-specific deployment descriptor, in the <session-descriptor>element.
    (http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html#session-descriptor)
    I think the best is to accept the default and remove the WLCookieName (the default is JSESSIONID)

  • Lost session data on jsps

    I run a jsp on Tomcat. But the Tomcat says that the session is lost and returns a null pointer. There is no session clear statement in my jsp except its pointing out a null session data.
    It works well when I go to a jsp that comes from a servlet processing. But when I click on link that directly calls on a jsp page, the page doesn't finish loading/errs out.
    What to do with this? This works fine in single-serevr instance. But when it's run on a cluster/shared environment, it doesn't.
    Message was edited by:
    rachehernandez

    I'm new to tomcat itself and to this job :) I'm using tomcat 5.0.28.
    I'm not sure how they do clustering in their setup though.
    It's working fine by in a test standalone mode. I do think there's something wrong with the setup. But how would I know?
    The jsp sometimes work , and most of the times not. It works when you try to refresh the page. It also works when it comes from a servlet call. But when its just an href link, it doesn't. JSP is using an object from the session. It throws an exception when it can't find this object in the session. But when I click on a link that calls a servlet to load a jsp that's using the same session object, how come it can load up.
    What's happening with the session?
    Thanks!

  • Lost session. can i get it back?

    Hi. I am using iChat 3.1.9 and OS 10.4.11. I closed the window of a chat session and did not realize I would lose the session forever. The session contained audio files I need to download. Can I get this session back? I have not quit iChat. Also, I did not have my Prefs set up to automatically save sessions. (Believe me, I do now.) Thanks.

    I am afraid that one is lost forever unless your Buddy kept a copy.
    However you can not re-download the links/files or pictures it contains.
    Clips and pics in Live chats need to be pulled to the Desktop to have them Available after the chat has finished.
    If the files were downloaded at the time they should be in the Downloads folder
    7:43 PM Saturday; December 6, 2008

  • Can't restore lost session using sessionrestore.bak

    So I had quite a big number of tabs opened. Firefox started to slow down badly and then I by accident removed power cord. After I switch on the computer firefox didn't display the usual communicat about restoring the session. So I went and copied sessionrestore.bak and then renamed it to .js and started firefox again. But it does not display lost tabs goes to homepage. What can I do? I tried googling for help but found nothing...
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2; AskTB5.6)

    Are you using "Show my windows and tabs from last time" or do you rely on "Save and Quit"?
    The latter may not always work reliable.
    Firefox will try to restore a crashed session automatically once and copy sessionstore.js from that crashed session to sessionstore.bak
    If that hasn't worked then that session might be lost.
    See also https://wiki.mozilla.org/Session_Restore (Preferences)

  • Recovering several lost sessions that were all lost at once (numerous important pages up)

    i receieved a message after my session crashed saying "Well, this is embarrassing..." and then listed all of the pages that were up in tabs on my session... I accidentally clicked "close" rather than restore and then lost everything... Ive tried everything i can think of to recover my tabs but no luck so far... I tried to set it so that when i opened firefox that it would "restore tabs from last time" but that didnt work and the restore previous session in the drop down is grayed out... is there anything i can do to recover the tabs or at least bring back the "well this is embarrassing" screen so that i can see which pages i had open? Please help... thanks

    i typed about:sessionrestore in the location bar and it brought the page back up but it was empty without my webpages in it... I found the two files you mentioned sessionstore.js and sessionstore.bak ... however i am not quite sure what to do from there... I right click it and then click restore previous versions? when i do that the most recent one is from 02/28/13 - does this mean that all of my webpages within the last week are gone? thanks for your help... in helping me try to figure this out

  • MSCS node move and lost sessions

    hi there,
    I'd like to know if sessions lost during an MSCS node move is a normal behaviour with Microsoft Windows 2000 AS, SAP R/3 4.7 (CI instance) or there's something wrong with our configuration.
    thank you.

    Hi,
    We just completed the SAP installation on Cluster. Loosing sessions when you move the group is normal behavior. SAP resource will be restarted on the surviving node. Hence the user will loose the connection.
    Check http://www.microsoft.com/NTServer/Support/faqs/clustering_faq.asp for more details:
    For client-side applications that have "state-full" connections to the server, a new logon is typically required following a server failure. In many cases, this approach is required for security purposes. For example, this is how SAP R/3 works--if the server connection is lost, the user is prompted to log on again to make sure it's the same user accessing the application.
    Regards
    Subbu

  • Printing a Web Report Using Firefox Results in Lost Session Variables

    Post Author: AVXFlyer
    CA Forum: .NET
    I'm  having a problem with Firefox users printing a Crystal Report from a web site. 
    The first page of the web site collects information to be used in the report generation, for example, start date, end date, type of report etc.  These are all various text boxes, drop down lists, radio buttons and check boxes.  When the user clicks to show the report, everything works fine and the first page of the report will display. The code behind this page takes care of saving al the session variables into hidden fields on the page so the settings will be accessible when the user clicks to view the next page of the report.
    On clicking to view the next page of the report, everything is still fine and the process works beautifully and I've had no problems. 
    A new problem has surfaced during the printing of these reports.  Users who use IE6.0 or IE 7.0 do not have a problem, however, users who use Firefox do have a problem.
    It seems that the print dialog which appears as part of the the Crystal web control manages to 'lose" the variables which were present on the calling page.  It only does this with the Firefox browser.  Calls on postback to retrieve the variables from the hidden fields result in 0's or empty strings ("").
    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init .... ....  If Me.IsPostBack = False Then ... ...        strDiscontinuedOnly = Request.Form.Item("ddlInvStatus")             If strDiscontinuedOnly = Nothing Then                 isDiscontinuedOnly = False             Else                 Select Case strDiscontinuedOnly                     Case 0 'All Inventory                         isDiscontinuedOnly = False                     Case 1 'Discontinued Inventory                         isDiscontinuedOnly = True                     Case 2 'Active Inventory                         isDiscontinuedOnly = False                 End Select             End If Else 'Postback is true             intRequestedReport = Request.Form.Item("fldReportID")             strDiscontinuedOnly = Request.Form.Item("fldInvDiscItemsOnly")             isDiscontinuedOnly = Request.Form.Item("fldInvDiscItemsOnly") ... ... end if

    Can't explain it, but here are a few tests;
    1) Try to print a saved data report
    2) Try to print a report that is not using parameters
    3) Try a different printer driver as "default"
    4) Enable the option "Dissociate Formatting Page Size and Printer Paper Size" on the report
    5) What format do you export to?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Lost session after window.open

    I'm running two web applications in different WebLogic server instances
    (port no 7001 & 7003).
    When A.jsp (in 7001) executes a script window.open('B.jsp') (in 7003), the
    session associated 7001
    loses its data. Has anyone meet this problem ??? I use WLS 8.1 sp2.
    Thank you.
    Joseph Lee

    You would be better of looking at an explorer news group for this answer.
    This is because session information is stored in a cookie that is handed to weblogic by the browser, weblogic does not give a shit who's talking to it as long as a valid session is returned.
    So it sounds like the browser is not doing its job of associating the new window with the same session but thinks it is a brand new window (just like "file new"), there is probably another javascipt command you should be using, other than this one.

  • Oc4j and lost session in the SSL

    1.) setup oc4j 904 for SSL
    2.) create class from this servlet:
    //------------------------UrlRewriteExample------------
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.Date;
    public class UrlRewriteExample extends HttpServlet {
    public void doGet (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Get the session object. Create a new one if it doesn't exist.
    HttpSession session = req.getSession(true);
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    out.println("<head><title> " + "SessionServlet Output "
    +"</title></head><body>");
    out.println("<h1> SessionServlet Output </h1>");
    // Set up a session hit counter. "sessionservlet.counter" is just the
    // conventional way to create a key for the value to be stored in the
    // session object "dictionary".
    Integer ival =(Integer) session.getAttribute("sessionservlet.counter");
    if (ival == null) {
    ival = new Integer(1);
    else {
    ival = new Integer(ival.intValue() + 1);
    // Save the counter value.
    session.setAttribute("sessionservlet.counter", ival);
    // Report the counter value.
    out.println(" You have hit this page <b>" + ival + "</b> times.<p>");
    // This statement provides a target that the user can click on
    // to activate URL rewriting. It is not done by default.
    out.println("Click <a href="
    + res.encodeURL(HttpUtils.getRequestURL(req).toString())
    + ">here</a>");
    out.println("Moj riadok <a href="
    + res.encodeURL(HttpUtils.getRequestURL(req).toString())
    + ">here</a>");
    out.println(" to ensure that session tracking is working even " + "if cookies aren't supported.<br>");
    out.println("Note that by default URL rewriting is not enabled" + " due to its large overhead.");
    // Report data from request.
    out.println("<h3>Request and Session Data</h3>");
    out.println("Session ID in Request: " + req.getRequestedSessionId());
    out.println("<br>Session ID in Request is from a Cookie: " + req.isRequestedSessionIdFromCookie());
    out.println("<br>Session ID in Request is from the URL: " + req.isRequestedSessionIdFromURL());
    out.println("<br>Valid Session ID: " + req.isRequestedSessionIdValid());
    // Report data from the session object.
    out.println("<h3>Session Data</h3>");
    out.println("New Session: " + session.isNew());
    out.println("<br> Session ID: " + session.getId());
    out.println("<br> Creation Time: " + new Date(session.getCreationTime()));
    out.println("<br>Last Accessed Time: " + new Date(session.getLastAccessedTime()));
    out.println("</body>");
    out.close();
    public String getServletInfo() {
    return "A simple session servlet";
    }//--------------------END UrlRewriteExample------------
    3.) copy class file to oc4j home ..\home\default-web-app\WEB-INF\classes\UrlREwriteExample.class
    4.) try https://localhost<your ssl port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: false
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, Session ID in Request is from a Cookie: false
    5.)try http://localhost<your port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: true
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, now is Session ID in Request is from a Cookie: true
    6.)try again https://localhost<your ssl port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: true
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, Session ID in Request is from a Cookie: true
    What I have to do, if I want the some state when I try https first time? ( 4.)==6.) )
    Zajo

    Perhaps, if no one can provide an answer, someone could at least direct me to a website or user who might have so more in-depth knowledge on this situation?

  • Lost session, trying make useable file sessionstore.js through code in console. continue from old topic

    old topic:
    https://support.mozilla.org/en-US/questions/947856
    i have same problem with code entered to console. it says:
    TypeError: ss.windows[0] is undefined
    please help

    Could we review the file(s) you have? For example, did you save a sessionstore.bak file that contains the windows and tabs you want to re-open? Make sure to have a backup of this in a safe location (e.g., Documents folder) before proceeding, since this file will be overwritten at Firefox startup.
    If you have an intact sessionstore.bak file, try substituting it for the sessionstore.js file. Here's what I mean.
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Leaving that window open, switch back to Firefox and Exit
    Pause while Firefox finishes its cleanup, then rename '''sessionstore.js''' to something like sessionstore.save to keep your latest session available for future access.
    Note: If the .js extension does not appear on sessionstore, you should turn off the Windows feature that hides file extensions from you, so that you can work with file names as accurately as possible. This Microsoft support article has the steps: [http://support.microsoft.com/kb/865219].
    Then copy your sessionstore.bak file that contains the windows and tabs you want to reopen back into the folder and rename it to sessionstore.js.
    Restart Firefox and restore your previous session. Success?

Maybe you are looking for

  • Tomcat vs Apache with Tomcat connectors (mod/jk)

    Is there any advantage (security, performance etc.) of running a Java web application on Apache HTTP Server with Tomcat Connectors (mod/jk) rather than directly running it on Tomcat.

  • CS4 - Missing buttons in dialog when saving as pdf

    Hi Folks, I'm wondering if anyone else has come across this problem, or perhaps it's just an issue with my installation.  I get occassional strange issues when saving as pdf, though i think it happens in other cases too.  In the dialog (after choosin

  • Photosmart b110a only prints in black and white

    Hi i've got a photosmart b110a which copies and scans in colour, but will only print out from my imac in black and white. Does anyone have the same problem and hopefully the answer 

  • Movies vs Video clips

    I've bought video clips from iTunes Mudisc Stores. Some have been downloaded as bonus tracks when I've bought some albums, some have been bought recently as stand-alone videoclips. The issue is that the first kind are "tagged" as movies, the second k

  • App Store Update Page will not find or install 10.2.3

    I am having trouble with the App Store recognizing and downloading the update to OS 10.2.3.  It worked fine on my MacBook Air, but is giving the following problems on my Mac Pro and iMac, both of which are running 10.2.2: 1  Either the Updates page j