Metadata export: programs infinite recursion

Hello all,

I´m getting an exception when exporting metadata.

Infinite recursion (StackOverflowError) (through reference chain: org.hisp.dhis.program.Program_$$javassist_53[“relatedProgram”]->org.hisp.dhis.program.Program$$_javassist_53[“relatedProgram”]-> … and so on…

I have two programs and each one is related program of the other… Is that forbidden?

Also I tried to modify the program to remove the “program relation” but changes are not saved. It is saved as a new version but
“Program for new relative to be enrolled in” has the same value.

I see something similar was posted in novemember last year … any clue on how was it solved??
Screenshot of program config attached.

Version/revision info:
Version:
2.18
Build revision:
18157

Thanks!

Hi Marta

Wait about 1 hr, then you can download a new version of 2.18 that should have fixed the problem.

···

On Mon, Feb 16, 2015 at 5:51 PM, Marta Vila martavila@gmail.com wrote:

Hello all,

I´m getting an exception when exporting metadata.

Infinite recursion (StackOverflowError) (through reference chain: org.hisp.dhis.program.Program_$$javassist_53[“relatedProgram”]->org.hisp.dhis.program.Program$$_javassist_53[“relatedProgram”]-> … and so on…

I have two programs and each one is related program of the other… Is that forbidden?

Also I tried to modify the program to remove the “program relation” but changes are not saved. It is saved as a new version but
“Program for new relative to be enrolled in” has the same value.

I see something similar was posted in novemember last year … any clue on how was it solved??
Screenshot of program config attached.

Version/revision info:
Version:
2.18
Build revision:
18157

Thanks!


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


Morten

Hi Morten,

thanks a lot. Meta-data export works perfectly fine now with this program configuration.

Just FYI -
editing data from the “Shortcut link to add a relative” section in a program does not update the values for the fields:

Relationship (e.g. Mother-Child)
Who is the new relative to the existing tracked entity instance?
Program for new relative to be enrolled in

Only Shortcut link label (e.g. Add child) is updated. The program is stored as a new version.

thanks again!

···

On 19 February 2015 at 08:30, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Marta

Wait about 1 hr, then you can download a new version of 2.18 that should have fixed the problem.


Morten

On Mon, Feb 16, 2015 at 5:51 PM, Marta Vila martavila@gmail.com wrote:

Hello all,

I´m getting an exception when exporting metadata.

Infinite recursion (StackOverflowError) (through reference chain: org.hisp.dhis.program.Program_$$javassist_53[“relatedProgram”]->org.hisp.dhis.program.Program$$_javassist_53[“relatedProgram”]-> … and so on…

I have two programs and each one is related program of the other… Is that forbidden?

Also I tried to modify the program to remove the “program relation” but changes are not saved. It is saved as a new version but
“Program for new relative to be enrolled in” has the same value.

I see something similar was posted in novemember last year … any clue on how was it solved??
Screenshot of program config attached.

Version/revision info:
Version:
2.18
Build revision:
18157

Thanks!


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

A post was merged into an existing topic: Exception with Meta Data Export for Programs