• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application terminates when a session times out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application terminates when a session times out


  • Subject: Application terminates when a session times out
  • From: meena <email@hidden>
  • Date: Thu, 13 Feb 2003 17:14:56 +0100

Hello all,

I have moved my WebObjects 4.5 application to WebObjects 5.1.4 on Mac OS X 10.2.3. I have successfully compiled the application and even could execute the application with no problems. But, there is a problem when my session times out. I have set a time out in my session for 12minutes. Also, I have found that once a session is timed out, the application gets terminated at the next request by either other sessions or when I try to establish a new session. Do I need to explicitily do some settings ? I don't remember doing one such when I used WebObjects 4.5. I feel that when one session times out, it times out the rest of the sessions or and somehow fails when there is a new request to the application.

In my Session.java, I have the following

    public Session ()  {
        super();
        this.setTimeOut(12*60); // Shut down if idle for 12minutes.
    }

I have the following piece of code is present in my Application.java

/* The following method is invoked when the application receives a request from a session that has timed out. */
public WOResponse handleSessionRestorationErrorInContext(WOContext aContext) {
WOComponent nextPage;
nextPage = this.pageWithName("Main", aContext);
return nextPage.generateResponse();
}


When the session times out, and I click on a link on the page which was linked to timed out session, I expect the system to display the Home page ("Main"), rather the application is terminated. I get the following error. This application is really working very well with WebObjects 4.5 (both development and deployment environment), but currently this problem occurs with WebObjects 5.1.4. Development environment. I never thought that such a serious problem would arise when I move to a higher version. I really appreciate any suggestions/help in this matter.

Meena.
****************************************
[2003-02-13 15:45:17 CET] <WorkerThread10> <WOApplication 'LAWeb'>: Exception occurred while handling request:
com.webobjects.foundation.NSForwardException [java.lang.IllegalStateException] null
[2003-02-13 15:45:17 CET] <WorkerThread10> com.webobjects.foundation.NSForwardException for java.lang.IllegalStateException: attempt to send message to object of class class IA_User after its EOEditingContext was finalized
at com.webobjects.eocontrol.EOEditingContext$_EOInvalidationFaultHandler.co mpleteInitializationOfObject(EOEditingContext.java:165)
at com.webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java:832 )
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_Gener icRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:492)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject .java:1174)
at IA_User.user_Id(IA_User.java:136)
at Session.isAnIAEmployee(Session.java:134)
at Main.<init>(Main.java:66)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities.ja va:526)
at com.webobjects.appserver._private.WOComponentDefinition._componentInstan ceInContext(WOComponentDefinition.java:470)
at com.webobjects.appserver._private.WOComponentDefinition.componentInstanc eInContext(WOComponentDefinition.java:576)
at com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:1 738)
at Application.handleSessionRestorationErrorInContext(Application.java:187)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit hPreparedApplication(WOComponentRequestHandler.java:308)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleReque st(WOComponentRequestHandler.java:346)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleReques t(WOComponentRequestHandler.java:414)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav a:1133)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread. java:158)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java :231)
at java.lang.Thread.run(Thread.java:491)
[2003-02-13 15:45:17 CET] <WorkerThread10> <WOWorkerThread id=10 socket=Socket[addr=iamac49.epfl.ch/ 128.178.5.78,port=49538,localport=51746]> Exception occurred while responding to client: java.lang.NullPointerException
[2003-02-13 15:45:17 CET] <WorkerThread10> java.lang.NullPointerException
at Application.handleException(Application.java:167)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleReque st(WOComponentRequestHandler.java:366)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleReques t(WOComponentRequestHandler.java:414)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav a:1133)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread. java:158)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java :231)
at java.lang.Thread.run(Thread.java:491)


****************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Application terminates when a session times out
      • From: Chuck Hill <email@hidden>
    • WO 5.2 and MySQL
      • From: David Holt <email@hidden>
    • Re: Application terminates when a session times out
      • From: Seejo Pylappan <email@hidden>
  • Prev by Date: Re: locking editing context
  • Next by Date: Re: Application terminates when a session times out
  • Previous by thread: Java
  • Next by thread: Re: Application terminates when a session times out
  • Index(es):
    • Date
    • Thread