Hello all... I've got a strange situation that's been bugging me for a while. First, some quick background:
I wrote an application about two years ago that was based on a proprietary framework that has now been converted to Struts. One of the things this proprietary framework was missing was the concept of ActionForms. Instead, when you hit your controller classes, you dealt with the Request object directly to get your parameters. Since as usual I had to get the conversion done in far less time than it should have been done in, I basically would up not really using ActionForms except to transfer data back to the view. In other words, no validation is don in the ActionForms, and they are not auto-populateed by Struts. My Actions still deal directly with Request, I just populate the ActionForm on the way out to the JSP (I intended to use the ActionForms more "properly" later, but that time has never presented itself). So, now I come to the issue... It seems that every now and again (average of about 25 times per 50,000 transaction) I get NPE's in my Actions and they are always because some value that was expected to be in Request is null. Now, the front-end does a bunch of validation (JavaScript) and I've gone over it a ton of times and there doesn't seem to be any way a user could submit a form without filling in required elements (and most of them should be blanks anyway, not nulls). I thought about maybe they were using the Back button in some crazy way, but the app opens in a new chromless window, so they would have to be using a keyboard shortcut. I've tried every crazy thing I could think of to break it, but it never seems to break. I have NEVER ONCE replicated one of these problems. So, my question comes down to this... has anyone ever seen a situation where a Struts-based app running on Tomcat (5.0.25 I believe) would "lose" request data, either as a fault of Struts or of Tomcat? Could it be some Tomcat tuning issue? (I will ask this same question on the Tomcat list, but I wanted to start here first). Any thoughts would be appreciated. Fortunately no one is complaining because the app is generally quite stable, but these once-in-a-while exceptions are pissing me off more than anything else!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]