Need explanation

hi,i have 3 jsp pages a login.jsp, authenticate.jsp and portal.jsp.
authenticate checks the users name and password and if correct forwards to the portal page with details.
so if i am in the portal page, and i hit the back button, and return to the login page, the username field contains the username i entered at the login initally and the password field is blank, if i then hit the login button it forwards to the portal page and contains the data i was just viewing, i.e i dont get my login errors, why is this??its really bugging me
authenticate.jsp<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" %>
<jsp:useBean id="checkUser" class="com.jsp.beans.AuthenticateBean" scope="session">
<jsp:setProperty name="checkUser" property="usrName" value="${param.userName}" />
<jsp:setProperty name="checkUser" property="pssWrd" value="${param.psswrd}" />
</jsp:useBean>
<% checkUser.checkUserCredentials(); %>
<c:set var="isValid" value="true" />
<% if(!checkUser.isUserMember()) { %>
<c:set var="loginError" scope="request"
    value="Invalid Login, Please Re-enter Your User Name And Password" />
<jsp:forward page="login.jsp" />
<% } else%>
<% checkUser.getPageContentForUser(); %>
<c:set var="fname" scope="request"
  value="<%= checkUser.getFirstName() %>" />
<c:set var="lname" scope="request"
  value="<%= checkUser.getLastName() %>" />
<c:set var="address" scope="request"
  value="<%= checkUser.getAddress() %>" />
<c:set var="points" scope="request"
  value="<%= checkUser.getMemPoints() %>" />
<c:redirect url="portal.jsp" />--------------------------------------------------------------------------------------
portal.jsp --><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
  <body bg="clouds2.jpg">
<c:out value="${fn:escapeXml(fname)}" />
<c:out value="${fn:escapeXml(lname)}" />
<c:out value="${fn:escapeXml(address)}" />
<c:out value="${fn:escapeXml(points)}" />
<jsp:useBean id="checkUser" class="com.jsp.beans.AuthenticateBean" scope="session" />
<% String[] userGifts = checkUser.getGifts(); %>
<%= userGifts[0] %>
<%= userGifts[1] %>
</body>
</html>

  <jsp:useBean ...>
    //Body
  </jsp:useBean>indicates that the Body portion should be executed only when the bean is first instantiated, not everytime the bean is retrieved . And if that bean has session scope, the Body part will be called only once in the session.
In authenticate.jsp, you're setting the user/passwd properties inside the jsp:useBean tag.
This means that those properties will be set only the first time the page is accessed, i.e the first time the checkUser bean is instantiated at session scope.
So you login once, and since it is the first time authenticate.jsp is accessed, the checkUser bean is created and the 2 props user/passwd are set from the request.
You hit the back button. The second time you're coming to authenticate.jsp, the passwd will not be set to the new value (empty), but will keep the value it had the first time, because the checkUser bean has already been instantiated (so the checkUser bean is simply retrieved from the session scope and the jsp:setProperty are not executed).
That first value being valid, the login is valid and you get to the portal page.
So set the props outside of the useBean, i.e :
<jsp:useBean ..../> // close the tag
<jsp:setProperty.../>
<jsp:setProperty.../>

Similar Messages

  • Need explanation about adobe products for developers

    I need explanation about what products I need to use for developing dynamic adobe PDF forms..
    Currently I use only LiveCycle Designer ,but I in previous posts I found that I need to use additional products as Acrobat or Extension to designer.
    My question is if I need to devlop dynamic PDF form what exactly products I need that will be cover all developing issues?

    Hi,
    Covering all developer/developing issues is very broad.
    LC Designer is part of the LiveCycle suite. Which components you need from the suite will depend on your environment, your workflow, and how you want to process the data.
    More information here: http://www.adobe.com/products/livecycle/
    If you wanted to create forms and use Reader to interact with the form, then the minimum specification would be:
    LC Designer
    Adobe Reader
    However there would be restrictions in the functionality (eg you could not save the form in Reader as it would not be Reader enabled).
    If you want to Reader enabled the form in Acrobat Standard v9 or Acrobat Pro v8, then you will need Acrobat as well. This will unlock some of the features.
    If you want users with Reader to have full access to all features (as if the form was opened in Acrobat) then you will also need LC Reader Extensions ES2. You would use this to Reader enable the form before you deploy it.
    See summary here:
    Other components in the LC suite provide other functionality such as digital signatures, rights management, etc. You should talk directly with the Adobe sales rep in your geographical location.
    Good luck,
    Niall
    Assure Dynamics

  • Need explanation on prerouting post routing and translation rouitng with examples

    Hi ,
    i need explanation on prerouting post routing and translation rouitng  with examples.can anybody help me out ?
    thanks in advance
    regards
    bala

    Hi,
    prereouting: call comes in, hits ICM, script is run, telling the routing client (PSTN) where to route the call to (so the call is routed before (pre-) connection, or rather, establishment).
    Postrouting: call comes in, is connected and then it hits ICM (so the call is routed after begin connected).
    Translation routing is an interesting hybrid: call comes in, is connected but the party the call is connected to, is being monitored by ICM (so it sends the call away but it keeps an eye on it). When it's necessary, call is transferred to a different destination.
    Examples:
    Prerouting: PSTN -> ICM (script) -> PSTN -> destination phone answers
    Postrouting: PSTN -> call is answered -> ICM -> transfer to destination phone, answered
    Translation routing: PSTN -> call is answered -> ICM transfers to IVR port, then transfers to final destination phone (agent).
    G.

  • Need explanation about Oracle documentation (DBMS_LOB.LOADCLOBFROMFILE)

    Hello World,
    I try to understand Oracle documentation about DBMS_LOB.LOADCLOBFROMFILE function.
    I am not shure the explanation is written in a very good english,
    but i can't understand a word !!!
    Is anybody could explain me in more simple sentences ??
    DBMS_LOB.LOADCLOBFROMFILE (
    dest_lob IN OUT NOCOPY BLOB,
    src_bfile IN BFILE,
    amount IN INTEGER,
    dest_offset IN OUT INTEGER,
    src_offset IN OUT INTEGER,
    src_csid IN NUMBER,
    lang_context IN OUT INTEGER,
    warning OUT INTEGER);
    Oracle documentation explanation :
    src_csid Character set id of the source (BFILE) file.
    lang_context (IN) Language context, such as shift status, for the current
    load. (OUT) The language context at the time when the
    current load stopped, and what the next load should be using if
    continuing loading from the same source. This information is
    returned to the user so that they can use it for the continuous
    load without losing or misinterpreting any source data. For the
    very first load or if do not care, simply use the default 0. The
    details of this language context is hidden from the user. One
    does not need to know what it is or what’s in it in order to
    make the call
    warning (OUT) Warning message. This indicates something abnormal
    happened during the loading. It may or may not be caused by the
    user’s mistake. The loading is completed as required, and it’s up to the
    user to check the warning message. Currently, the only possible
    warning is the inconvertible character. This happens when the
    character in the source cannot be properly converted to a character in
    destination, and the default replacement character (e.g., ’?’) is used in
    place. The message is defined as warn_inconvertable_char in
    DBMSLOB.

    I am not kidding. I posted the link but I did not check if it were the same source. Really I do not have time to realize it.
    I think you can get a fast answer in SQL & PL/SQL forum.
    Good Luck!
    Joel Pérez

  • Need explanation about DBMS_LOB.LOADCLOBFROMFILE

    Hello World,
    I try to understand Oracle documentation about DBMS_LOB.LOADCLOBFROMFILE function.
    I am not shure the explanation is written in a very good english,
    but i can't understand a word !!!
    Is anybody could explain me in more simple sentences ??
    DBMS_LOB.LOADCLOBFROMFILE (
    dest_lob IN OUT NOCOPY BLOB,
    src_bfile IN BFILE,
    amount IN INTEGER,
    dest_offset IN OUT INTEGER,
    src_offset IN OUT INTEGER,
    src_csid IN NUMBER,
    lang_context IN OUT INTEGER,
    warning OUT INTEGER);
    Oracle documentation explanation :
    src_csid Character set id of the source (BFILE) file.
    lang_context (IN) Language context, such as shift status, for the current
    load. (OUT) The language context at the time when the
    current load stopped, and what the next load should be using if
    continuing loading from the same source. This information is
    returned to the user so that they can use it for the continuous
    load without losing or misinterpreting any source data. For the
    very first load or if do not care, simply use the default 0. The
    details of this language context is hidden from the user. One
    does not need to know what it is or what’s in it in order to
    make the call
    warning (OUT) Warning message. This indicates something abnormal
    happened during the loading. It may or may not be caused by the
    user’s mistake. The loading is completed as required, and it’s up to the
    user to check the warning message. Currently, the only possible
    warning is the inconvertible character. This happens when the
    character in the source cannot be properly converted to a character in
    destination, and the default replacement character (e.g., ’?’) is used in
    place. The message is defined as warn_inconvertable_char in
    DBMSLOB.

    I am not kidding. I posted the link but I did not check if it were the same source. Really I do not have time to realize it.
    I think you can get a fast answer in SQL & PL/SQL forum.
    Good Luck!
    Joel Pérez

  • Crystal 2008 - New Page Setup options - need explanation please

    I have been unable to locate documentation on the new Page Setup screen for Crystal 2008.  I am specifically looking on detailed documentation about the following check boxes:
    Printer Options:
         No Printer
    Page Options section:
         Dissociate Formatting Page Size and Printer Paper Size
    Margins section:
         Adjust Automatically.
    Can someone please detail for me these options.  I'd like to know why I would use them and how do they work when combinations of them are selected.  I am most interested in the second option (above), but would like explanations about all of them.
    Thank you.

    I do not think the No Printer option is valid for us as our reports are not web based.
    Does the Adjust Automatically apply to the reports as they are run from a runtime client?  or does this just adjust for design mode?
    This is why I am asking about the 'Dissociate Formatting Page Size and Printer Paper Size'.  It sounds like this is the setting we may want to check when creating our reports before we distribute to runtime clients.
    Here is why I want to know.
    We develop our reports to fit 8.5 inch x 11 inch paper.  We distribute our reports to our clients along with the runtime merge modules.  We have a VB.Net 2005 program that our non-vb.net software application executes in order to print the reports (using the Crystal for .NET methods, etc.) from our software application.
    Some of our clients are in Europe.  They use A4 paper.  We have re-designed some of our reports so the fields will fit within both paper sizes (8.5x11 and A4).  However, we have over 500 reports we distribute, so we have not modified all reports.  Therefore, prior to Crystal XI, we recommended to our runtime users that if the data on the report did not fit on the A4 paper (it was truncated), then they need to go into the printer properties (from the printer dialog box...these are users running the report, not developers) and change the report from portrait to landscape before they print.  This would print the report landscape with data across 8.5", and then white space on the right/remainder of the page, but all the data would print, nothing truncated.  After we installed Crystal XI, using this option of selecting landscape at print time, no longer worked.  The report would print with the orientation in which it was created (in our case portrait) regardless of what the user selected from printer properties. 
    This is why I am asking about the 'Dissociate Formatting Page Size and Printer Paper Size'.  Can someone at SAP elaborate on this please?

  • Need explanation of the following code

    HI All,
    I need your help on explanation of the following code :
    what I don't understand is how it route the request (all the benefit of the replace statement )
    If the input is /scarr/LH/SPFLI/402
    how he know to route it and
    what is the benefit for using the wild card and the concatenate CONCATENATE '^' lv_verif_pattern '$'
    Edited by: James Herb on Apr 13, 2010 9:53 AM
    Edited by: James Herb on Apr 13, 2010 9:53 AM

    DATA: lt_routing_tab TYPE z_resource_routing_tab,
      CONSTANTS: param_wildcard TYPE string VALUE '([^/])*'.
      FIELD-SYMBOLS: <ls_routing> LIKE LINE OF lt_routing_tab.
      CALL METHOD get_routing
        RECEIVING
          rt_routing_tab = lt_routing_tab.
      LOOP AT lt_routing_tab ASSIGNING <ls_routing>.
    *   replace all parameters placeholders by regex
        lv_verif_pattern = <ls_routing>-url_info.
        lv_signature = <ls_routing>-url_info.
        REPLACE ALL OCCURRENCES OF REGEX '\{([A-Z]*[_]*[a-z]*[0-9]*)*\}'
        IN lv_verif_pattern WITH param_wildcard.
        CONCATENATE '^' lv_verif_pattern '$'  INTO lv_verif_pattern.
    *   check if pattern matches current entry
        FIND ALL OCCURRENCES OF REGEX lv_verif_pattern
        IN url_info MATCH COUNT lv_count.
    *   pattern matched
        IF lv_count > 0.
    *     get controller class name
          lv_controller_name = <ls_routing>-handler_class.
          ls_class-clsname = lv_controller_name.
    *     check if class exists
    *     class found
          IF sy-subrc = 0.
    *       create controller
            CREATE OBJECT eo_controller TYPE (lv_controller_name).
    *       create parameter table
            SHIFT lv_verif_pattern RIGHT DELETING TRAILING '$'.
            SHIFT lv_verif_pattern LEFT DELETING LEADING ' ^'.
            SPLIT lv_verif_pattern AT param_wildcard INTO TABLE lt_url_parts.
            lv_url_info = url_info.
            LOOP AT lt_url_parts INTO lv_url_part.
              SHIFT lv_signature LEFT DELETING LEADING lv_url_part.
              SHIFT lv_signature LEFT DELETING LEADING '{'.
              SHIFT lv_url_info LEFT DELETING LEADING lv_url_part.
    Edited by: James Herb on Apr 13, 2010 9:56 AM

  • Please i need explanation...

    I have this record...
    DOB     ID     NAME     ADDRESS
    12/16/2008 5:34:00 PM     2     name2     Address_2
    02/26/2008 2:25:00 AM     3     name3     Address_3
    12/18/2008 9:49:04 AM     4     name4     Address_4
    12/18/2008 9:49:04 AM     5     name5     Address_5
    02/25/2008 9:27:00 PM          name1     jdsfkljd
    The result should not display a record which has an ID = 3. Therefore the result should display 4 records.
    When I have this query SELECT * FROM TEMP WHERE ID !='3' . Why is it null ID record is not displaying? By right it should display.
    DOB     ID     NAME     ADDRESS
    12/16/2008 5:34:00 PM     2     name2     Address_2
    12/18/2008 9:49:04 AM     4     name4     Address_4
    12/18/2008 9:49:04 AM     5     name5     Address_5
    But when i have this query SELECT * FROM TEMP WHERE ID != '3' OR ID IS NULL, record which has null ID displays. what is the explanation behind since ID IS NULL supposed not needed.
    DOB     ID     NAME     ADDRESS
    12/16/2008 5:34:00 PM     2     name2     Address_2
    02/25/2008 9:27:00 PM          name1     jdsfkljd
    12/18/2008 9:49:04 AM     4     name4     Address_4
    12/18/2008 9:49:04 AM     5     name5     Address_5
    Thanks....
    Edited by: user10702626 on Jan 2, 2009 12:22 AM

    in temp table, i put a space in ID which is blank. Look the record which is bold.
    DOB     ID     NAME     ADDRESS
    12/16/2008 5:34:00 PM     2     name2     Address_2
    02/26/2008 2:25:00 AM     3     name3     Address_3
    12/18/2008 9:49:04 AM     4     name4     Address_4
    12/18/2008 9:49:04 AM     5     name5     Address_5
    *02/25/2008 9:27:00 PM          name1     jdsfkljd*
    After the query runs, it now displays a records which has ID empty.
    DOB     ID     NAME     ADDRESS
    12/16/2008 5:34:00 PM     2     name2     Address_2
    02/25/2008 9:27:00 PM          name1     jdsfkljd
    12/18/2008 9:49:04 AM     4     name4     Address_4
    12/18/2008 9:49:04 AM     5     name5     Address_5
    So the query will be correct when ID is a space rather null?
    Thanks.

  • Nvidia ethernet config options, need explanation please!

    I've been having lots of disconnects/crashes in online games I play. At first I thought it was my video card or some bios/windows setting, but I recently found (from reading game forum posts of people with the same problem/motherboard) that the onboard ethernet was causing all the disconnects. The other people on the game forum all bought a NIC card to use instead of the onboard LAN and said it completely fixed the problems.
    I'm wondering if the problem could be from bad ethernet config options in the "NVIDIA Web-based interface" which you can get to after installing the firewall software. I have no clue what any of these options do, and was wondering if something in this could be an alternative to buying a NIC card. Does anyone have any experience with these or could offer a quick explanation?

    I do not think the No Printer option is valid for us as our reports are not web based.
    Does the Adjust Automatically apply to the reports as they are run from a runtime client?  or does this just adjust for design mode?
    This is why I am asking about the 'Dissociate Formatting Page Size and Printer Paper Size'.  It sounds like this is the setting we may want to check when creating our reports before we distribute to runtime clients.
    Here is why I want to know.
    We develop our reports to fit 8.5 inch x 11 inch paper.  We distribute our reports to our clients along with the runtime merge modules.  We have a VB.Net 2005 program that our non-vb.net software application executes in order to print the reports (using the Crystal for .NET methods, etc.) from our software application.
    Some of our clients are in Europe.  They use A4 paper.  We have re-designed some of our reports so the fields will fit within both paper sizes (8.5x11 and A4).  However, we have over 500 reports we distribute, so we have not modified all reports.  Therefore, prior to Crystal XI, we recommended to our runtime users that if the data on the report did not fit on the A4 paper (it was truncated), then they need to go into the printer properties (from the printer dialog box...these are users running the report, not developers) and change the report from portrait to landscape before they print.  This would print the report landscape with data across 8.5", and then white space on the right/remainder of the page, but all the data would print, nothing truncated.  After we installed Crystal XI, using this option of selecting landscape at print time, no longer worked.  The report would print with the orientation in which it was created (in our case portrait) regardless of what the user selected from printer properties. 
    This is why I am asking about the 'Dissociate Formatting Page Size and Printer Paper Size'.  Can someone at SAP elaborate on this please?

  • Need explanation on output(Threads).

    Hi,
    I am new to Threads and need an explanation on the
    Output got from the program below.
    I executed this program below :
    /*================================================
    MultiThreadDemo.sqlj
    ===============================================*/
    import java.sql.SQLException;
    import java.util.Random;
    import sqlj.runtime.ExecutionContext;
    import oracle.sqlj.runtime.Oracle;
    class MultiThreadDemo extends Thread
    double raise;
    static Random randomizer = new Random();
    public static void main(String []args)
    try
    Oracle.connect(MultiThreadDemo.class,"connect.properties");
    double avgStart = calcAvgSal();
    MultiThreadDemo t1 = new MultiThreadDemo(250.50);
    MultiThreadDemo t2 = new MultiThreadDemo(150.50);
    t1.start();
    t2.start();
    t1.join();
    if(t1.isAlive())
         System.out.println(" Thread t1 is Still Alive");
         t2.join();
    if(t2.isAlive())
         System.out.println(" Thread t2 is Still Alive");
    double avgEnd = calcAvgSal();
    System.out.println("Avg Sal Change : "+(avgEnd-avgStart));
    catch(Exception e)
    System.out.println("Error running the example : "+ e);
    static double calcAvgSal() throws SQLException
    double avg;
    #sql { SELECT AVG(sal) into :avg from emp};
    return avg;
    MultiThreadDemo(double raise)
    this.raise = raise;
    public void run()
    System.out.println(" Executing run() ");
         try
    System.out.println(" Executing try block in run() ");
         //delay();
         ExecutionContext execCtx = new ExecutionContext();
    #sql [execCtx] { UPDATE emp set sal = sal + :raise };
    int updateCount = execCtx.getUpdateCount();
    System.out.println("Give raise of "+ raise+"to "+updateCount+" employees");
    catch(SQLException e)
    System.err.println("error updating employees : "+ e);
    private void delay()
    System.out.println(" Executing delay() ");
    try
    sleep((long)Math.abs(randomizer.nextInt()/10000000));
    catch(InterruptedException e)
    ==========================================================
    ===========
    Output
    ============
    $ java MultiThreadDemo
    Executing run()
    Executing try block in run()
    Executing run()
    Executing try block in run()
    Give raise of 250.5 to 7 employees
    Give raise of 150.5 to 7 employees
    Avg Sal Change : 402.0
    =============================
    Shouldn't the Output be ??:
    =============================
    executing run()
    executing try block in run()
    Give raise of 250.5 to 7 employees
    executing run()
    executing try block in run()
    Give raise of 150.5 to 7 employees
    Avg Sal Change : 402.0
    ================================================
    Can anyone explain the Output clearly, as I am
    new to Using Threads.
    Thanks
    Sharath

    Reply to my own post:
    I think the solution lies in using the "synchronized" keyword for the run() method in order to make it a mutex
    and get the o/p as desired.

  • Need Explanation on JDBC drivers

    Hi,
    I have write classes for database connection & resultset. I plan to make it as library jar so i can use it for future developments.
    I develop this on netbeans and have set the classpath for Mysql driver & Ms SQL driver. After i have created the jar file do i need these drivers anymore when i used the jar with other applications.
    Is there anyway to incorporate these mysql driver jar & mssql driver jar with my library jar as 1 jar file so that i won't need set classpath for these drivers for other applications.

    Yes, you need the class files contained in the driver jar when your code is executed.
    Most people simply keep the driver jar seperate and add it to the classpath of the application; however you can unpackage the driver jar and repackage it however you want (as long as you don't violate the terms of the license or present their work as yours, etc. etc.) In business environments, repackaging really is emphatically not recommended unless there's no other way; it makes it a lot harder to upgrade to a newer driver, for example, and it's too easy to get into legal trouble by forgetting that someone else's code is mixed with yours, particularly with staff turnover...

  • Need explanation about DefaultFramework Layout

    hai friends,
    i downloaded the PAR file of the default frame work layout provided by SAP in EP7.the coding is given below
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <%@ page import="com.sapportals.portal.pb.layout.taglib.variabledef.RunMode" %>
    <%
      RunMode pageRunMode = null;
    %>
    <lyt:template>
    <%
    pageRunMode = epPageVariables.getRunMode();
    if(pageRunMode == RunMode.RUN_TIME){
    %>
        <script>
            document.body.style.margin=0;
            document.body.scroll = "no";
        </script>
    <%}%>
        <hbj:content id="myContext" >
            <hbj:page title="Portal Page">
                <lyt:container id="frameworkColumn" />
            </hbj:page>
        </hbj:content>
    </lyt:template>
    <%
    if(pageRunMode == RunMode.RUN_TIME){
    %>
        <script>
            // Set the Top Level Navigation iView size and position.
            EPCM.raiseEvent("urn:com.sapportals:toplevelnavigation", "Onload", null);
        </script>
    <%}%>
    in this i understood everything except the EPCM part.they have given the purpose as to set the Top Level Navigation iView size and position.but i want to know how it sets,where is the subscribe event for that.
    if anybody knows please help me....
    if u have more details about it please send that also...
    regards,
    Tamil K

    hai Mr.Venkat,
    Tahnks for your reply.
    yes i downloaded the "com.sap.portal..layouts.framework.par.bak" only.but i am not using all the jsps available in that.
    i am using only "framework.jsp".that also i changed according to my need.i changed only the layout part not the whole thing.And also i dont find any "subscribeevent" relevant to the "raiseevent" presents in tha jsp file.
    as u said i searched with the WAandNAVpanel.jsp also but i couldnt find. the subscribe events present in the specified file is not relevant to my raise event i think so.....
    regards,
    Tamil K

  • Need explanation of Series expression and client expression

    Can someone explain me the importance of series expression when client expression is written.
    For example: In a series (series name : Revenue)
    I have written both the client and server expression to calculate the Revenue.
    As per documents client expression takes the precedence, so what is the need of having the server expression?
    Thanks,
    Padma

    Hi Padma,
    If a series has both Client expression and Server expression, Client Expression always takes precedence when we are viewing the series in the demantra worksheet. But in this case Server expression will be evaluated (not the client expression) when we try to export this series out of demantra like for example, ASCP and APCC using integration interfaces (export profiles). So the view or Mview will always hold the result of server expression and the same will be published.
    And in most cases the Client and Server expression match in terms of definition.
    Regards,
    Sudeep Bemidigi.

  • Need explanation for apparent heap size reduction

    Hello,
    From the GC logs, it appears that the heap size is being reduced across young and old generations after sometime. Is there any explanation to this?
    Below are three entries from the logs.
    {Heap before gc invocations=5:
    PSYoungGen      total 44800K, used 44180K [0x18220000, 0x1b420000, 0x24a20000)
      eden space 38400K, 100% used [0x18220000,0x1a7a0000,0x1a7a0000)
      from space 6400K, 90% used [0x1ade0000,0x1b3853c8,0x1b420000)
      to   space 6400K, 0% used [0x1a7a0000,0x1a7a0000,0x1ade0000)
    PSOldGen        total 51200K, used 16K [0x0ba20000, 0x0ec20000, 0x18220000)
      object space 51200K, 0% used [0x0ba20000,0x0ba24128,0x0ec20000)
    PSPermGen       total 32768K, used 12417K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 37% used [0x03a20000,0x046406c0,0x05a20000)
    1047.599: [GC [PSYoungGen: 44180K->5990K(44032K)] 44197K->6006K(95232K), 0.0046671 secs]
    Heap after gc invocations=5:
    PSYoungGen      total 44032K, used 5990K [0x18220000, 0x1b5a0000, 0x24a20000)
      eden space 37632K, 0% used [0x18220000,0x18220000,0x1a6e0000)
      from space 6400K, 93% used [0x1a7a0000,0x1ad79990,0x1ade0000)
      to   space 7552K, 0% used [0x1ae40000,0x1ae40000,0x1b5a0000)
    PSOldGen        total 51200K, used 16K [0x0ba20000, 0x0ec20000, 0x18220000)
      object space 51200K, 0% used [0x0ba20000,0x0ba24128,0x0ec20000)
    PSPermGen       total 32768K, used 12417K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 37% used [0x03a20000,0x046406c0,0x05a20000)
    {Heap before gc invocations=174:
    PSYoungGen      total 9728K, used 9666K [0x18220000, 0x18d30000, 0x24a20000)
      eden space 8640K, 99% used [0x18220000,0x18a8fa58,0x18a90000)
      from space 1088K, 94% used [0x18a90000,0x18b910f0,0x18ba0000)
      to   space 1344K, 0% used [0x18be0000,0x18be0000,0x18d30000)
    PSOldGen        total 51200K, used 21113K [0x0ba20000, 0x0ec20000, 0x18220000)
      object space 51200K, 41% used [0x0ba20000,0x0cebe540,0x0ec20000)
    PSPermGen       total 32768K, used 12611K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 38% used [0x03a20000,0x04670fa0,0x05a20000)
    26968.748: [GC [PSYoungGen: 9666K->1271K(9920K)] 30780K->22465K(61120K), 0.0025274 secs]
    Heap after gc invocations=174:
    PSYoungGen      total 9920K, used 1271K [0x18220000, 0x18d50000, 0x24a20000)
      eden space 8576K, 0% used [0x18220000,0x18220000,0x18a80000)
      from space 1344K, 94% used [0x18be0000,0x18d1dd00,0x18d30000)
      to   space 1408K, 0% used [0x18a80000,0x18a80000,0x18be0000)
    PSOldGen        total 51200K, used 21194K [0x0ba20000, 0x0ec20000, 0x18220000)
      object space 51200K, 41% used [0x0ba20000,0x0ced29e0,0x0ec20000)
    PSPermGen       total 32768K, used 12611K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 38% used [0x03a20000,0x04670fa0,0x05a20000)
    {Heap before gc invocations=23195:
    PSYoungGen      total 1536K, used 1372K [0x18220000, 0x18440000, 0x24a20000)
      eden space 896K, 100% used [0x18220000,0x18300000,0x18300000)
      from space 640K, 74% used [0x183a0000,0x184173e8,0x18440000)
      to   space 640K, 0% used [0x18300000,0x18300000,0x183a0000)
    PSOldGen        total 6272K, used 4627K [0x0ba20000, 0x0c040000, 0x18220000)
      object space 6272K, 73% used [0x0ba20000,0x0bea4d70,0x0c040000)
    PSPermGen       total 32768K, used 12930K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 39% used [0x03a20000,0x046c0aa0,0x05a20000)
    71908.146: [GC [PSYoungGen: 1372K->533K(1536K)] 6000K->5423K(7808K), 0.0107964 secs]
    Heap after gc invocations=23195:
    PSYoungGen      total 1536K, used 533K [0x18220000, 0x18460000, 0x24a20000)
      eden space 896K, 0% used [0x18220000,0x18220000,0x18300000)
      from space 640K, 83% used [0x18300000,0x18385438,0x183a0000)
      to   space 704K, 0% used [0x183b0000,0x183b0000,0x18460000)
    PSOldGen        total 6272K, used 4890K [0x0ba20000, 0x0c040000, 0x18220000)
      object space 6272K, 77% used [0x0ba20000,0x0bee6868,0x0c040000)
    PSPermGen       total 32768K, used 12930K [0x03a20000, 0x05a20000, 0x0ba20000)
      object space 32768K, 39% used [0x03a20000,0x046c0aa0,0x05a20000)
    The (relevant) JVM parameters used are as follows :
    -server
    -Xms600m
    -Xss256k
    -XX:+UseParallelGC
    -XX:+PrintHeapAtGC
    -XX:+HeapDumpOnOutOfMemoryError
    -Xloggc:verbose_gc.log
    -Djavax.net.debug=none
    -XX:+PrintGCDetails
    -XX:+PrintTenuringDistribution
    -XX:+PrintClassHistogram
    -Xmx800m
    -XX:NewRatio=1
    -XX:CompileThreshold=1500
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    Any help would be welcome.
    -R

    From what has been looked into further - it appears to be an issue with the threads.
    The issue is reproducible if threads are simply created and allowed to run for some time and then complete.
    The issue is reproducible on JDK 1.5.14 but not with JDK 1.6.37.
    The use of thread pools likely masked the issue leading to the above mentioned gc sample.
    Update #1:
    A plausible solution for 1.5 as determined is to include '-XX:NewSize' in the parameters (the eden does not reduce below that) however it is not known if this will resolve the issue (memory reclaimed but not accounted for) or if there will be out of memory issues (memory not reclaimed)
    Additional links:
    https://bugs.openjdk.java.net/browse/JDK-7118202 (Relates to JDK-7 : for possible explanations so as to what can cause it)
    https://www.java.net//node/662483

  • Need explanation/help with NoPermissionException

    I recently configured WebLogic 9.2 to run an existing application on my PC. The application consists of a servlet and an EJB all running inside the same WebLogic environment (this is a test enviroment; operationally they would run in separate JVMs.).
    I can run a stand-alone "toy" application that can connect and talk to the EJB and get data. I can verify that my web browser can connect to the servlet. However, when the servlet attempts to call the EJB to get data to return to the browser, I get the following exception:
    javax.naming.NoPermissionException: User XXX does not have permission on ejb to perform lookup operation.
    This particular configuration worked before on WebLogic 8.1.4 on a Unix server.
    What does this mean and what do I need to do to get this to work? As you may deduce, I am new to a lot of this so any suggestions or insights you may have would be appreciated.

    Did you get any resolution to this one? I am also getting this error and have tried a lot but could not get it working as yet. Does anyone have any clue on why this could be happening?

  • Need explanation on isUsageThresholdSupported() in jconsole

    Hi,
    I was looking at the jconsole memory monitoring and managing tool and found that isUsageThresholdSupported() for the edenspace is true, but what I understand from
    http://java.sun.com/javase/6/docs/technotes/guides/management/mxbeans.html
    is that it should be false. Can you please let me know if what I understand is correct.
    Also I would like to know how to conncet to a remote JVM through jconsole, the problem is that I do not know what the port number is on the remote jvm. Is there a way I can get to know what the port number is?
    Thanks,
    Samanth.

    You need to configure your application for remote connection; otherwise you will get connection failure.
    http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html describes how to set the port for remote connection.
    The complete Java SE Monitoring and Management User Guide is at:
    http://java.sun.com/javase/6/docs/technotes/guides/management/
    Mandy

Maybe you are looking for

  • Document name

    Hi Can anyone tell me where is the name of the document sent over XI stored?

  • Date and time in spool file name

    Hi, can anyone show me how i can write the code below so that the spool file will automatically take the system time and date? thanks again. set term off; set echo off; set heading off; set linesize 1500; set pagesize 9999; set feedback off; spool /h

  • How could execute acrobat plug-in in command line?

    I am using acrobat plug-in to develop my own application. But I don't want to launch acrobat plug-in feature through acrobat menu item. Is it possible to launch acrobat plug-in(.api) with command line or outside acrobat?

  • Convert Milliseconds into specified format

    HI, How to convert System.currentMillis() into yyyy-mm-dd HH:MM:SS:SSS format? PLease give me a solution Thanks

  • What is the maximun number of static NAT in ASA

    Hello everybody, someone know how many sessions of static nat can configure in cisco ASA ??? thank you for you response...