ApplicationSessionExpiryFilter never gets called

I have configured a Filter in the web.xml and I have a filter class.  It doesn't seem to be getting called.  I have a page just for the timeout.
public class ApplicationSessionExpiryFilter implements Filter {
    private FilterConfig _filterConfig = null;
    public void init(FilterConfig filterConfig) throws ServletException {
        _filterConfig = filterConfig;
    public void destroy() {
        _filterConfig = null;
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
                                                                                                     ServletException {
        String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
        String currentWebSession = ((HttpServletRequest)request).getSession().getId();
        boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
        // if the requested session is null then this is the first application
        // request and "false" is acceptable
        if (!sessionOk && requestedSession != null) {
            // the session has expired or renewed. Redirect request
            ((HttpServletResponse)response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
        } else {
            chain.doFilter(request, response);
Please help.  We are already in production

Hi Veena,
Please mention your Jdev version always,
https://www.youtube.com/watch?v=qGDevlbSLcw.
Anyhow, I think this would help you.
Thanks.

Similar Messages

  • Setter never get called in selectManyCheckbox!!

    Hello
    I posted a topic about selectManyCheckbox / selectItems , but I didnt receive any reply , so
    I reviewed earlier threads talking about the same problem:
    * setter method NOT CALLED* for selectManyCheckbox :
    http://forum.java.sun.com/thread.jsp?forum=427&thread=398097
    " ....My page is rendered with all of the correct checkboxes I require.
    One for each object in the problemOptions list.
    Once I check the boxes I want and submit the form,
    I am losing my choices when I come back to the same page.
    I noticed that I never see my setter being called.... "
    http://forum.java.sun.com/thread.jsp?forum=427&thread=401926
    "..if one ore more items are selected, ..... ,
    after it called the getter 3 times and the setter not at all.
    there is no error message and no stack in any of the logs...."
    this is sample of my JSP/backing bean :
    JSP :
      <h:selectManyCheckbox  id="foodType" value="#{productBean.foodType}">
            <f:selectItems value="#{productBean.foodTypes}" />
      </h:selectManyCheckbox>
    Backing bean class ProductBean :
      private ArrayList foodType = new ArrayList();
      private ArrayList foodTypes = new ArrayList();
    public ProductBean()  {
        foodTypes.add(new SelectItem("Sweet","Dweet label","Sweets"));
        foodTypes.add(new SelectItem("desert","Desert label","Deserts"));     
        foodTypes.add(new SelectItem("seeFood","SeeFood label","SeeFoods"));   
      public Object[] getFoodType() {
          try {
            return foodType.toArray(); }
          catch (Exception ex) { return null;  }
      public void setFoodType(Object[] newFoodType) {
        // NEVER GET CALLED !!!
        int len=0;
        if (null == newFoodType || ( len = newFoodType.length)==0 ) {    return; }
        foodType.clear();
        foodType = new ArrayList(len);
        for ( int i=0;i<len;i++) {   foodType.add(newFoodType); }
    public ArrayList getFoodTypes() {
    return this.foodTypes;
    public void setFoodTypes(ArrayList foodTypes) {
    this.foodTypes = foodTypes;
    what am I doing wrong ? , I'm really stuck , what may be the reason for JSF not to call setter for setFoodType??
    I saw a reply for Adam.winner stating that it is not suitable to use Object[] type as setter argument ,
    and to use String[] instead, but this was in EA4 .
    is this still applicable for JSF 1.0 FR ?
    I appreciate any help
    -- Erich

    The data type of the SelectItem itemValue properties must be the same basic type (primitive or the corresponding boxed type) as the data type of the UISelectMany/UISelectOne value.
    In this example, the SelectItem itemValue properties are of type String, but the UISelectMany value is of type Object. Change it to String, and it should work.

  • Servlet Filter never gets called

    I have a filter configured in web.xml to run on hitting the /welcome.jsf(forward, request).
    I want to update a statistics table with the hit count for login.  But the servlet is not getting called.
    In the debugger, it never stops there and the statistics table never gets updated.

    11.1.2.3
    <filter>
            <filter-name>IBHSLoginStatistics</filter-name>
            <filter-class>gov.samhsa.dasis.isats.view.servlets.filters.IBHSLoginStatistics</filter-class>
        </filter>
    <filter-mapping>
            <filter-name>IBHSLoginStatistics</filter-name>
            <url-pattern>/faces/welcome/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
    ServletException {
    HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
    if(session.isNew()) {
    IbhsStatistics ibhsStatistics = new IbhsStatistics();
    ibhsStatistics.setEventDate(new Timestamp(new Date().getTime()));
    ibhsStatistics.setEventType("Login");
    ibhsStatistics.setUserid(SecurityShell.getUserId());
    ManageIbhsStatistics manageIbhsStatistics = new ManageIbhsStatistics();
    try {
    manageIbhsStatistics.saveIbhsStatistics(ibhsStatistics);
    } catch (NamingException e) {
    } catch (NotSupportedException e) {
    } catch (SystemException e) {
    } catch (RollbackException e) {
    } catch (HeuristicMixedException e) {
    } catch (HeuristicRollbackException e) {
    chain.doFilter(request, response);

  • Canvas paint never gets called - Repaint and ServiceRepaints.

    I have a problem that My Canvas never gets Drawn or the Image never gets Displayed;
    I am not sure if there is a DeadLock or If there is nothing to be painted,
    but when I enable the Debugger I notice that it never enters the paint method. ( I call Repaint and ServiceRepaints)
    If however I make the thread that calls setImage external to my Canvas Class the images do get Displayed.
       //Create the Canvas Class, Start Thread Display Canvas
       frame = new ImageCanvas();
        frame.addCommand(exitCommand);
        frame.addCommand(backCommand);
        frame.setCommandListener(this);
        frame.start();
        display.setCurrent(frame);
    //Display Image
    public class ImageCanvas extends Canvas implements Runnable {
    protected void paint(Graphics g) {
      g.drawImage(offscreen, Constants.XPOS, Constants.YPOS,  Graphics.LEFT | Graphics.TOP);
      private void setImage(Image img, String title) {
        this.setTitle(title);
        offscreen = img;
        repaint();
        serviceRepaints();
    public void run() {
         while(true){
           if (Constants.IMGLOCK != null) {
             synchronized (Constants.IMGLOCK) {
                setImage(Constants.IMAGE, title);
                Constants.IMGLOCK.setLockBoolValue(false);
                 image_created = true;
          } else {
               Constants.IMGLOCK.wait(10);
    }

    I found the BUG, But do not understand Why this is Needed to add,
    the Canvas every Time to the Display.
    Can someone please Explain ???
    private void setImage(Image img, String title) {
        this.setTitle(title);
        offscreen = img;
        repaint();
        display.setCurrent(this);  //<<<<<<WHY ????
        serviceRepaints();
      }

  • HTMLHost windowClose never gets called.

    Hi.
    I have a HTMLLoader and set to htmlHost a class extending HTMLHost (ie MyHTMLHost).
    Then I have this code in the class
    public class HelpHTMLHost extends HTMLHost
      override public function windowClose():void
             trace('close');
      override public function updateStatus(status:String):void
       trace("HTML: '" + status + "'");
    Then I load a page that has a
    <center><a href="javascript:alert(window);">test1</a></center>
    <center><a href="javascript:window.close();">close</a></center>
    .. Result is that  "test1" link works (shows alert window). close however deos not.
    the updateStatus method gets called (see two EMPTY strings in trace), windowClose does not get called.
    Using Adobe AIR 2 SDK, WIN 10,1,53,64 - Desktop - Windows 7 debug
    Thanks for the help.

    Same problem here, with AIR 2 SDK.

  • Canvas never gets shown (visible) on i85s, emulator works

    Hi,
    I have a class that has two canvases: one is very lightweight and I show it immediately, the other I create in a thread and block on the completion.
    The thread run() method after creating the canvas, does
    a setCurrent(canvas) and I'm able to verify that it occurs. The flag to continue is set and I block again
    on showNotify () which I have a second flag.
    showNotify() on the i85s never gets called though and my game never updates. It does work on the emulator i85s though.
    The code stripped down is like this.
    Class Manager extends TimerTask
    Thread loaderT = null;
    Loader loader = null;
    BigCanvas bc = null;
    Manager() {
    loader = new Loader (this);
    loaderT = new Thread(loader);
    loaderT.start();
    // this method called manager is instantiated
    void start() {
    timer = new Timer(); timer.schedule(this,0,delay);
    setCurrentAndVisible(tmpCanvas);
    // managers run
    void run (){
    if (!loader.done){
    current.repaint(); return;
    // done loading,
    loaderThread = null;
    advanceStates();
    if (bc.visible){ // set when showNotify() called
    bg.repaint();
    class Loader implements Runnable{
    Manager m = null; BigCanvas c = null; done = false;
    Loader(Manager m){
    this.m = m;
    run () {
    m.bc = new BigCanvas();
    m.d.setCurrent(c);
    done = true;
    please note that the classes and methods arent exactly as they are in my code, i just copied what the process was and renamed variables to make sense in a forum-setting. the code all compiles and runs fine in the emulator (so if i misspelled things, or left out of part of method sigs above please dont worry about correcting it), I'm just trying to explain my programming method above not write exactly compiling code.
    TempCanvas and Loader are both inner-classes of Manager also.
    thanks a lot!
    ps. why isnt there a cldc-interest mailing list?
    I find mailing lists easier to keep track of then forums.

    please note,
    setCurrentAndVisible does the following
    setCurrentAndVisible(BaseCanvas c)
    current = c;
    d.setCurrent(current);
    and current is a BaseCanvas in Manager.
    Also in Loader.run() , m.d.setCurrent(c); is actually
    m.setCurrentAndVisible(c);
    thanks!

  • TableSorter class never ever calls getModelToView()

    I am using TableSorter class to sort tables. There is a piece of optimization code that never gets called: getModelToView(). For that method to be called a check is performed (modelToView != null). But modelToView is assigned inside that method! This causes a single cell update to trigger fireTableDataChanged(). Is that a known bug? Is there a fix?

    I see what you mean.. you're right, it seems like modelToView will always be null.
    I found another bug.. when mouse is clicked on the tableheader area where it doesn't have any column (when table is stretched it can have no column there) , columnModel.getColumnIndexAtX(e.getX()) returns -1, and if the check there is not added, then get a runtime out-of-bounds exception on the following line columnModel.getColumn(viewColumn).getModelIndex() because viewColumn is set to -1. See the code snippet below:
    public void mouseClicked(MouseEvent e) {
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                if(viewColumn == -1) {  // added!
                    return;
                int column = columnModel.getColumn(viewColumn).getModelIndex();

  • I just want to know why money was taken out mi bank account,i still have a itunes balence and used a gift card.id love someone 2 call me about this but i never get thru to you

    i just want to know why money was taken out mi bank account,i still have a itunes balence and used a gift card.id love someone 2 call me about this but i never get thru to you

    This is a User to User Forum... You are not addressing Apple Here...
    Suggest you use this link to Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • How can I reset my password if I never get the "forgot password" email for my iCloud account?

    After upgrading to iOS7, my phone keeps bugging me to sign into my iCloud account when I can't remember my password. When I choose to resolve this, I never get the confirmation email back to reset my password and I've tried on my phone and on iCloud to reset my password but I never get the email to do so. Thus, I can't sign in and the pop-up asking me to sign in keeps popping up, it's driving me crazy! Has this happened to anyone and did you have to call technical support for this or did you find a work around?

    Go to https://expresslane.apple.com, select "More Products and Services", then "Apple ID", then  on the next page select "Other Apple ID Topics", then "Lost or forgotten Apple ID password" and click "Continue".

  • Since upgrading to Mavericks, I can no longer share my documents via email.  It never gets to the mail page. Any ideas?

    Once I upgrades to Mavericks, I first had trouble viewing my old documents saved in iCloud.  Apple Support phone call solved this.  Now I notice I cannot share any of my documents/pages via email.  It never gets past the "next" page for sharing via email.  Anyone with same problem?

    I actually have the same problem, since I upgraded to Mavericks my MacBook Pro can't seem to find the Bose sounddock 10. Has anyone found a solution to this.
    It still works with the iPhone 5
    Thank you

  • After creating an apple ID it says it has to verify my email adress and will send an email with a verification link. I never get the email.

    I created an iapple id and it said it had to send me a verification email to verify my email adress. It said ....email sent please click on link. I did this several times and although it says email sent...i never get the email.

    Apple ID security issues -
    Account security issues almost always require you to speak directly to an Apple representative to securely establish your identity as the account holder. You can set it up so that Apple calls you, either immediately or at a time convenient to you.
    1. Go to https://getsupport.apple.com/Issues.do
    2. Choose Other Apple ID Topics and choose the appropriate topic for your issue
    4. Follow the onscreen instructions

  • ToString() method in my User defined Exception...How is it getting called ?

    CustomException.java
    public class CustomException extends Exception
         private int age;
         public CustomException(int age)
         this.age = age;
         public String toString()
         return "this is my exception";
    ExceptionTest.java
    public class ExceptionTest
         static int age=-1;
         public static void main(String args[]) throws Exception
              if(age<0)
              throw new CustomException(age);
    After executing ExceptionTest.java , the result is
    Exception in thread "main" this is my exception at ExceptionTest.main(ExceptionTest.java:8)
    I am just throwing CustomException , to my knowledge only the constructor should run ?
    What i see is message "this is my exception" is within the toString() method - which i never called.
    From where is the toString() method getting called ?
    Also ,
    If I want an object of my class to be thrown as an exception object, what should I do?

    Your main method is defined as throwing Exception, so the JVM catches the Exception (since nothing in your code does). And it does the equivalent of e.printStackTrace() which, among other things, outputs the result of toString().

  • Forgot my security question answers and when it sends the email I never get it

    Forgot my security questions answers and every time they send the email I never get it

    Try the other methods
    From a Kappy  post
    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Get called back as the data table is being rendered

    Hello:
    I have a datatable, like this:
    <t:column>
    <f:facet name="header">
    <t:outputText value="Process" style="font-weight: bold" />
    </f:facet>
    <t:commandButton id="ProcessButton" styleClass="sbttnHeader"
    actionListener="#{ProcessQueueBBean.processAction}"
    value="#{ProcessQueueBBean.processButtonNames[dbRow.status]}" >
    </t:commandButton>
    </t:column>I need to get called when the data table rows are being rendered. The reason I need to get called is that some columns have conditional data depending on the other values in the same row
    Any ideas?
    Thanks for your help

    I don't know i've never tried this in the way you need it but let me know if it works.. in the <column tag render=> I know you can check infor
    so have render = "#{row.num+row.othernumber >0}"
    that probably will work .. like i said I never tried it in a table column.. Let me know if it works

  • ABAP RFC doen't get called, although XI says it does

    Hi all,
    sorry for my noob question, but I'm completely new to XI.
    The following situation:
    I've a scenario, where some mappings are done in XI and at the end the payload is handed over to a ABAP RFC function to persist the mapped data to the backend system.
    I've got a communication channel set up,
    Inferface mappings are fine,
    receiverdetemination looks fine,
    SXMB_MONI shows all messages, all with checkered flags,
    The last message of XI lists properly the RFC function to be called. Receiver determination is ok, lists the proper business system which has a communication channel (receiver) available.
    But when I have a look at SLG1, not even a starter log is written. Nothing. It seems that the ABAP function is never being called.
    So my questions are:
    Where can I find some information what might get wrong?
    Any ideas where I can have a look at, what might be configured wrong?
    Can I test the login credentials I gave in the communication channel for the business system?
    The SOAP message part "RunTime" lists in the "User" element a different user name that I gave in the Business System / Communication Channel. Where does this one come from?
    Any help and ideas appreciated,
    Tnx,
    Martin.

    Hello Manjusha.
    >
    Manjusha Nair wrote:
    > Can you check in Runtime Workbench.
    > Goto Message monitoring.Here you please check the details of your message .
    >
    > ref:
    > http://help.sap.com/saphelp_nw04/helpdata/en/2f/4e313f8815d036e10000000a114084/frameset.htm
    Oh thanks! This was the useful hint!
    With the help of the Message Monitoring I could find out, that there was an authorization problem.
    Although the password was given properly.
    I found out, that XI doesn't like whitespaces at the beginning or at the end of a password!! Somewhere deep down, there must be a trim() call on the password. ARRRGGHH Cost'd me several days!
    Thanx to all!
    Martin.

Maybe you are looking for

  • Print appointment iCal 3.0.1

    Hello, I would like to print only one appointment in ical. Neither a whole day, nor the week or month. At the moment I copy the appointment in Pages (drag and drop) and print it from there. That is very complicated. Is there any solution to print app

  • How can I access the full content of a stored email?

    A friend sent me a recipe and I saved the email but now can't open it - or even find the specific message, which is a part of a string.

  • HT4623 How can i update my iphone 3gs from ios 4.2.1 to ios 6.1

    Already tried to sync with itunes and was advised when selecting check for update that current ios is 4.2.1. ios 5 or higher is needed for most apps on app store.

  • Camera

    There is a weddng in few months and I am looking to buy a camera that gives good results and has a strap so I can conveniently carry it without occupying hands. This could be a professional camera since I intend to take few courses and do some photog

  • Motion + Video Filter order

    I have two things going within one edited shot. 1) I zoom into a still photo via Motion. 2) I use the widescreen Matte video filter. The problem is that it seems like Motion overrides the matte video filter, so that when I zoom into the photo, the ph