Re: IllegalStateException in _beginTransaction()
Re: IllegalStateException in _beginTransaction()
- Subject: Re: IllegalStateException in _beginTransaction()
- From: Chuck Hill <email@hidden>
- Date: Mon, 28 Feb 2011 21:02:15 -0800
Hi Paul,
On Feb 28, 2011, at 8:51 PM, Paul Hoadley wrote:
> Hi Chuck,
>
> On 01/03/2011, at 4:38 AM, Chuck Hill wrote:
>
>> It is possible that some prior transaction had an error and left the DBC transaction open?
>
> Actually, yes, I think I can see a couple of candidates. A user can initiate a long-running background task from the page in question, which does touch EOF to create some data for download relating to a chosen EO. (I'm reasonably sure those background tasks are well-behaved, in that they use their own ERXEC to do their work, and the EO is passed in using its EOGlobalID.)
Do you create an EOF stack for these long running tasks? I would suggest doing that.
> 1. Just prior to the IllegalStateException, there's an "Exception while sending response: java.net.SocketException: Broken pipe". I know users get bored and navigate away before the background task completes. Would this cause any problems?
I don't think so. This should not affect what work EOF does.
> 2. I've been tuning the RAM available to the instance, and sometimes it runs short. Just after the IllegalStateException (which presumably rules it out as a cause) there's an OutOfMemoryError when the JVM ran out of heap space.
>
> Are either of these potential causes?
Yes! Run out of memory and all bets are off. All kinds of things can happen in this case, the JVM is often insane. Likely the IllegalStateException resulted from running out of memory.
Where possible (sometimes it can't recover enough memory to even properly throw the exception) I try to catch this in the Application's handleException and then System.getRuntime.exit(1)
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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