Problem with Sessions, Servlets, Netscape and Solaris

We are experiencing a problem that is confounding and frustrating us (I have
          a felling that it is something exremely minor that we are overlooking).
          Here goes:
          Context:
          The problem only occurs when using a netscape browser against weblogic
          4.51running on our Solaris 7 box (Everything works fine through IE, and
          through both browsers against our development machines which are on NT)
          Problem:
          We have a bunch of JSP pages and servlets that are used togehter throughout
          our site. They both manage session information for the user. What is
          happening is that there is no problem maintaining session information among
          all the JSP pages, but when we hit a servlet that we use to stream graphs
          back to the browser, it gets the session but it has no contents all of a
          sudden. What seems to be even more strange is that the session is not
          tagged as new (by checking isNew()), it is just empty of the contents that
          were placed it by the JSP pages. Again, this is only occurring from
          Netscape browsers against our Solaris server.
          If anyone can provide any help it would be greatly appreciated. I can
          provide more details if need be.
          Jeremy
          

There is a property in the weblogic.properties file that lets you set
          the cookie name. If this isn't set, the port will be appended as part of
          the name. I've had a similar problem switching between http and https
          and losing sessions.
          Carles
          Jeremy wrote:
          >
          > in the link tothe servlet the URL had a :80 in it. This was because the url
          > was generated by a JSP page so that when it was moved from server to server
          > and port to port the code wouldn't have to be changed. Unfortuneately,
          > Netscape sucks and takes this to mean that x.x.x.x and x.x.x.x:80 are
          > different and won't acknowledge the cookie from the JSP pages (x.x.x.x) to
          > the servlet (x.x.x.x:80). Thanks fpr your help.
          >
          > Jeremy <[email protected]> wrote in message
          > news:[email protected]...
          > > my mistake, it appears to always happen on port 80 regardless of the
          > server
          > > it is on.
          > >
          > > Jeff Martin <[email protected]> wrote in message
          > > news:[email protected]...
          > > > It really sounds like your servlet is making a new session, even though
          > > > isNew() doesn't say so. What you might try to do is use session.getId()
          > > > to print out the session ID from your jsp pages as well as your servlets
          > > > to determine if it really is a new session.
          > > >
          > > > Do your servlets and JSPs both use the same scheme (http or https) or
          > > > cookie.setSecure()? Do your cookies use domains or paths in either
          > > > servlets or jsps (cookies can be restricted to certain subdirectories
          > > > which might be different between jsps and servlets)? Are you testing
          > > > through a proxy or firewall, or does either browser have different proxy
          > > > settings than the others?
          > > >
          > > > Jeff
          > > >
          > > > Jeremy wrote:
          > > > >
          > > > > We are experiencing a problem that is confounding and frustrating us
          > (I
          > > have
          > > > > a felling that it is something exremely minor that we are
          > overlooking).
          > > > > Here goes:
          > > > >
          > > > > Context:
          > > > > The problem only occurs when using a netscape browser against weblogic
          > > > > 4.51running on our Solaris 7 box (Everything works fine through IE,
          > and
          > > > > through both browsers against our development machines which are on
          > NT)
          > > > >
          > > > > Problem:
          > > > > We have a bunch of JSP pages and servlets that are used togehter
          > > throughout
          > > > > our site. They both manage session information for the user. What is
          > > > > happening is that there is no problem maintaining session information
          > > among
          > > > > all the JSP pages, but when we hit a servlet that we use to stream
          > > graphs
          > > > > back to the browser, it gets the session but it has no contents all of
          > a
          > > > > sudden. What seems to be even more strange is that the session is not
          > > > > tagged as new (by checking isNew()), it is just empty of the contents
          > > that
          > > > > were placed it by the JSP pages. Again, this is only occurring from
          > > > > Netscape browsers against our Solaris server.
          > > > >
          > > > > If anyone can provide any help it would be greatly appreciated. I can
          > > > > provide more details if need be.
          > > > >
          > > > > Jeremy
          > >
          > >
          

Similar Messages

  • Problem with Sessions in JSP

    Hi,
    I am working on a JSP based website, where I am facing problem with sessions. The user is asked to login by providing her id and password. If found correct, a bean is created and populated with all her details and placed in session scope. I plan to use the information stored in the bean on other related pages until she logs out.
    <jsp:useBean id="validUser" scope="session" class="UserBean" >
    <c:set target="${validUser}" property="userId" value="${fn:trim(dbValues.UserId)}" />
    <c:set target="${validUser}" property="userName" value="${fn:trim(dbValues.UserName)}" />
    </jsp:useBean>
    <c:redirect url="userHome.jsp" /> The user is presented her homepage - 'userHome.jsp', where she can find various links, like 'Update Profile', 'Pay Registration Fees', 'Book Room' etc. The information stored in the bean is available on 'userHome.jsp'page.
    <A HREF='userHome.jsp'>Home</A>
    <A HREF='editPersonal.jsp'>Update Profile</A>
    <A HREF='registrationFee.jsp'>Pay Registration Fees</A>
    <A HREF='bookRoom.jsp'>Book Room</A>
    <A HREF='logout.jsp'>Logout</A> The problems are:
    1. Whenever user clicks on any of the above mentioned links and moves to any page, the bean comes out as null.
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser == null}">
    <jsp:forward page="loginForm.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="You must be logged in to access this site." />
    </jsp:forward>
    </c:if> 2. The URL shows an additional jsessionid, which my client doesn't want to see.
    3. On every click on any link, the value of this jsessionid changes.
    What I presume, when I am clicking on different links, my session changes, and so I am seeing a different jsessionid. And since session is changing, therefore the bean is not available in a different session.
    All this works fine with localhost, problem comes into picture, when I upload my pages to the server.
    Puzzled, can anyone help, where am I going wrong? Let me add here, I am new to JSP and hence don't have much resources with me.

    There are several ways sessions can be exchanged between the browser and the server in a j2ee web application.
    1. The default is through cookies. However when the client does not accept cookies, the server appends the session id to the url.
    2. Some servers also facilitate session information exchange using session id in the url even if the client does accept cookies. This is usually ahieved through a setting in some server configuration file.
    You will have to find out why the server in your application is appending the session id to the url.
    Whatever be the case, the server should be able to look up the session from the incoming request (be it from the session id in the url or a session cookie).
    When session information is exchanged through the JSESSIONID in the url, you should ensure that each and every url that goes to the server has this input parameter. To do that all links and form post urls in your servlet/jsp should be treated with a call to encodeURL().
    For example, in a jsp
       <a href = "<%=response.encodeURL("/nextJsp.jsp")%>">Click here </a>
    or
       <form action = "<%=response.encodeURL("/nextJsp.jsp")%>">
       </form>etc.
    ram.

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Problem with sessions in Kate Editor

    Hey guys!
    I'm using Kate Editor to code and i'm having problems with sessions. If kate is open and I logout KDE, when I come back to KDE all my customizations in Kate's session (activated plugins, font size, etc) are lost.
    If I manually close Kate before logout from KDE, all the customizations are kept when a manually start Kate. I tried a lot of workarounds, but none worked.
    Is this a bug? Someone else with this issue?
    Thanks in advance!

    The Warning errors are simply because you don't have the tablespaces, users, and roles defined in your application system under the DB Admin tab. Unless it is important to you to capture the physical implementation of your tables exactly as well as the table definitions, you can safely ignore these. If the physical implementation IS important to you, then you need to create these tablespaces, roles and users under the database that you created under the DB Admin tab before you start the capture.
    The Error is because in the set of objects you are capturing there is a foreign key that references the table named "PLEASANT". This table must be among the objects that you are capturing, or must already be in a Table Definition in your application system in the repository.

  • I have a problem with session manager session files because of the invalid json storage data submited by firefox

    Hi, i have problem with session manager's session files. The problem is: the submitted storage data from firefox which is put between "storage":{ and its matching closing brace } But in some of my session files there is non equal { and } under storage's braces. I need to get storage data but in my case it is very hard to do. My question is there any char put before or after { and } like /{ or \{ to avoid confusion? If there is not such thing, i think there could be different solution but i am not sure: i look couple of my session files; after "storage":{...} there is ,_"formDataSaved" so i can get storage data in this example ... by looking between "storage":{ and ,"_formDataSaved" easily. Is there every time ,"_formDataSaved" after "storage":{ ?  Thank you.

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • I'm having problems with Adobe Illustrator , Photoshop and MediaEncoder !

    I'm having problems with Adobe Illustrator , Photoshop and MediaEncoder !
    The ilustrator when opening files from a lack of memory of which I own already find it hard 11Gbram , Photoshop crashes inesperdamente and the Media Encoder is not converting the video in nnehuma the options requested .
    Would like guidance , never had such problems with Adobe software . Today got a MacPro 2x2,2.66 Ghz Dual Core Intel Xeon 11Gbram 240GB SSD .

    Hi Mw,
    Will it be possible for you to join the connect session: https://my.adobeconnect.com/rbhunwal
    I want to have a look into this.
    Thanks & Regards,
    Raghuveer

  • I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    I downloaded a new version of firefox. It said it had problems with my norton toolbar and now it doesn't feature it in the window. I'm not that comp savvy. How do I either get the Norton toolbar up or go back to the old firefox? Thank you.

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • I tried downloading a free app and it asked for my billing information and when i entered it, it says that there was a billing problem with a previoud purchase and i have to update it. I keep updating it and it wont let me verify it and i cant get apps

    I tried downloading a free app and it asked for my billing information and when I entered it, it said that there was a billing problem with a previous purchase and I have to update it. I keep updating it and it wont let me verify it and I cant get any apps even if they are free, and I just Deleted some apps to make room for my new upate!

    The message says: "The payment method has been denied, try another method"
    I'm living in the same country and city since I was born, so I don't think the location is the problem.
    And yes, I paid with the card a meal in Burguer King today. And nothing more.

  • HT3552 I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    Have a look here >  http://support.apple.com/kb/TS1646

  • Communication problem with Adobe 9.0 and HP Printer when I scan

    I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
    Thanks.

    Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0   Had to go to Adobe 6.0
    Date: Thu, 17 Dec 2009 03:19:49 -0700
    From: [email protected]
    To: [email protected]
    Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
    May be that the HP software doesn't support Adobe Reader 9.
    >

  • Problem with java swing button and loop

    Problem with java swing button and loop
    I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
    I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
    When I click on start button it must do next:
    Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
    And when I click on stop button it must do next:
    Start button must set enabled and selected and Stop button must set disenabled.
    Field status is set to 0.
    This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
    There is java code, so you can get better picture:
    /** start button */
    public void gStart_ActionEvents() {
    try {
    ivjGStart.setEnabled(false);
    ivjGStop.setEnabled(true);
    ivjGStop.setSelected(true);
    getJTextPane1().setText("Program is running ...");
    Status = 1;
    } catch (Exception e) {}
    /** stop button */
    public void gStop_ActionEvents() {
    try {
    ivjGStart.setEnabled(true);
    ivjGStart.setSelected(true);
    ivjGStop.setEnabled(false);
    getJTextPane1().setText("Program is NOT running ...");
    Status = 0;
    } catch (Exception e) {
    /** procedure IzvajajNeprekinjeno() */
    public void IzvajajNeprekinjeno() {  //RunLoop
    try {
    int zamik = 2000; //delay
    do {
    Thread.sleep(zamik);
    PreberiDat(); //procedure
    } while (Status == 1);
    } catch (Exception e) {
    So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
    Any help will be appreciated.
    Best regards,
    Tomi

    This is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
    Since java is task-based this will happen if you do like this:
    1. Button "Start" is pressed. Thread running: GUI_Thread
    2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
    3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
    4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
    5. Call PreberiDat(). Thread running: GUI_Thread
    6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
    Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
    What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    This tutorial explains how to build a multi threaded gui.
    /Lime

  • Memory Problem With 4gb Crucial Ballistix and Asus M4A785TD-V EVO

    motherBoard: ASUS M4A785TD-V EVO
    bios Version :2005
    Video: amd hd5750
    Processor: AMD PHENON II X2 550 3.100MHZ
    Memory: Crucial
    Modele Memory: blt4g3d1608dt1tx0
    Capacity: 4GB
    greetings to all
    i have asus m4a785td-v evo mobo. i ve bought 4 gb crucial ballistix ram today. it says on product its 1600 mhz and cl8 but it shows on my pc 1333 mhz and cl9.  when i was searching for this problem i came across this topic: http://forum.crucial.com/t5/Crucial-Ballistix-gaming-memory/Memory-Probleme-With-8GO-Crucial-Ballistix-and-Asus-M4A785TD-V/td-p/9464 can i apply the same settings? how can i fix that?  is it possible via bios settings? thx in advance and sry for my bad english. here is some screenshots: 

    I am not good at RAM setting but the 'Timings Table' shows there is XMP-1600 profile available so I believe it would be enough to turn on that memory profile in BIOS.

  • I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    I have problem with syncing in itunes and it stared since i installed new version of itunes.it stuck in backup step for houres.what shud i do?

    So, in iTunes, when you look at the shuffle's content (in the sidebar) and click on the playlist under the shuffle, over to the right, the songs are in your desired order, correct?  Where do you look, or what do you do, that indicates the playlists are in alphabetical order?  Are you saying that when you play the songs while using the shuffle, they play in alphabetical order?
    If so, when you listen to the songs on the shuffle, are you using the playlist, or are you using the All Songs list? If you are in the default All Songs list, with the shuffle's power switch set to play-in-order (the middle position), the songs play alphabetically, I believe. 
    The 3rd gen shuffle uses VoiceOver.  If you are in the All Songs list, you need to use VoiceOver to switch to the playlist (see manual linked below for details).  When you are in the playlist (with the shuffle's power switch set to play-in-order), then the songs should play in playlist order.
    There are more details in the manual for the 3rd gen shuffle, which is online here
    http://manuals.info.apple.com/en_US/iPod_shuffle_3rdGen_UG.pdf
    See page 22 for the section about setting up and using VoiceOver.  The part about switching playlists starts on page 23 (Using the Playlist Menu).

  • TS1646 hello  I have problem with regist my visa and I cannot buy from store the message came in the end of form is says the phone number must be a 7-digit number and I have writed but not accepted iam from saudi arabia my mobile is 966504850992 pls answe

    hello 
    I have problem with regist my visa and I cannot buy from store
    the message came in the end of form is says
    the phone number must be a 7-digit number
    and I have writed but not accepted
    iam from saudi arabia
    my mobile is 966504850992
    pls answer
    thanks
    dfr aldossary

    Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum.  Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is.  Apple is not here.  It's users, like you. 
    If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off.

Maybe you are looking for

  • Schedule a part of webi report to excel

    Hi I have a requirement , where i have multiple report tabs in a webi document and i want to schedule a particular tab to excel excluding the other tabs while scheduling Is it possible in BO 4.1? Any suggestions or Work arounds? Thanks Dinesh.P

  • Automatic approval workflow does not work anymore

    Hi, Our automatic approval workflows configured via standard business configuration sets (process controlled) do not work anymore. They did work previously. After changing the BUS objects 'automatic approval' workflow into the 1-step manager approval

  • Need help for code

    Hi friends, I need help to get the java code to be used in netbeans 5.0 I have to develop: 1. Merge files using JFileChooser in netbeans 5.0 2.Create files in the format .html, .doc, .pdf, etc 3. Browse the file and attach to the MS Outlook Can anybo

  • Installer failed to initialize in win 8.1

    I am trying to install my Dreamweaver CS5, and I get the "Installer failed to initialize" error message. I followed the link for analysis of the installer, but could not open the .mlf file.  I contacted Adobe support and they gave me a link to downlo

  • Grey Out Profit Center once WBS is Released

    Hi All, We have a requirement to grey out Profit Center if WBS element is in Released Status. We do not want to allow users to change the profit center once the WBS element is released, Please let me know how this can be achieved. Thanks Satish