Tracker capture. Error when writing a note.

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.

  2. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).

image

  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

image

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

image

image

···

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Lars!

I used “TB Program” for my test. But I think it is true for all programs, not related to a specific one.

Regards!

Alejandro

image

image

···

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi,

Yes, it affects all programs and I am looking into it.

image

image

···

On Fri, Dec 16, 2016 at 9:31 AM, Alejandro acasrod@gmail.com wrote:

Hi Lars!

I used “TB Program” for my test. But I think it is true for all programs, not related to a specific one.

Regards!

Alejandro


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

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi,

Ok, thank you Abyot. Do you want me to report this in JIRA as a bug?

Regards!

Alejandro

image

image

···

On Fri, Dec 16, 2016 at 9:32 AM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Yes, it affects all programs and I am looking into it.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Fri, Dec 16, 2016 at 9:31 AM, Alejandro acasrod@gmail.com wrote:

Hi Lars!

I used “TB Program” for my test. But I think it is true for all programs, not related to a specific one.

Regards!

Alejandro


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

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Alejandro,

This is now fixed in 2.25 and master.

image

image

···

On Fri, Dec 16, 2016 at 9:59 AM, Alejandro acasrod@gmail.com wrote:

Hi,

Ok, thank you Abyot. Do you want me to report this in JIRA as a bug?

Regards!

Alejandro

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Fri, Dec 16, 2016 at 9:32 AM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Yes, it affects all programs and I am looking into it.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Fri, Dec 16, 2016 at 9:31 AM, Alejandro acasrod@gmail.com wrote:

Hi Lars!

I used “TB Program” for my test. But I think it is true for all programs, not related to a specific one.

Regards!

Alejandro


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

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Abyot!

Thank you very much! I am going to test it now!

Regards!

Alejandro

image

image

···

On Wed, Dec 21, 2016 at 3:01 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi Alejandro,

This is now fixed in 2.25 and master.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Fri, Dec 16, 2016 at 9:59 AM, Alejandro acasrod@gmail.com wrote:

Hi,

Ok, thank you Abyot. Do you want me to report this in JIRA as a bug?

Regards!

Alejandro

On Fri, Dec 16, 2016 at 9:32 AM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Yes, it affects all programs and I am looking into it.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Fri, Dec 16, 2016 at 9:31 AM, Alejandro acasrod@gmail.com wrote:

Hi Lars!

I used “TB Program” for my test. But I think it is true for all programs, not related to a specific one.

Regards!

Alejandro


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

On Thu, Dec 15, 2016 at 8:18 PM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Alejandro,

thanks for reporting. Which program did you select for this to happen?

regards,

Lars

On Thu, Dec 15, 2016 at 4:22 PM, Alejandro acasrod@gmail.com wrote:

Hello devs!

We just noticed an error in Tracker Capture App related to Notes (DHIS2 version 2.25). It can be reproduced in the demo server by doing the following steps:

  1. Register a new patient in one of the individual programs, in instance, TB Program.
  1. Add a note, such as in the image below (a dashboard’s note, not the ones you can add associated to the form).
  1. Press the button Back. Look for the same patient and enter again in the dashboard of the program. Any tentative to complete the program instance raises the following error:

Unrecognized field “heading” (class org.hisp.dhis.dxf2.events.event.Note), not marked as ignorable (3 known properties: “value”, “storedBy”, “storedDate”]) at [Source: java.io.BufferedInputStream@7c7adc35; line: 1, column: 420] (through reference chain: org.hisp.dhis.dxf2.events.enrollment.Enrollment[“notes”]->java.util.ArrayList[0]->org.hisp.dhis.dxf2.events.event.Note[“heading”])

Note: This does not happen if the program instance is completed just after adding the note (without pressing the back button). But in this case, if you enter again in the patient dashboard and you reopen the program instance, you will get the same error, preventing any modification.

This is normal behavior, since patient data is normally registered at different times in tracker, and the note can be added at any point in the process.

Can you have a look at that?

Many thanks in advance for your help!

Alejandro


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org