You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Alberto A. Flores" <aa...@gmail.com> on 2007/12/11 20:51:49 UTC
development.mode = true
Folks,
When I set the property "development.mode" to "true" I received a lot of
useful information in case of errors, however i also receive this
additional Error in my log (when submitting a form):
ERROR ParametersInterceptor [http-8080-Processor24] 11 Dec 2007
14:20:18: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting '__checkbox_dna' on 'class foo.bar.MyAction: Error
setting expression '__checkbox_dna' with value [Ljava.lang.String;@dc91e2'
Of course this appears for *every* property in my JSP. When I set the
property "development.mode" to "false", this ERROR log disappears. In
either case, I properly get my model object updated as I expected (with
the parameters from the HTML form). IMHO, it seems like the log level in
the ParametersInterceptor class has the wrong log level but I wanted to
check if anyone knows anything about this? Am I missing something I
should be concerned about?
As a way of reference, my action mapping containts:
<interceptor-ref name="paramsPrepareParamsStack"/>
and my action extends ActionSupport, implements ModelDriven, Preparable
and ServletRequestAware. The prepare() method instantiates a new
instance of the model object, so I expect this model to be mapped to the
properties in the JSP page (using struts 2.x tags) and like I said
earlier, my model seems to have all needed properties from the request.
Any feedback will be greatly appreciated.
Thanks!
--
Alberto A. Flores
http://www.linkedin.com/in/aflores
Re: development.mode = true
Posted by "Alberto A. Flores" <aa...@gmail.com>.
Thanks!
Mike Jennings wrote:
> You have a form value on the page called _checkbox_dna that is being set
> to a string value, but there is no getter or setter in your action to
> map this value to. It is nothing to worry about right now.
>
> Alberto A. Flores wrote:
>> Folks,
>>
>> When I set the property "development.mode" to "true" I received a lot
>> of useful information in case of errors, however i also receive this
>> additional Error in my log (when submitting a form):
>>
>> ERROR ParametersInterceptor [http-8080-Processor24] 11 Dec 2007
>> 14:20:18: ParametersInterceptor - [setParameters]: Unexpected
>> Exception caught setting '__checkbox_dna' on 'class foo.bar.MyAction:
>> Error setting expression '__checkbox_dna' with value
>> [Ljava.lang.String;@dc91e2'
>>
>> Of course this appears for *every* property in my JSP. When I set the
>> property "development.mode" to "false", this ERROR log disappears. In
>> either case, I properly get my model object updated as I expected
>> (with the parameters from the HTML form). IMHO, it seems like the log
>> level in the ParametersInterceptor class has the wrong log level but I
>> wanted to check if anyone knows anything about this? Am I missing
>> something I should be concerned about?
>>
>> As a way of reference, my action mapping containts:
>>
>> <interceptor-ref name="paramsPrepareParamsStack"/>
>>
>> and my action extends ActionSupport, implements ModelDriven,
>> Preparable and ServletRequestAware. The prepare() method instantiates
>> a new instance of the model object, so I expect this model to be
>> mapped to the properties in the JSP page (using struts 2.x tags) and
>> like I said earlier, my model seems to have all needed properties from
>> the request.
>>
>> Any feedback will be greatly appreciated.
>>
>> Thanks!
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Alberto A. Flores
http://www.linkedin.com/in/aflores
Re: development.mode = true
Posted by Mike Jennings <gj...@gmjjavadesigns.com>.
You have a form value on the page called _checkbox_dna that is being set
to a string value, but there is no getter or setter in your action to
map this value to. It is nothing to worry about right now.
Alberto A. Flores wrote:
> Folks,
>
> When I set the property "development.mode" to "true" I received a lot of
> useful information in case of errors, however i also receive this
> additional Error in my log (when submitting a form):
>
> ERROR ParametersInterceptor [http-8080-Processor24] 11 Dec 2007
> 14:20:18: ParametersInterceptor - [setParameters]: Unexpected Exception
> caught setting '__checkbox_dna' on 'class foo.bar.MyAction: Error
> setting expression '__checkbox_dna' with value [Ljava.lang.String;@dc91e2'
>
> Of course this appears for *every* property in my JSP. When I set the
> property "development.mode" to "false", this ERROR log disappears. In
> either case, I properly get my model object updated as I expected (with
> the parameters from the HTML form). IMHO, it seems like the log level in
> the ParametersInterceptor class has the wrong log level but I wanted to
> check if anyone knows anything about this? Am I missing something I
> should be concerned about?
>
> As a way of reference, my action mapping containts:
>
> <interceptor-ref name="paramsPrepareParamsStack"/>
>
> and my action extends ActionSupport, implements ModelDriven, Preparable
> and ServletRequestAware. The prepare() method instantiates a new
> instance of the model object, so I expect this model to be mapped to the
> properties in the JSP page (using struts 2.x tags) and like I said
> earlier, my model seems to have all needed properties from the request.
>
> Any feedback will be greatly appreciated.
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org