Re: OGNL exceptions are swallowed by struts2

2009-01-10 Thread Musachy Barroso
I have a patch that will throw a runtime exception when either(iff 'struts.el.throwExceptionOnFailure' is true): * Property is not found * Method is not found * An exception is thrown from the expression evaluation It seems to work fairly well, but I am sure it will need more tweaking and lots of

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Musachy Barroso
The OgnlValueStack swallows the exceptions. Always rethrowing the exception is not an option, as that it not wanted in many places. The challenge is to do some refactoring, so the exceptions are thrown only when OgnlValueStack:find(...) is called from the view. I will play around with it, see if I

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread hernan gonzalez
> > I agree, Struts2 sucks big time in > this regard while being an excellent framework otherwise. > > Robert Judging from my (not very long) experience with Struts2, I agree wholeheartedly with that. It really seems badly broken that the framework (OGNL, in this case) swallows exceptions (even i

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Andy Sykes
If you're running with log4j in your app, set the logging priority on the root logger to debug. It spews a lot of messages, and the type converter messages are there - I was using this facility the other day when trying to upgrade an existing app from 2.0.x to 2.1.2. Andy. On 9 Jan 2009, a

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Robert Graf-Waczenski
Hi! To my knowledge, you have to enable devMode. This gives you a lot of debugging output and exception stack traces on the console. The drawback is that it makes your application rather sluggish. Yes, the article you quote is well known. I agree, Struts2 sucks big time in this regard while

OGNL exceptions are swallowed by struts2

2009-01-09 Thread Vincent Lin
Hi, Is there anyway to get better error message there's an error occurring in ognl? Everytime there's an exception in ognl it's swallowed. And I ran into some "No Result Found for XxxAction" error. It's extremely hard to debug, because there's no any useful information in it. All of them seem

Re: ognl exceptions

2008-01-03 Thread Laurie Harper
Dave Newton wrote: --- Brian Relph <[EMAIL PROTECTED]> wrote: Although this would work for me personally during development, i am not the first line of tech support... So when something breaks, and tech support turns logging up to debug, i would like them not to have a bunch of extra exceptions

Re: ognl exceptions

2008-01-03 Thread Dave Newton
--- Brian Relph <[EMAIL PROTECTED]> wrote: > Although this would work for me personally during development, i am not the > first line of tech support... So when something breaks, and tech support > turns logging up to debug, i would like them not to have a bunch of extra > exceptions in their logs.

Re: ognl exceptions

2008-01-03 Thread Brian Relph
Although this would work for me personally during development, i am not the first line of tech support... So when something breaks, and tech support turns logging up to debug, i would like them not to have a bunch of extra exceptions in their logs. As well, i do not expect them to have any knowled

Re: ognl exceptions

2008-01-03 Thread Dave Newton
Turn down logging on the stuff you want to ignore. --- Brian Relph <[EMAIL PROTECTED]> wrote: > When i turn logging up to debug, i get TONS of the same stack trace when > using my struts2 app ... > > Can i get rid of these somehow? > > [1/3/08 13:08:13:106 CST] 004c SystemOut O [WebCont

ognl exceptions

2008-01-03 Thread Brian Relph
When i turn logging up to debug, i get TONS of the same stack trace when using my struts2 app ... Can i get rid of these somehow? [1/3/08 13:08:13:106 CST] 004c SystemOut O [WebContainer : 1] DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering nullPropertyValue [target=