Hi,
 
I am using custom exception page in my application and i am trying to
call the restart
service whenever any exception occurs and redirect to a specific page
after restart.
 
I am getting an error saying that session is already invalidated. Here
is the code i
am using to call the restart service. Is there anything i am missing??
 
.page
 
 <inject object="engine-service:restart" property="restartService" />  
 
ExceptionPage.java
 
public abstract IEngineService getRestartService();
 
 public void pageBeginRender(PageEvent event)   {
 
   if(getException() != null) {
 
     try {   
         getRestartService().service(event.getRequestCycle());
 
     } catch(IOException e) {
        _LOGGER.error("Unable to restart engine service." +
e.getMessage());
     }
 
    }
 }
 
Thanks,
Venu.
 
 
 
 

______________________________________________________________________
This e-mail has been scanned by The Leukemia & Lymphoma Society Managed Email 
Content Service, provided by MCI and Message Labs.

NOTICE: This message, including all attachments transmitted with it, is for the 
use of the addressee only. It may contain proprietary, confidential and/or 
legally privileged information. No confidentiality or privilege is waived or 
lost by any mistransmission. If you are not the intended recipient, you must 
not, directly or indirectly, use, disclose, distribute, print or copy any part 
of this message. If you believe you have received this message in error, please 
delete it and all copies of it from your system and notify the sender 
immediately by reply e-mail. Thank you.

Reply via email to