• 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
Re: two sessions started
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two sessions started


  • Subject: Re: two sessions started
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 1 Mar 2005 07:31:01 -0800


On Mar 1, 2005, at 6:04 AM, Jeff Schmitz wrote:

Hello,
I'm having a problem with my application where everytime someone connects to it, two sessions are started, at least according the JavaMonitor.

Add some debug logging. Override dispatchRequest() in Application and print out the uri() of the request to be dispatched. Chances are you have some broken/bad html in your main page that is causing a second request. Have any broken images on it? Also try adding
NSLog.out.appendln(new RuntimeException("back trace"));
to the session constructor to see where the creation call is coming from.



I do have an Initialize operation in my Session class that is called by my Main page's constructor.

That seems a very odd way to do it. Why not call initialize() from the Session constructor?



Could this be causing it someway?

It does not look like it to me.

Chuck

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >two sessions started (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Serialize a EOGenericRecord error
  • Next by Date: WebObjects 5.2.3, EOModeler and MySQL
  • Previous by thread: two sessions started
  • Next by thread: Serialize a EOGenericRecord error
  • Index(es):
    • Date
    • Thread