Replacement for NSInvalidArgumentException (WAS: "Your request produced an error")
Replacement for NSInvalidArgumentException (WAS: "Your request produced an error")
- Subject: Replacement for NSInvalidArgumentException (WAS: "Your request produced an error")
- From: "Erlandsson Martin" <email@hidden>
- Date: Tue, 18 Nov 2003 17:50:24 +0100
- Thread-topic: Replacement for NSInvalidArgumentException (WAS: "Your request produced an error")
Thanks for all comments on the "Your request produced an error" issue.
I have tried all your suggestions, but I have still not found a full-proof way to find out what the underlying error is when the message in the subject appears. However, I have found one cause:
I guess most of you knew that methods that are called from a wod-file must be public in WO5. This passed me by completely. Anyway, setting such a method to protected results in "Your request produced an error". No other clues given.
In WO4.5, changing a ".wod method" from protected to private triggers an NSInvalidArgumentException. What has happened to this exception n WO5? Is there a replacement? There must be some way of being notified of this kind of errors...
I should mention that I run my WO5 applications as servlets under Tomcat. On Win2000. Developing in JBuilder.
Thanks,
/Martin
> -----Original Message-----
> From: B. Olav Anderson [mailto:email@hidden]
> Sent: den 13 november 2003 18:44
> To: email@hidden; email@hidden
> Subject: Re: "Your request produced an error"
>
> Yes, that is what I finally did too.
>
> I hope Apple fixes this problem.
>
> Best regards,
>
> Olav
>
> On Thursday, November 13, 2003, at 08:41 AM, Lenny Marks wrote:
>
> >
> > I ran into similar problems with errors being throw in direct actions or
> > in late phases of the request/response loop. For us, it was extremely
> > serious because it was leading to complete application deadlock.
> >
> > Our solution was to override Application.dispatchRequest with one that
> > uses a try/finally block. You may want to try catching any exceptions
> > there.
> >
> > -lenny
> >
> > see:
> > http://www.omnigroup.com/mailman/archive/webobjects-dev/2003-November/
> > 037140.html
> >
> > -lenny
> >
> > On Thu, 13 Nov 2003, Erlandsson Martin wrote:
> >
> >>
> >> Thanks, but I don't understand what you mean. Did you solve the
> >> problem?
> >> Any one else knows something about this strange error? I'm really
> >> stuck...
> >>
> >> Thanks,
> >>
> >> /Martin
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Olav Anderson [mailto:email@hidden]
> >>> Sent: den 12 november 2003 20:59
> >>> To: Erlandsson Martin
> >>> Cc: email@hidden; webobjects-
> >>> email@hidden
> >>> Subject: Re: "Your request produced an error"
> >>>
> >>>
> >>> Erlandsson,
> >>>
> >>> I wrote about this yeaterday.
> >>>
> >>> I found the problem manifested only when the app is deployed in
> >>> production in conjunction with using direct actions.
> >>>
> >>> The handleException() does not get called but I still get to see the
> >>> trace in the log.
> >>>
> >>> I'm on 5.2.1 on 10.2.8.
> >>>
> >>> Other sites listed in my previous email about this subject also
> >>> exhibit the same behavior.
> >>>
> >>> Best regards,
> >>>
> >>> Olav
> >>>
> >>>
> >>> On Wednesday, November 12, 2003, at 08:21AM, Erlandsson Martin
> >>> <email@hidden> wrote:
> >>>
> >>>> Hi List.
> >>>>
> >>>> I am converting an old WO 4.5.1 app to 5.2.2. I keep getting "Your
> >>>> request produced an error" in the browser, and nothing more. Nothing
> >>>> in
> >>>> the logs, and nothing on stdout.
> >>>>
> >>>> What should I do to get more information about what is happening??
> >>>> Some
> >>>> other posts I found in this issue have given me some ideas, but none
> >>>> has
> >>>> worked so far. I have tried the following:
> >>>>
> >>>> - overrode handleActionRequestError in my WOApplication subclass,
> >>>> printing the details of the handled exception.
> >>>> - overrode handleException in my WOApplication subclass, printing the
> >>>> details of the handled exception.
> >>>> - added debug statements at the end of all action methods. (one post
> >>>> indicated that the message is returned when an action method returns
> >>>> null)
> >>>>
> >>>> There must be some way of getting more error detail... Thanks in
> >>>> advance
> >>>> for any comments!
> >>>>
> >>>> /Martin
> >>>> _______________________________________________
> >>>> 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.
> >>>>
> >>>> A
> >> _______________________________________________
> >> WebObjects-dev mailing list
> >> email@hidden
> >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
> _______________________________________________
> 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.A
_______________________________________________
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.