← Back to team overview

dhis2-devs team mailing list archive

Re: update tracker profile form

 

Seems attribute uniqueness per program scope is defined but program is not
passed.

This is a known problem. The solution is to use system / orgunit scope than
program scope.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Fri, Nov 4, 2016 at 9:39 AM, Lars Helge Øverland <lars@xxxxxxxxx> wrote:

> This seems to be the relevant part of the tomcat log. Abyot can you see
> what the problem is?
>
> ---
>
> 04-Nov-2016 10:57:08.013 SEVERE [http-nio-8080-exec-4]
> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
> for servlet [webapi] in context with path [/2.21-raw] threw exception
> [Request processing failed; nested exception is java.lang.IllegalArgumentException:
> program is required for program scope] with root cause
>  java.lang.IllegalArgumentException: program is required for program scope
> at org.springframework.util.Assert.notNull(Assert.java:112)
> at org.hisp.dhis.trackedentity.DefaultTrackedEntityAttributeS
> ervice.validateScope(DefaultTrackedEntityAttributeService.java:221)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
> (AopUtils.java:317)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157)
> at org.springframework.transaction.interceptor.TransactionInterceptor$1.
> proceedWithInvocation(TransactionInterceptor.java:99)
> at org.springframework.transaction.interceptor.TransactionAspectSupport.
> invokeWithinTransaction(TransactionAspectSupport.java:281)
> at org.springframework.transaction.interceptor.
> TransactionInterceptor.invoke(TransactionInterceptor.java:96)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(
> ExposeInvocationInterceptor.java:92)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.JdkDynamicAopProxy.
> invoke(JdkDynamicAopProxy.java:207)
> at com.sun.proxy.$Proxy57.validateScope(Unknown Source)
> at org.hisp.dhis.dxf2.events.trackedentity.AbstractTrackedEntityInstanceS
> ervice.checkScope(AbstractTrackedEntityInstanceService.java:553)
> at org.hisp.dhis.dxf2.events.trackedentity.AbstractTrackedEntityInstanceS
> ervice.checkAttributes(AbstractTrackedEntityInstanceService.java:582)
> at org.hisp.dhis.dxf2.events.trackedentity.AbstractTrackedEntityInstanceS
> ervice.updateTrackedEntityInstance(AbstractTrackedEntityInstanceS
> ervice.java:327)
> at org.hisp.dhis.dxf2.events.trackedentity.JacksonTrackedEntityInstanceSe
> rvice.updateTrackedEntityInstanceJson(JacksonTrackedEntityInstanceSe
> rvice.java:198)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
> (AopUtils.java:317)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157)
> at org.springframework.transaction.interceptor.TransactionInterceptor$1.
> proceedWithInvocation(TransactionInterceptor.java:99)
> at org.springframework.transaction.interceptor.TransactionAspectSupport.
> invokeWithinTransaction(TransactionAspectSupport.java:281)
> at org.springframework.transaction.interceptor.
> TransactionInterceptor.invoke(TransactionInterceptor.java:96)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.JdkDynamicAopProxy.
> invoke(JdkDynamicAopProxy.java:207)
> at com.sun.proxy.$Proxy199.updateTrackedEntityInstanceJson(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
> (AopUtils.java:317)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157)
> at org.springframework.aop.support.DelegatingIntroductionIntercep
> tor.doProceed(DelegatingIntroductionInterceptor.java:133)
> at org.springframework.aop.support.DelegatingIntroductionIntercep
> tor.invoke(DelegatingIntroductionInterceptor.java:121)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.JdkDynamicAopProxy.
> invoke(JdkDynamicAopProxy.java:207)
> at com.sun.proxy.$Proxy161.updateTrackedEntityInstanceJson(Unknown Source)
> at org.hisp.dhis.webapi.controller.event.TrackedEntityInstanceController.
> updateTrackedEntityInstanceJson(TrackedEntityInstanceController.java:409)
> at org.hisp.dhis.webapi.controller.event.TrackedEntityInstanceControlle
> r$$FastClassBySpringCGLIB$$cfbc2606.invoke(<generated>)
> at org.springframework.cglib.proxy.MethodProxy.invoke(
> MethodProxy.java:204)
> at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.
> invokeJoinpoint(CglibAopProxy.java:717)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157)
> at org.springframework.security.access.intercept.aopalliance.
> MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179)
> at org.springframework.aop.framework.CglibAopProxy$
> DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
> at org.hisp.dhis.webapi.controller.event.TrackedEntityInstanceControlle
> r$$EnhancerBySpringCGLIB$$34dcf778.updateTrackedEntityInstanceJso
> n(<generated>)
>
> ----
>
>
>
>
> On Fri, Nov 4, 2016 at 9:11 AM, Lars Helge Øverland <lars@xxxxxxxxx>
> wrote:
>
>> Hi Channara,
>>
>> are you able to share the relevant part of the Tomcat log as well?
>>
>> regards,
>>
>> Lars
>>
>>
>> On Fri, Nov 4, 2016 at 5:03 AM, channara rin <rin.channara@xxxxxxxxx>
>> wrote:
>>
>>> dear all,
>>> when i want to update some information of tracker profile. i got this
>>> below error...
>>> [image: Inline image 1]
>>>
>>> how to fix this problem
>>>
>>> best regards,
>>> channara
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> lars@xxxxxxxxx
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> lars@xxxxxxxxx
> http://www.dhis2.org <https://www.dhis2.org/>
>
>

PNG image


References