I am running Pharo1.0 with Seaside 3.0a.
I am unable to locate options in the configuration of of the application for the exception filter.
I see that 'Exception Handler WAHtmlErrorHandler' followed by 'Override' button, nothing else.
The code issuing an error is accessible in http://www.pastebin.org/259965 (available for the next month)
The error issued and viewable in the browser is # "MessageNotUnderstood: receiver of "contents" is nil
Your request could not be completed. An exception occurred."
There is no indication in the IDE that error has occurred, and no link
Thank for help
Clicking on the Override button should give you a list of the available handlers. You need the WAWalkBackErrorHandler, if you want the debugger to fire in the image. Although the WAHtmlErrorHandler should also allow you to select debug from the generated html page.
At least this is how I have it working with SS 3.0a.
On Thu, May 20, 2010 at 21:42, fritz schenk intrader.intrader@gmail.comwrote:
I am running Pharo1.0 with Seaside 3.0a.
I am unable to locate options in the configuration of of the application for the exception filter.
I see that 'Exception Handler WAHtmlErrorHandler' followed by 'Override' button, nothing else.
The code issuing an error is accessible in http://www.pastebin.org/259965 (available for the next month)
The error issued and viewable in the browser is # "MessageNotUnderstood: receiver of "contents" is nil
Your request could not be completed. An exception occurred."
There is no indication in the IDE that error has occurred, and no link
Thank for help
seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Indeed, with the 'Override' button I can select WAWalkBackErrorHandler.
However, the browser now just says 'Loading' and there is no indication in the browser or the IDE. Anything else I need to look at?
Thanks
I apologise, the override correctly works - I just had a duplicate server
running.
Now I am able to see the error message in the IDE.
However, I am not able to see why the error occurs.
Thanks
Step through the call stack with the debugger, and find where the message #contents is sent. The receiver of that message is Nil. One you see it, it should be obvious what the problem is.
On Sat, May 22, 2010 at 23:20, fritz schenk intrader.intrader@gmail.comwrote:
I apologise, the override correctly works - I just had a duplicate server
running.
Now I am able to see the error message in the IDE.
However, I am not able to see why the error occurs.
Thanks
seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
John Toohey <jt <at> parspro.com> writes:
I apologise, I answered too soon thinking that I understood what you wrote.
Walking the stack I get to a message in aFactorialTableComponent >> addDecoration: aDecoration "Add aDecoration to the receivers decoration chain. Answer the added decoration." | previous current | previous := nil. current := self decoration. "etc.." I see that decoration returns nil and therefore "^ decoration contents" generates the error condition. I can't decipher what else is happening by going further back a couple of steps to the start message. The component was generated by following the example in http://homepage.mac.com/svc/ADayAtTheBeach/#seaside. The code I am executing is contained in the following file.
Contains the code of the component
Hi John, Looking at your code, I think you need to call super initialize in the initialize method of the FactorialComponent. Its the "usual suspect" when decorations throw errors. John
On Wed, Jul 7, 2010 at 8:15 PM, fritz schenk intrader@aol.com wrote:
John Toohey <jt <at> parspro.com> writes:
I apologise, I answered too soon thinking that I understood what you wrote.
Walking the stack I get to a message in aFactorialTableComponent >> addDecoration: aDecoration "Add aDecoration to the receivers decoration chain. Answer the added decoration."
| previous current | previous := nil. current := self decoration.
"etc.." I see that decoration returns nil and therefore "^ decoration contents" generates the error condition. I can't decipher what else is happening by going further back a couple of steps to the start message. The component was generated by following the example in http://homepage.mac.com/svc/ADayAtTheBeach/#seaside. The code I am executing is contained in the following file.
Contains the code of the component
seaside mailing list seaside@lists.squeakfoundation.org http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
John, indeed that was the problem.
I wish that it would have been more obvious that this was the problem.
There was a further problems with the code: 1. number was not spelled correctly. 2. the accessors for number need to be defined. I use the class re-factoring tool create the accessors.
Thanks for your help.
Hi Fritz,
John, indeed that was the problem.
I wish that it would have been more obvious that this was the problem.
There was a further problems with the code:
- number was not spelled correctly.
- the accessors for number need to be defined. I use the class
re-factoring tool create the accessors.
if your debugger wasn't catching the exception it could be that you were
suffering from a configuration bug caused by the order in which loaded classes are initialized. The Seaside3.0RC image ( http://www.seaside.st/distributions/Seaside-3.0rc.app.zip) should be configured sensibly, but you find exceptions in Seaside apps in your image aren't caught by the debugger you might find the remedies listed here useful: http://lists.squeakfoundation.org/pipermail/seaside/2010-May/023557.html
Nick
seaside@lists.squeakfoundation.org