Session Dataprovider problem

Hello:
I have a ObjectLIstDataProvider (i.e. oldp) stored in session in order to support sorting functions. It works fine.
However, when a user leavs the page where a table uses this oldp and browses some other pages, then comes back to this page, the data will still be shown for this user since oldp is stored in session (i.e. SessionBean1.java).
Here is my question: Is there any way knowing a user is browsing away from the page with oldp so i could clean the oldp in session? Where should i put this code for cleaning?
I did not find a way to distinguish when a page is rendering due to button action/sorting action/Dropdown list change (in those case, you should keep the oldp in session), and when a user is coming to this page from another page (In this case you DO need to clean oldp in sesion)?
I guess i could record last rendered page in session in order to distinguish where a user is from (same page or another page). However, I would like a more descent way to do it.
Please help.
thanks

Hi Anand,
I have launched two of the same application from the content area of the portal screen. Each one opens up in a separate internet explorer window. They share the same data since i am writing the data to the session. I do not want them to share the same data. How can this be achieved? Taking into mind that i have another portal application jsp dyn page embedded within this component that uses the shared data.
Regards
Jana

Similar Messages

  • Session Expired Problem on OAS

    Hi,
    I often got the error message "Session Expired" displayed on my HTML page that serves Java Servlet output after some time.
    I attempted to look through my Servlet source codes but it has no problem. In fact, it runs perfectly well on JavaWebServer2.0.
    This seems to be a OAS problem. I'm using Oracle Application Server 4.0.8.1. I attempted changing the Servlet Cartridge's "Max session idle time" and observe the behaviour. It appears that when "Session Expired" problem happened, my servlet class never get called. OAS simply display a "Session Expired" message on the web page.
    How can I avoid this? How can ask OAS to call my servlet's doGet() to create a new session when it expired?
    Anyone knows how?
    null

    Hi,
    OAS has a limitation of 300 seconds. This value cannot be changed. See the release notes.
    One possible way to get around this is to use the Oracle Supplied Session class and use the time feature in that.
    This a big limitation and I am not sure why Oracle designed the product this way.
    null

  • Session management problems with SSO

    Hi all-
    I've been getting an Apex app tied to SSO as a partner app (per http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html). So far, it sort of works. If I go to my apex app, it redirects me to SSO, where I authenticate and end up back in the apex app. Great. Here are two problems I've run into:
    1. If I am already authenticated to SSO, and I go to my apex app (url like: http://host/pls/apex/f?p=101:1), my browser goes into an infinite redirect (url like: http://host/pls/apex/f?p=101:1:::::FSP_AFTER_LOGIN_URL:\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|||||FSP_AFTER_LOGIN_URL|\f?p=101|1|||||FSP_AFTER_LOGIN_URL|\f? p=101|1|\\\\\\\\\\\\\\\\\\\). To resolve, I have to clear cookies.
    2. If I am using my apex app, then log out of SSO (in another browser window), I can still click around in my apex app (i.e., apex thinks I'm still authenticated).
    Anyone have any thoughts? I'm wondering if I need to do something in page session management (under authentication schemes) to fix #2, but I have no clue about #1.
    Thanks
    Rob

    Hi Scott-
    Thanks for the info on #2 - I'll work on that after I get #1 sorted out, since it's the more dire problem. Here's some more info:
    Apex version = 3.0.1.00.08
    SSO SDK = ssosdk902.zip
    I set it up as "My Application as Partner App." I used "MY_PARTNER_NAME" as SSO Partner Application Name. In the list of SSO Partner Apps on the SSO Admin page, my partner app name is also MY_PARTNER_NAME. It gives the following info:
    Login URL:      https://sso_host/pls/orasso/orasso.wwsso_app_admin.ls_login
    Single Sign-Off URL:      https://sso_host/pls/orasso/orasso.wwsso_app_admin.ls_logout
    Home URL: http://apex_host/pls/apex
    Success URL: http://apex_host/pls/apex/RBLICK.YOUR_PACKAGE.PROCESS_SUCCESS
    Logout URL: http://apex_host/pls/apex
    RBLICK is the schema owning the apex app. In there, I created a package called YOUR_PACKAGE:
    create package YOUR_PACKAGE as
    procedure process_success(urlc in varchar2);
    end YOUR_PACKAGE;
    CREATE PACKAGE BODY YOUR_PACKAGE AS
    procedure process_success(urlc in varchar2) as
    begin
    wwv_flow_custom_auth_sso.process_success(
    urlc=>urlc,
    p_partner_app_name=>'MY_PARTNER_NAME');
    end process_success;
    END YOUR_PACKAGE;
    Anything look obviously wrong to you?
    Thanks!
    Rob

  • Session timeout problem with CCA

    I have developed a Client applicaiton in ASP.Net 2005 using the SOAP Api provided in Oracle CCA 8.1.3
    The System details are as under:
    Product – Oracle CCA 8.1.3
    Server on Windows 2003 Server – Standard Edition
    Web Server – BEA Weblogic 10g3
    Database – Oracle 10g
    Java Version – 1.5 Update 10
    I am facing a problem where the users session changes every 5 Minutes 30 Seconds. I get the "Session Change" message and at this point I cannot see the Agent on the CCA Agent Monitoring screen. What I need to do now is to Reopen the session. Upon Repoening the Session I would get the same SessionId from the WebServer that I had get earlier.
    Please help.

    Hi All,
    could u please help me out how to make the SIP CAlls in the CCA
    I am able to chat between supervisor and agent.
    when it comes to th eoutbound cal
    i am using X-lite software for making the outbound Cal.
    when i make a cal the status will be changed to rining mode and comes back to on-hook after few min.
    when i see the logs the legs are inviting and getting disconnected
    RVSIP_CALL_LEG_STATE_INVITING [44173472]
    26/04/2011 15:08:15.931 : 4 : 8028 : 4552 : CallCenter : 27 : # 9: CCallCenter::SendOutMessage() Sending message [##;4;2;99880103;106,9,27,2582,:10.103.91.13,hschbscgn25001,,;] to [type=20, id=0, grp=102]
    26/04/2011 15:08:15.931 : 4 : 8028 : 4552 : CallCenter : 27 : ******** : Sent : new message (99880103) to CtiServer Id[0] group[102] version[0]
    26/04/2011 15:08:15.931 : 4 : 8028 : 4552 : CallCenter : 27 : # 9: Added Timer[68] for line[9] about[4100] on[1303810945,931]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : CCallCenter::SendOutMessage(CMessage) Sending message [99880100] to [type=20, id=0, grp=0]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : ******** : Sent : new message (99880100) to CtiServer Id[0] group[0] version[1]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : CCallCenter::SendOutMessage(CMessage) Sending message [99880100] to [type=103, id=0, grp=0]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : ******** : Sent : new message (99880100) to RedirectServer Id[0] group[0] version[1]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : Sending GET_CHANNELS_INFO_UPDATE to all NetworkManager
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : CCallCenter::SendOutMessage(CMessage) Sending message [1018] to [type=12, id=0, grp=0]
    26/04/2011 15:08:17.009 : 4 : 8028 : 4552 : CallCenter : 27 : ******** : Sent : new message (1018) to NetworkManager Id[0] group[0] version[1]
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : AppCallLegStateChangedEvHandler [[email protected]]
    26/04/2011 15:08:19.431 : 0 : 13712 : 4552 : CallCenter : 27 : RVSIP_CALL_LEG_STATE_MSG_SEND_FAILURE [44173472]
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : Adding SDP info to Message
    26/04/2011 15:08:19.431 : 0 : 13712 : 4552 : CallCenter : 27 : Failed to DNS continue on a call
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : AppCallLegStateChangedEvHandler [[email protected]]
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : RVSIP_CALL_LEG_STATE_DISCONNECTED [44173472] reason[15]
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : CH[9]: Sending EVENT_DISCONNECT_CALL
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : addAlarm() 44173472
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : AppCallLegStateChangedEvHandler [[email protected]]
    26/04/2011 15:08:19.431 : 4 : 13712 : 4552 : CallCenter : 27 : RVSIP_CALL_LEG_STATE_TERMINATED [44173472] reason[19]
    26/04/2011 15:08:19.431 : 4 : 8028 : 4552 : CallCenter : 27 : GOT sip_event on channel [9] type [12002]
    26/04/2011 15:08:19.431 : 4 : 8028 : 4552 : CallCenter : 27 : # 9: GOT EVENT CALL WAS DISCONNECTED BY REMOTE
    26/04/2011 15:08:19.431 : 4 : 8028 : 4552 : CallCenter : 27 : # 9: New event received [0X3 - CALL_MAKECALL_EVENT - 0X4001]
    26/04/2011 15:08:19.431 : 4 : 8028 : 4552 : CallCenter : 27 : # 9: CCallCenter::SendOutMessage() Sending message [##;4;2;99880104;106,0,101,;] to [type=20, id=0,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Legend dataprovider problem

    Hello there,
    I would like to create a legend to a gantt chart in order to identify the colors in the chart.
    For that I created a xml to be used as a data provider.
    The XML is:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item id="1" label="livre a 100%" color="0x66CC00" />
         <item id="2" label="livre de 75% a 100%" color="0x009900" />
         <item id="3" label="livre de 50% a 75%" color="0xFFFF33" />
         <item id="4" label="livre de 25% a 50%" color="0xFF9900" />
         <item id="5" label="livre de 0% a 25%" color="0x3366FF" />
         <item id="6" label="não está livre" color="0x3300CC" />
    </items>
    And I already have the labels in the legend, but I'm having some problem's with the color... The legend shows every marker as black.
    <mx:Legend id="legAvailable" dataProvider="{legAvai}"
         toolTip="Available legend" backgroundColor="#CDCDCD"/>
    Can anyone help or give any idea of how to sort this out?!?! I'm in a bit of a tight schedule...
    Thanks in advance.

    I've been looking for some answers and haven't found anything yet...
    Does anyone has any idea of how to work this out?? Or why are all the markers colored as black...
    Thank you
    P.S. I'm leaving an image so you can visualize my problem...

  • Enterprise Session Bean Problem

    Dear Experts,
    I have just installed Netweaver Developer Studio 7.1 Composition Environment and is doing some development on it from the tutorial in the following link
    [http://help.sap.com/saphelp_nw04/helpdata/en/c3/679564e11d482f8a706b423f67e56c/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/c3/679564e11d482f8a706b423f67e56c/content.htm]
    I have created a new EJB Project using the Configuration SAP EJB J2EE 1.4 Project and created a new stateless session bean Calculator. 
    I finished creating the session bean with all the BUSINESS METHODS, but when I expand the project node Calculator in the J2EE Explorer, I CANNOT see the Calculator.java class.  All other classes such as CalculatorBean.java, CalculatorHome.java, etc are present. 
    This is where the problem comes, when I create the JavaBean in the Web Module I will need to access the Calculator.java class and now I cannot access it since it is missing.
    Can you please guide me on how to generate the Calculator.java class in the session bean.
    Points will be rewarded for correct answers.
    Thanks in advance
    Edited by: jamison2004 jordan2004 on May 7, 2008 11:16 AM
    Edited by: jamison2004 jordan2004 on May 7, 2008 11:25 AM

    Hi jamison jordan,
    Maybe you check the CE version of the documentation:
    [Creating Your First J2EE Application|http://help.sap.com/saphelp_nwce10/helpdata/en/c3/679564e11d482f8a706b423f67e56c/frameset.htm]
    kind regards
    Stefanie

  • GemXpresso JCard Manager session authentication problem

    Hello!
    First of all I am new in Java Card Technology and I am trying to explore the
    JCard Manager environment. I am using GemSafe Xpresso Cards.
    My problem is that I cant create a session between reader and card in one of my
    cards. The trace in this card's authenticate prosses is:
    Default key file URL: file:/C:/Documents%20and%20Settings/user/GemXpressoJCardManager/keyfiles/jc2.2.1%20-%20gp2.1.1/default.keys
    Select the Security Domain
    ->  00 A4 04 00 08 A0 00 00 00 18 43 4D 00
    <-  61 1B   [Normal ending of the command with <27> bytes of extra information.]
    key set 0 (Card Defined)
    Initialize Update
    ->  80 50 00 01 08 00 01 02 03 04 05 06 07 (00)
    <-  4D 00 40 82 B8 18 1E 2B 25 6D 0D 01 B5 44 51 2B 59 78 8B 8C BE EB 18 CF C9 AD D2 62, 90 00   [Normal ending of the command.]
    Card info KeySet=13
    (SCP 01,implementation i05)
    Command Exception on command: Authenticate. authentication failed: The card cryptogram is not verified.the other cards pass this procedure successfuly showing the message:
    Default key file URL: file:/C:/Documents%20and%20Settings/user/GemXpressoJCardManager/keyfiles/jc2.2.1%20-%20gp2.1.1/default.keys
    Select the Security Domain
    ->  00 A4 04 00 08 A0 00 00 00 18 43 4D 00
    <-  61 1B   [Normal ending of the command with <27> bytes of extra information.]
    key set 0 (Card Defined)
    Initialize Update
    ->  80 50 00 01 08 00 01 02 03 04 05 06 07 (00)
    <-  4D 00 40 82 D0 01 23 25 25 56 FF 01 C1 64 C0 1A 12 C1 E8 12 07 03 BC 8C 28 4A 9C 84, 90 00   [Normal ending of the command.]
    Card info KeySet=-1
    (SCP 01,implementation i05)
    External Authenticate
    ->  84 82 00 00 10 66 2B 64 5B A8 F6 35 CC DA 46 DD B9 1C CA 78 2E
    <-  90 00   [Normal ending of the command.]
    A Card was removed from the terminal: Gemplus USB Smart Card Reader 0 from the slot: 0I think that the card came this state because my partner to this project was
    issue a command by accident, and now he can't remember what he done.....
    I suppose I have to change the card's KeySet from 13 (D0) to -1 (FF) but I don't know how.
    Does anybody knows what i suposed to do and fix the problem??
    Thank you in advance for your help, Bill....

    Lets see... First of all thank you for the reply. Also I forgot to say that I use Global Platform 2.1.1 cards.
    I understand that the initial keyset has been changed and I can't turn
    back to keyset -1. Also my partner said that he don't remember to issued a specific command, but the only thing he remembers is that he send
    an (unknown for him) APDU to the card, from the SEND APDU panel, not very wise move.
    So he did not create a new key set, as I understand. I use the GET DATA command with Predefined Taq set to Key Information Data to retrieve the
    informations you told me but the answer was
    Get Data
    ->  80 CA 00 E0 (00)
    [ERROR  ] <-  6A 86
    [ERROR  ] <-  (ISO 7816-4) Wrong parameter(s) P1 P2 (Incorrect parameters P1 P2). So? what I can do now?
    Thank you again in advance.... Bill

  • JSP Session ID Problem

    I have a problem, where I am getting two separate Session Id's within the
              same browser instance. This is what I am doing:
              User sees login.jsp. A form that calls a servlet, when they do the submit.
              The first jsp and the servlet have the same Session ID. The servlet sets
              some attributes for that user, then calls
              response.sendRedirect(initial.jsp). The second jsp has a new Session ID, and
              so doesn't see any of the attributes that the servlet set.
              Am I doing something fundamentally wrong here, or is this a WLS problem? We
              are on WLS 6.0, no service packs installed.
              Thanks.
              Jeff Pfost
              [email protected]
              

    Cookies or URL encoding?                    Cookies.
              FYI. After that post, I download Service Pack 2 and applied it.
              That fixed the problem, and now a redirect doesn't generate a
              new session.
              Thanks.
              Jeff Pfost
              [email protected]
              "Cameron Purdy" <[email protected]> wrote in message
              news:[email protected]...
              > Cookies or URL encoding?
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > Clustering Weblogic? You're either using Coherence, or you should be!
              > Download a Tangosol Coherence eval today at http://www.tangosol.com/
              >
              >
              >
              > "Jeff Pfost" <[email protected]> wrote in message
              > news:[email protected]...
              > > I have a problem, where I am getting two separate Session Id's within
              the
              > > same browser instance. This is what I am doing:
              > >
              > > User sees login.jsp. A form that calls a servlet, when they do the
              submit.
              > > The first jsp and the servlet have the same Session ID. The servlet sets
              > > some attributes for that user, then calls
              > > response.sendRedirect(initial.jsp). The second jsp has a new Session ID,
              > and
              > > so doesn't see any of the attributes that the servlet set.
              > >
              > > Am I doing something fundamentally wrong here, or is this a WLS problem?
              > We
              > > are on WLS 6.0, no service packs installed.
              > >
              > > Thanks.
              > >
              > > Jeff Pfost
              > > [email protected]
              > >
              > >
              > >
              >
              >
              

  • Apache + 2 Tomcats session replication problem.

    Greetings everyone.
    Before stating the problem, let me explain how my environment is set.
    I have two machines. One (PC1) running Apache (HTTP server 2.0.58)
    and one instance of Tomcat (5.0.28) and another machine (PC2) with
    another instance of Tomcat(5.0.28).
    The Apache server
    It is configured to handle static content, to redirect dynamic content to a
    Tomcat instance through AJP 1.3 connector.
    This process is done through the mod_jk and the workers.properties
    The workers.properties file is configured to have sticky_session = True
    so it assigns a SESSION_ID to the same Tomcat it was first assigned.
    The workers.properties file is configured to have
    sticky_session_force = True so if the Tomcat the SESSION_ID was
    assigned is not available, the server answers with a 500 error.
    The Tomcat servers
    Both have only the AJP 1.3 connector enabled
    Both have the Cluster tag from the server.xml file uncommented
    and the useDirtyFlag flag set to false, for not to allow SESSION
    replication between Tomcats.
    The workers.properties file
    workers.apache_log=C:/Apache2/logs
    workers.tomcat_home=C:/Tomcat5
    workers.java_home=C:/j2sdk1.4.2_13
    ps=/
    #Defining workers -----------------------------
    worker.list=balancer,jkstatus
    #Defining balancer ---------------------------
    worker.balancer.type=lb
    worker.balancer.balance_workers=tel1, tel2
    worker.balancer.sticky_session=True
    worker.balancer.sticky_session_force=True
    worker.balancer.method=B
    worker.balancer.lock=O
    #Defining status -----------------------------
    worker.jkstatus.type=status
    worker.jkstatus.css=/jk_status/StatusCSS.css
    #Workers properties ---------------------------
    worker.tel1.type=ajp13
    worker.tel1.port=8009
    worker.tel1.host=127.0.0.1
    worker.tel1.lbfactor=1
    worker.tel1.socket_keepalive=False
    worker.tel1.socket_timeout=30
    worker.tel1.retries=20
    worker.tel1.connection_pool_timeout = 20
    #worker.tel1.redirect=tel2
    worker.tel1.disabled=False
    worker.tel2.type=ajp13
    worker.tel2.port=8009
    worker.tel2.host=199.147.52.181
    worker.tel2.lbfactor=1
    worker.tel2.socket_keepalive=False
    worker.tel2.socket_timeout=30
    worker.tel2.retries=20
    worker.tel2.connection_pool_timeout = 20
    #worker.tel2.redirect=tel1
    worker.tel2.disabled=False
    THE PROBLEM
    I open a browser in the jk-status page to see how the Tomcat instances are
    working, and both are working fine: Stat -> OK, now as the
    loadbalancing factor is 1 on both Tomcats, an even alternating session
    distribution is set.
    While this browser is open to keep an eye on the status, I open a new
    browser (B1)to connect to my Web Application, Apache answers
    correctly and gives me a SESSION_ID for Tomcat instance 1 [both
    instances are OK], if I make a simple refresh, my SESSION_ID is still the
    same so I'm assigned to Tomcat instance 1 but this time I get an
    ERROR 503 - Service unavailable but looking at the status of the
    Tomcat instances both instances are still OK, no-one is down. And it
    stays throwing this error for as many refreshes i do.
    Now, I open a new browser (B2)and do the same process as before,
    as expected, Apache now gives me a SESSION_ID for Tomcat instance 2,
    repeating the same refreshing process, the error is thrown again, but still at
    the jk-status page, both instances are fine.
    Without closing these windows, I make a new refresh try on B1 and
    even though the jk-status says both Tomcat instances are OK, the error
    is still thrown. I open a third one (B3), and Apache again, correctly
    gives me a new SESSION_ID for Tomcat instance 1 and answers
    correctly on the first call. But once again if i repeat the refreshing process, the
    error is thrown again.
    Note: Using a different resolution to always keep and eye on the
    instances status and using a refresh rate of 1 second for status, both
    servers always were OK.
    So the main problem is that somehow when the session is replicated
    to the same tomcat, Apache confuses and thinks it is not available, when
    asking it through the jk-status it tells it is OK
    I've been trying different configurations with both Apache and Tomcat,
    but there must be something missing since I don't get it to work correctly
    Thanks in advance for all your helping comments.
    - @alphazygma

    Whew... that was quite an answer... definitely is going to help him a lot. Yeah any n00b by now should know how to use google, but that's not the point in this forums, here we are to help each other. and wether you like it or not many of us deploy applications to tomcat and stumble on this. So dont try to be cool posting this kind of answers like google this or google that if you dont have an answer please dont comment you will appear to be more noobish than you aparently are.
    Well enough talking.
    I found the following useful: (it comes in the server.xml of the tomcat configuration)
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jvmRoute="jvm1">
    -->
    Enabling that entry on both machines should be enough.
    Aparently the problem is not with apache. is with tomcat since it can't retain the session apache gives.
    more information in the Tomcat help at:
    http://tomcat.apache.org/tomcat-5.0-doc/balancer-howto.html#Using%20Apache%202%20with%20mod_proxy%20and%20mod_rewrite

  • LineChart category axis labelFunction / dataProvider problem

    Hi,
    I am trying to plot a line chart using actionscript.
    What I am trying to achive is plot the chart with entire dataset, but show only limited number of points in x and y axis's.
    Problem:
         When I give dataProvider to category axis with some limited values, nothing gets plotted .
    Explaination:
         In the attached main.mxml file
                    var lineCategoryXAxis:CategoryAxis = new CategoryAxis();
                    //lineCategoryXAxis.dataProvider = getDatePointsArray(datesArray);
                    lineCategoryXAxis.categoryField = "DATE";
                    lineCategoryXAxis.labelFunction = lineCategoryXAxisLabelFunction;
                    lineChart.horizontalAxis = lineCategoryXAxis;
    Here, I am giving category axis for x-axis. Linechart takes care of values in the vertical axis by itself and so the line chart gets plotted properly.
    But when I try giving values to vertical axis, then nothing is plotted in the line chart.
                    var lineCategoryYAxis:CategoryAxis = new CategoryAxis();
                     lineCategoryYAxis.dataProvider = getNumericPointsArray(valuesArray)
                     //lineCategoryYAxis.categoryField = "VALUE";
                     lineCategoryYAxis.labelFunction = lineCategoryYAxisLabelFunction;
                     lineChart.verticalAxis = lineCategoryYAxis;
    Also if I try to reduce the number of points in the x-axis, nothing gets plotted
                   var lineCategoryXAxis:CategoryAxis = new CategoryAxis();
                     lineCategoryXAxis.dataProvider = getDatePointsArray(datesArray);
                     lineCategoryXAxis.labelFunction = lineCategoryXAxisLabelFunction;
                     lineChart.horizontalAxis = lineCategoryXAxis;
    where getNumericPointsArray() returns an array with 7 values for vertical axis and getDatePointsArray() returns array with 7 dates for horizontal axis.
    Need help in resolving this problem.
    P.S: Unable to attach mxml file so attaching it as a txt file.

    Hi,
    This is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:components="com.yahoo.data.digits.components.*"
        layout="vertical"
        backgroundColor="#FFFFFF"
        backgroundGradientAlphas="[0,0]"
        width="100%" creationComplete="cc()">
        <mx:Script>
            <![CDATA[
                import mx.utils.ArrayUtil;
                import mx.collections.XMLListCollection;
                import mx.collections.Sort;
                import mx.charts.CategoryAxis;
                import mx.charts.chartClasses.Series;
                import mx.collections.ArrayCollection;
                import mx.charts.series.LineSeries;
                import mx.charts.LineChart;
                public var dataForLineChart:ArrayCollection = new ArrayCollection([
                                                                {DATE:"20090509", VALUE:"3538943147"},
                                                                {DATE:"20090510", VALUE:"5047760823"},
                                                                {DATE:"20090511", VALUE:"5046865494"},
                                                                {DATE:"20090512", VALUE:"4983771032"},
                                                                {DATE:"20090513", VALUE:"5032039834"},
                                                                {DATE:"20090514", VALUE:"4897303525"},
                                                                {DATE:"20090515", VALUE:"4496020991"},
                                                                {DATE:"20090516", VALUE:"3525547244"},
                                                                {DATE:"20090517", VALUE:"3596982398"},
                                                                {DATE:"20090518", VALUE:"4947978254"},
                                                                {DATE:"20090519", VALUE:"4932182219"},
                                                                {DATE:"20090520", VALUE:"4909069875"},
                                                                {DATE:"20090521", VALUE:"4781830807"},
                                                                {DATE:"20090522", VALUE:"4431176690"},
                                                                {DATE:"20090523", VALUE:"3476323135"},
                                                                {DATE:"20090524", VALUE:"3444512240"},
                                                                {DATE:"20090525", VALUE:"4329018809"},
                                                                {DATE:"20090526", VALUE:"5086390081"},
                                                                {DATE:"20090527", VALUE:"5012778551"},
                                                                {DATE:"20090528", VALUE:"4770167180"},
                                                                {DATE:"20090529", VALUE:"4408927585"},
                                                                {DATE:"20090531", VALUE:"3488537357"},
                                                                {DATE:"20090601", VALUE:"3630748728"},
                                                                {DATE:"20090602", VALUE:"5007093913"},
                                                                {DATE:"20090603", VALUE:"5015210737"},
                                                                {DATE:"20090604", VALUE:"4999236097"},
                                                                {DATE:"20090605", VALUE:"4934609881"},
                                                                {DATE:"20090606", VALUE:"4588135281"},
                                                                {DATE:"20090607", VALUE:"3615291868"},
                                                                {DATE:"20090608", VALUE:"3666209346"},
                private function cc():void
                    var lineSeriesArray:Array = new Array();
                    var lineChart:LineChart = new LineChart();
                    lineChart.percentHeight = 100;
                    lineChart.percentWidth = 100;
                    lineChart.showDataTips = true;
                    lineChart.dataProvider = dataForLineChart;
                    var valuesArray:Array = new Array();
                    var datesArray:Array = new Array();
                    var lineSeries:LineSeries;
                    lineSeries = new LineSeries();
                    lineSeries.dataProvider = dataForLineChart;
                    lineSeries.dataFunction = lineSeriesDataFunction;
                    lineSeriesArray.push(lineSeries);
                    var dLength:int = dataForLineChart.length;
                    for (var k:int=0;k<dLength;k++)
                        valuesArray.push(dataForLineChart[k].VALUE);
                        datesArray.push(dataForLineChart[k].DATE);
                    lineChart.series = lineSeriesArray;
                    var lineCategoryXAxis:CategoryAxis = new CategoryAxis();
                    //lineCategoryXAxis.dataProvider = getDatePointsArray(datesArray);
                    lineCategoryXAxis.categoryField = "DATE";
                    lineCategoryXAxis.labelFunction = lineCategoryXAxisLabelFunction;
                    lineChart.horizontalAxis = lineCategoryXAxis;
                    var lineCategoryYAxis:CategoryAxis = new CategoryAxis();
                    //lineCategoryYAxis.dataProvider = getNumericPointsArray(valuesArray)
                    lineCategoryYAxis.categoryField = "VALUE";
                    lineCategoryYAxis.labelFunction = lineCategoryYAxisLabelFunction;
                    //lineChart.verticalAxis = lineCategoryYAxis;
                    chartContainer.removeAllChildren();
                    chartContainer.addChild(lineChart);
                private function lineCategoryXAxisLabelFunction(categoryValue:Object, previousCategoryValue:Object, axis:CategoryAxis, categoryItem:Object):String
                    /** Will do date formatting here */
                    return categoryItem.DATE;
                    //return categoryItem.toString();
                private function lineCategoryYAxisDataFunction(axis:CategoryAxis, item:Object):Object
                    return item.VALUE;
                private function lineCategoryYAxisLabelFunction(categoryValue:Object, previousCategoryValue:Object, axis:CategoryAxis, categoryItem:Object):String
                    /** Will do number formatting here */
                    return categoryItem.VALUE;
                    //return categoryItem.toString();
                private function lineSeriesDataFunction(series:Series, item:Object, fieldName:String):Object
                    if (fieldName == "yValue")
                        return item.VALUE;
                    else if(fieldName == "xValue")
                        return item.DATE.toString();
                    return null;
                private function getNumericPointsArray(inputArray:Array):Array
                    var numValues:int = inputArray.length;
                    /** Sorting the array to find min and max values */
                    var inputAC:ArrayCollection = new ArrayCollection(inputArray);
                    inputAC.sort = new Sort();
                    inputAC.refresh();
                    var minValue:Number = Number(inputAC.getItemAt(0));
                    var maxValue:Number = Number(inputAC.getItemAt(inputAC.length - 1));
                    var outputArray:Array = new Array();
                    var i:int;
                    var diffFactor:Number;
                    var diffMinMax:Number;
                    /** axis takes 0 by default so not pushing that into array */       
                    if (minValue == maxValue)
                        /** Dividing by 6 to get 5 points */
                        diffFactor = Math.round(maxValue / 6);
                        for (i=1;i<=5;i++)
                            outputArray.push((i * diffFactor));
                        outputArray.push(maxValue);
                    else
                        outputArray.push(minValue);
                        /** Find some points between minValue and maxValue */
                        diffMinMax = (maxValue - minValue);
                        /** Dividing by 5 to get 4 points */
                        diffFactor = Math.round(diffMinMax / 5);
                        for (i=1;i<=4;i++)
                            outputArray.push((i * diffFactor) + minValue);
                        outputArray.push(maxValue);
                    return outputArray;
                private function getDatePointsArray(inputArray:Array):Array
                    var numValues:int = inputArray.length;
                    /** Subtracting 2 because first and last values are undconditinally pushed in output array.*/
                    var stepValue:int = (numValues - 2) / 5;
                    var outputArray:Array = new Array();
                    outputArray.push(inputArray[0]);
                    /** Starting from 1 and ending in numValues - 2 because first and last values of array are already taken.*/
                    for (var i:int=stepValue;i<numValues - 2;i+=stepValue)
                        outputArray.push(inputArray[i]);
                    outputArray.push(inputArray[numValues - 1]);
                    return outputArray;
            ]]>
        </mx:Script>
        <mx:HBox id="chartContainer" width="100%" height="100%">
        </mx:HBox>
    </mx:Application>
    As you can see in the code, my dataPovider is complex (can become much more complex). In the code above, the ArrayCollection has only one element currently but will have more. So the graph should be plotted in such a way that each array element corresponds to one line series.
    What I need to achive is that the horizontal axis should show dates only from the "0th" element of the ArrayCollection and that too only some limited 6-7 points, the rest of the ArrayCollection elements should get plotted according to these dates.
    I think I was able to explain my problem. Pls let me know if any more explaination is required.
    P.S. Re-attaching the file.
    Thanks in advance

  • OBIEE Session Variable Problem

    Hi:
    OBIEE 11.1.1.5
    I created a new session variable and initialization block. The default value of the variable is 1. The query for the initialization block is SELECT 123456 FROM DUAL. The query in the initialization block tested fine. I bounced the OBIEE instance.
    When I use the Administration Tool to view the Session Manager, I see that the value of the variable is 123456.
    The problem is in an Answers report the value of the variable is 1.
    Can anyone offer a suggestion as to why the value in Answers is the default value of the variable?
    Thanks.

    Thanks for your reply. I agree that the expression NQ_SESSION. <<variable name>> will display the variable. And it is with this command, in Answers, that I see the default value. Only in the Admin Tool do I see the correct value assigned with the Initialization Block.
    Again, my problem is I cannot display the correct assigned value in an Answer report, only the default value.

  • Session create problem in mysite....

    Hi developers,
    In my project when ever i am clik on sign out button. All session values distroy. But when ever i click on the BACK Button in Browser it shows all options regulary until page refresh. How can i solve this problem.
    This is my logout.jsp file
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage=""  %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <%
         session.removeAttribute("uname");
         session.invalidate();
         response.sendRedirect("http://www.dec1010.com/visitagain.jsp");     
    %>
    </body>
    </html>Thanking u
    with Regards
    sure..:)-

    when ever i
    am clik on sign out button. All session values
    distroy. But when ever i click on the BACK Button in
    Browser it shows all options regulary until page
    refresh. How can i solve this problem.The browser is caching the page.
    When you hit the back button on your browser, the browser is reading the data from the cache and not from the Http Session.
    When you use HttpSessions, it is a good practice to prevent browsers from caching your page.
    Caching mechanism is browser dependent and HTTP protocol version dependent , do some research on how you could prevent a page from being cached and add the code directly in the JSP page which you don't want to be cached.

  • HP T510 Citrix session disconnect problem

    Hello, I had problem with HP T510 (Thinpro Image 5.2/citrix receiver 13.1, Xenapp 6.5 on serveur 2008 R2). After direct ICA connexion on published desktop, the connexion drop and the user came back to the Thinpro OS. The problem seems to be with Lotus Notes 6.5 when they click on “New memo” or “Address” but not every time. After lost connexion the user must enter the password on Thinpro ICA connexion to retrieve is Windows session (session just lock not logout). Nothing special on server log. I think the ICA session send signal to terminal to disconnect. Thanks you Eric

    We are having the exact same issue with our T510s, also on ThinPro 5.2, latest image. However, we do not use Lotus Notes, and there are no "crashes" happening, they simply lose connection and get their sessions back when they re-login. We have a T520 running W7ES, and some T5740s running WES9 with no problems. It is only these T510s on ThinPro 5.2.  Are yours using wireless by the way? All of ours that have the issue are wireless. We have a few T510s that are on a wired connection that I haven't seen the problem on, but I will need to verify with the users. Between this and the application icons being blank I posted about here, I am a bit less than impressed with ThinPro 5.2...

  • Static methods in Session Beans problem

    Can a Stateful Session Bean have a static method?
    public static String foo();
    I tried to add a static method to a Stateful Session bean but had two problems:
    When I tried to add the static modifier to the Remote interface:
    static String foo();
    I got the following error message:
    Error(12,17): modifier static not allowed here
    When I tried to compile code calling this function :
    MyClass.foo();
    I got this message:
    Error(795,42): non-static method getNewSuffix(java.lang.String) cannot be referenced from a static context
    Even though a static method was compiled in this class. I assume it can't find the static modifier in the Remote interface which wasn't allowed. Are static methods allowed in EJB's at all?

    dear friend,
    1) Interfaces may not contain static functions!
    2) EJBs doesnt support static methods !
    Maybe you should go and learn more about Java and EJB's ?

  • Session variable problem : equality comparisons

    I have defined the following session variable returning the error *"[nQSError: 10058] A general error has occurred. [nQSError: 42040] The session variable, NQ_SESSION.TEST, is defined as Row-Wise Initialization. It is restricted to usage with equality comparisons. (HY000)"*
    select 'TEST', organisatie_nummer
    from st_organisatie
    where (select case when regio = -1 then 1 else
    regio_nummer end
    from st_gebruikers
    where upper(gebruiker) = upper('VALUEOF(NQ_SESSION.USER)')) =
    (select case when regio = -1 then '1' else regio end
    from st_gebruikers
    where upper(gebruiker) = upper('VALUEOF(NQ_SESSION.USER)'))
    Why this setup...a user can have access to 1 region or 'ALL' region. To make the 'ALL' available a dummy records has been inserted with a value of -1.
    There's no problem to retrieve the region (another session variable), it returns '%' in case a user has all regions or the region name itself.
    But i wanted to use this variable to retrieve the organisations linked to a region, but using a like statement or the query above isn't possible as it always returns the same error.
    Someone any idea how to resolve this?!
    Txs,
    Andy

    [nQSError: 10058] A general error has occurred. [nQSError: 42040] The session variable, NQ_SESSION.ORGANISATIE, is defined as Row-Wise Initialization. It is restricted to usage with equality comparisons. (HY000)
    I transformed my query like this, I don't have any clue why this isn't working...if I run this sql statement it works perfect but not in OBi
    select 'ORGANISATIE', organisatie_nummer
    from st_organisatie
    ,(select gebruiker,regio from st_gebruikers) b
    where case when b.regio = -1 then 1 else regio_nummer end
    like
    case when b.regio = -1 then '%' else b.regio end
    and upper(gebruiker) = upper(':USER')

Maybe you are looking for

  • How to change the frequency of pulse train on the fly using an array of values?

    Hi all! First I want to thank U for the great job you are doing for this forum. Iam still busy trying to control a stepper motor, by sending pulses from my E-series 6024 to a compumotor s6- stepper Driver. I've managed to get it working. I desperatel

  • Crashing/slow Adobe Premiere Elements 8

    Overview of probelm: Newer laptop, recently downloaded Adobe Premiere Elements 8, have uploaded 3 videos, all ranging from around 8-10 minutes, and program constantly quits out (around once every 10 minutes), runs extremely slowly, constantly shows m

  • Can't call attachment from Object

    Hello, I had developed an application wich load Dokuments from Workstation to application server, I use SAP Office function modules. Everything is ok I see the document on the object (generic object services) but I can't check out the document. I see

  • Backslash / pipe bootcamp with Windows 7 (french keyb. - clavier français)

    Hello, I bring you the result of search on various forums in the hope of using the backslash and pipe characters of my Macbook Pro 13" french keyboard in Windows 7 with bootcamp 3.2 Here we go : - Backslash: Right ALT + 8 /! - Pipe: Right ALT + 6 § S

  • Custom Invoice Regulations in Brazil

    Hello, Does anyone know if there are special custom regulations in Brazil that require displaying at custom the final customer invoice? I am engaged in a project where we issue a performa/merchandize invoice at the shipping stage and only later send