• 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
StringIndexOutOfBoundsException and cookies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

StringIndexOutOfBoundsException and cookies


  • Subject: StringIndexOutOfBoundsException and cookies
  • From: Kaj Hejer <email@hidden>
  • Date: Mon, 19 Jan 2004 21:59:56 +0100

Hi!


We have an application we just upgraded from WO4.5.1 to WO5.2.2. After the upgrade we get some exceptions like


[2004-01-19 16:53:38 MET] <WorkerThread5> <WOWorkerThread id=5 socket=Socket[addr=/xxx.xxx.xxx.xxx,port=52975,localport=xxxx]> Exception occurred while responding to client: com.webobjects.foundation.NSForwardException [java.lang.StringIndexOutOfBoundsException] null

for some users. We have tracked this down to beeing related to problems with cookies for the users getting this exception

After implementing the following in Application.java

public NSMutableDictionary handleMalformedCookieString(
   RuntimeException anException,
   String cookieString,
   NSMutableDictionary aReturnDict) {
     System.err.println(
       "Application.handleMalformedCookieString:anException: " + anException);
     System.err.println(
      "Application.handleMalformedCookieString:cookieString: " + cookieString);
     return super.handleMalformedCookieString(
       anException, cookieString, aReturnDict);
    }


We get some more info:

Application.handleMalformedCookieString:cookieString: edmode=1; tittel=Nye bxker i sosiologi juni 2003; tema=bibliotek; enhet.id=humsam; spraak=no-bok; redaksjon.navn=Kaj Hejer; redaksjon.epost=email@hidden; redaksjon.vev=

[2004-01-19 16:53:38 MET] <WorkerThread5> <WOWorkerThread id=5 socket=Socket[addr=/xxx.xxx.xxx.xxx,port=52975,localport=xxxx]> Exception occurred while responding to client: com.webobjects.foundation.NSForwardException [java.lang.StringIndexOutOfBoundsException] null


This application are running on WO5.2.2 on solaris.

Any ideas on how to solve this StringIndexOutOfBoundsException?



-Kaj :)
_______________________________________________
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: StringIndexOutOfBoundsException and cookies
      • From: arturo <email@hidden>
  • Prev by Date: Newbiw question: adding EOModel to project
  • Next by Date: Re: Newbiw question: adding EOModel to project
  • Previous by thread: Reinstalling WO in Windows (was RE: Newbie question: adding EOModel to project)
  • Next by thread: Re: StringIndexOutOfBoundsException and cookies
  • Index(es):
    • Date
    • Thread