← Back to team overview

dhis2-devs team mailing list archive

[Bug 1591697] Re: Feedback and Sending Messages via api/messageConversations fails with Null Pointer

 

Here is a quick fix. There is need for an SMS gateway to be set for all the conditions for sending messages/SMS to be true.
Just go to Mobile Configuration and add a fake generic http gateway (does not need to be real).
See line 47 of this file:
http://bazaar.launchpad.net/~dhis2-devs-core/dhis2/2.23/view/head:/dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/MessageSender.java

That is it.

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1591697

Title:
  Feedback and Sending Messages via api/messageConversations fails with
  Null Pointer

Status in DHIS:
  New

Bug description:
  Sending Feedback to Usergroups and Sending Messages via
  api/messageConversations fails with Null Pointer exception.

  For feedback, you can send messages/feedback to some user groups
  successfully but as you add more users to the user group, it then
  fails with the Null Pointer exception.

  For sending messages via the api/messageConversations fails for some user groups and completely for organisation Units.
  This is the json message template that is failing
  {
    "subject": "Death Notification",
    "text": "A patient has died",
    "users": [
      {
        "id": "pojd66hgayy"
      }
    ],
    "userGroups": [
      {
        "id": "Ynyw1MPeIJV"
      }
    ],
    "organisationUnits": [
      {
        "id": "BPZcHDS6OP0"
      },
      {
        "id": "hDsNksdRJyK"
      }
    ]
  }

  Attached is the error log.
  This affects build 22991 version 2.23.

  I have checked users but nothing strange for users when added fails
  the process.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1591697/+subscriptions


References