← Back to team overview

dhis2-devs team mailing list archive

Re: Error in org.hisp.dhis.commo ns.action.GetDataElementsAction

 

Hi Thuy,

this a known bug i Ognl, which unnecessarily raises the log level from debug
to warn in situations where you have a property on the stack but no
corresponding set-method exists on any action class. Struts is aware of this
but say they cannot upgrade to a newer version of Ognl as it entailed some
compatibility issues. So my point is that you can safely ignore it (even if
it is annoying).


Lars



On Fri, Sep 25, 2009 at 11:03 AM, Thuy Nguyen <thuy.hispvietnam@xxxxxxxxx>wrote:

> Hi,
> I meet this error recently. But I don't know why and how to solve. Please
> help me.
>
>
>
> * INFO  15:21:08,109 Deleted objects associatied with object of type Period
> (Def
> aultDeletionManager.java [http-8080-2])
> * INFO  15:21:08,125 Deleted period with id: 6984
> (PerformMaintenanceAction.java
>  [http-8080-2])
> * INFO  15:21:08,234 Deleted objects associatied with object of type Period
> (Def
> aultDeletionManager.java [http-8080-2])
> * INFO  15:21:08,234 Deleted period with id: 7444
> (PerformMaintenanceAction.java
>  [http-8080-2])
> * INFO  15:21:08,250 Period pruning done (PerformMaintenanceAction.java
> [http-80
> 80-2])
> * INFO  15:30:59,968 datasets: 0:00:00.437 ms (TimeUtils.java
> [http-8080-6])
> * INFO  15:49:08,687 datasets: 0:00:00.641 ms (TimeUtils.java
> [http-8080-6])
> * INFO  15:52:22,890 datasets: 0:00:00.515 ms (TimeUtils.java
> [http-8080-4])
> selected orgunit : [An Giang]
> selected orgunit : [An Giang]
> * WARN  15:56:39,781 Error setting value (CommonsLogger.java [http-8080-6])
> ognl.MethodFailedException: Method "setId" failed for object
> org.hisp.dhis.commo
> ns.action.GetDataElementsAction@13ed91b [java.lang.NoSuchMethodException:
> setId(
> [Ljava.lang.String;)]
>         at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823)
>         at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964)
>         at
> ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccesso
> r.java:75)
>         at
> ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:1
> 31)
>         at
> com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(Obje
> ctAccessor.java:28)
>         at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
>         at
> com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setPropert
> y(CompoundRootAccessor.java:50)
>         at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656)
>         at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
>         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
>         at ognl.SimpleNode.setValue(SimpleNode.java:246)
>         at ognl.Ognl.setValue(Ognl.java:476)
>         at
> com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192)
>         at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.j
> ava:155)
>         at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.j
> ava:143)
>         at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParamete
> rs(ParametersInterceptor.java:273)
>         at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> (ParametersInterceptor.java:187)
>         at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:87)
>         at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionI
> nvocation.java:236)
>         at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.inter
> cept(StaticParametersInterceptor.java:148)
>         at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionI
> nvocation.java:236)
>         at
> org.hisp.dhis.interceptor.ExceptionInterceptor.intercept(ExceptionInt
> erceptor.java:89)
>         at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionI
> nvocation.java:236)
>         at
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.j
> ava:52)
>         at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.jav
>
> --
> --
> Thuy
> HISP Vietnam
> +84902079126
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References