Re: Wonderizing an existing app
John Pollard <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Well I was doing EOF activity in the Application constructor so I moved the code to didFinishLaunching(), though the intermittent was still there. The culprit is the starting up of a Session monitor in a separate thread. It just checks Application.application().activeSessionsCount() every so often. By starting this later in didFinishLaunching() instead of at the start of the method, the problem has gone away. I also changed the monitor class to do an initial sleep before it does its first check. I will report back if/when I have resolved the "Exception occurred while responding to client: java.lang.IllegalMonitorStateException" and other issues. Many thanks, John On 6 Mar 2013, at 21:53, Lon Varscsak <[email protected]> wrote: > Just a thought, particularly as it relates to intermittent > EOModelGroup problems, make sure you're not doing any EOF activity in > the Application's constructor. Override ERXApplications > didFinishLaunching() method and do any Application-level EOF work > there. > > -Lon > > On Wed, Mar 6, 2013 at 11:20 AM, John Pollard <[email protected]> wrote: >> Dear List, >> >> I have successfully Wonderized one application and am now trying my second, following instructions http://wiki.wocommunity.org/display/documentation/Integrate+Wonder+Into+an+Existing+Application >> >> Biggest issue, my browser shows "An Internal Server Error Has Occurred." which I suspect relates to the last shown log line: >> >> Mar 06 17:27:45 MPMall[9999] WARN NSLog - <WOWorkerThread id=15 socket=Socket[addr=/192.168.0.122,port=57316,localport=9999]> Exception occurred while responding to client: java.lang.IllegalMonitorStateException >> >> In Application.dispatchRequest(), the response (as returned from super.dispatchRequest()) seems to have been built fine. If I log out the response contentString() and view that page, it is exactly as expected so the guts of the work of generating the page seems ok. >> >> I do have a few other errors to overcome, including an intermittent one where the EOModelGroup is empty (never happens if I run in debug mode, some kind of thread timing issue?). >> Also the following which looks a bit ominous as it has an ERROR status. >> >> Mar 06 17:58:06 MPMall[9999] ERROR er.extensions.eof.ERXEC - Should pop, but ec not found in Vector! WorkerThread15, ec: er.extensions.eof.ERXEC@1ee29820, ecs:[] >> >> Thanks for any pointers. >> John >> ------------------------------------------------------------------------------ >> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester >> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the >> endpoint security space. For insight on selecting the right partner to >> tackle endpoint security challenges, access the full report. >> http://p.sf.net/sfu/symantec-dev2dev >> _______________________________________________ >> Wonder-disc mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev