Exception with Category Data Entry form

Hi all.
I have DHIS2.0 database. It 's working fine with last DHIS2.0 version
but now it isn't .

java.util.NoSuchElementException
  java.util.AbstractList$Itr.next(AbstractList.java:350)
  org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
  org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
  org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
  org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
  org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
  org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
  $Proxy15.sortOptionCombos(Unknown Source)
  org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:597)
  com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)

···

================================
Tran Thanh Tri
  HISP Viet Nam
  Cell phone: +84903670967
  Website: http://tringuyenvn.com

Hi Tri,

Seems that you have a category without an option - can you check that?

Thank you
Abyot.

···

2009/10/26 Trí Trần Thanh tranthanhtri84@gmail.com

Hi all.

I have DHIS2.0 database. It 's working fine with last DHIS2.0 version

but now it isn’t .

java.util.NoSuchElementException

    java.util.AbstractList$Itr.next(AbstractList.java:350)

    org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)

    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    java.lang.reflect.Method.invoke(Method.java:597)

    org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

    org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

    org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)

    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

    $Proxy15.sortOptionCombos(Unknown Source)

    org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)

    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    java.lang.reflect.Method.invoke(Method.java:597)

    com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)

================================

Tran Thanh Tri

HISP Viet Nam

Cell phone: +84903670967

Website: http://tringuyenvn.com

================================


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Abyot.

I checked and saw. dataelementcategoryoption table have categoryid
column is null. What can i do ?

···

================================
Tran Thanh Tri
  HISP Viet Nam
  Cell phone: +84903670967
  Website: http://tringuyenvn.com

2009/10/26 Abyot Gizaw <abyota@gmail.com>:

Hi Tri,

Seems that you have a category without an option - can you check that?

Thank you
Abyot.

2009/10/26 Trí Trần Thanh <tranthanhtri84@gmail.com>

Hi all.
I have DHIS2.0 database. It 's working fine with last DHIS2.0 version
but now it isn't .

java.util.NoSuchElementException
java.util.AbstractList$Itr.next(AbstractList.java:350)

org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)

org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
$Proxy15.sortOptionCombos(Unknown Source)

org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)

com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)

================================
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

Hi Abyot, I still couldn’t see where I can create category options.

···

Thuy
HISP Vietnam
+84902079126

oh really? … but are you sure that your category has options?

If it was working before - like the categories and options all properly associate … then ask Lars to look for his DB upgrade query

···

On Mon, Oct 26, 2009 at 8:47 AM, Trí Trần Thanh tranthanhtri84@gmail.com wrote:

Hi Abyot.

I checked and saw. dataelementcategoryoption table have categoryid

column is null. What can i do ?

================================

Tran Thanh Tri

HISP Viet Nam

Cell phone: +84903670967

Website: http://tringuyenvn.com

================================

2009/10/26 Abyot Gizaw abyota@gmail.com:

Hi Tri,

Seems that you have a category without an option - can you check that?

Thank you

Abyot.

2009/10/26 Trí Trần Thanh tranthanhtri84@gmail.com

Hi all.

I have DHIS2.0 database. It 's working fine with last DHIS2.0 version

but now it isn’t .

java.util.NoSuchElementException

   java.util.AbstractList$Itr.next(AbstractList.java:350)

org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)

   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   java.lang.reflect.Method.invoke(Method.java:597)

org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

   $Proxy15.sortOptionCombos(Unknown Source)

org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)

   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   java.lang.reflect.Method.invoke(Method.java:597)

com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)

================================

Tran Thanh Tri

HISP Viet Nam

Cell phone: +84903670967

Website: http://tringuyenvn.com

================================


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Tri,

When you click add new category … you can create a category and its options on the same window

···

2009/10/26 Thuy Nguyen thuy.hispvietnam@gmail.com

Hi Abyot, I still couldn’t see where I can create category options.

Thuy
HISP Vietnam
+84902079126

oh really? ... but are you sure that your category has options?

I am sure.

If it was working before - like the categories and options all properly
associate ... then ask Lars to look for his DB upgrade query

Ok. I will ask Lars

···

2009/10/26 Abyot Gizaw <abyota@gmail.com>:

On Mon, Oct 26, 2009 at 8:47 AM, Trí Trần Thanh <tranthanhtri84@gmail.com> > wrote:

Hi Abyot.

I checked and saw. dataelementcategoryoption table have categoryid
column is null. What can i do ?

================================
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com

2009/10/26 Abyot Gizaw <abyota@gmail.com>:
> Hi Tri,
>
> Seems that you have a category without an option - can you check that?
>
> Thank you
> Abyot.
>
> 2009/10/26 Trí Trần Thanh <tranthanhtri84@gmail.com>
>>
>> Hi all.
>> I have DHIS2.0 database. It 's working fine with last DHIS2.0 version
>> but now it isn't .
>>
>> java.util.NoSuchElementException
>> java.util.AbstractList$Itr.next(AbstractList.java:350)
>>
>>
>> org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>>
>>
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>
>>
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>
>>
>> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>
>>
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>> $Proxy15.sortOptionCombos(Unknown Source)
>>
>>
>> org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>>
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
>>
>> ================================
>> Tran Thanh Tri
>> HISP Viet Nam
>> Cell phone: +84903670967
>> Website: http://tringuyenvn.com
>> ================================
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>
>

Hi
Yes, I can create new category and options. But with old category form
last version before have change category, it is not working.

···

================================
Tran Thanh Tri
  HISP Viet Nam
  Cell phone: +84903670967
  Website: http://tringuyenvn.com

2009/10/26 Trí Trần Thanh <tranthanhtri84@gmail.com>:

2009/10/26 Abyot Gizaw <abyota@gmail.com>:

oh really? ... but are you sure that your category has options?

I am sure.

If it was working before - like the categories and options all properly
associate ... then ask Lars to look for his DB upgrade query

Ok. I will ask Lars

On Mon, Oct 26, 2009 at 8:47 AM, Trí Trần Thanh <tranthanhtri84@gmail.com> >> wrote:

Hi Abyot.

I checked and saw. dataelementcategoryoption table have categoryid
column is null. What can i do ?

================================
Tran Thanh Tri
HISP Viet Nam
Cell phone: +84903670967
Website: http://tringuyenvn.com

2009/10/26 Abyot Gizaw <abyota@gmail.com>:
> Hi Tri,
>
> Seems that you have a category without an option - can you check that?
>
> Thank you
> Abyot.
>
> 2009/10/26 Trí Trần Thanh <tranthanhtri84@gmail.com>
>>
>> Hi all.
>> I have DHIS2.0 database. It 's working fine with last DHIS2.0 version
>> but now it isn't .
>>
>> java.util.NoSuchElementException
>> java.util.AbstractList$Itr.next(AbstractList.java:350)
>>
>>
>> org.hisp.dhis.dataelement.DefaultDataElementCategoryService.sortOptionCombos(DefaultDataElementCategoryService.java:544)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>>
>>
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>
>>
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>
>>
>> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
>>
>>
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>
>>
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>> $Proxy15.sortOptionCombos(Unknown Source)
>>
>>
>> org.hisp.dhis.de.action.multidimensional.FormAction.execute(FormAction.java:381)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>>
>>
>> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
>>
>> ================================
>> Tran Thanh Tri
>> HISP Viet Nam
>> Cell phone: +84903670967
>> Website: http://tringuyenvn.com
>> ================================
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>
>