SMS Not finding Users Associated with Phones

Hello, I upgraded to 2.18 But seems the SMS functionality in this version (Build 18177) does not get the users associated with the phone. See Logs below and Help

  • INFO 2015-02-17 18:04:45,962 Login success for user: ‘dhis’, ip: ‘127.0.0.1’ (DefaultUserAuditService.java [http-bio-8080-exec-11])

  • INFO 2015-02-17 18:04:46,168 Received SMS: MCD C0 (SmsPublisher.java [Thread-14])

  • WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user does not have any user roles (DefaultUserService.java [Thread-14])

  • ERROR 2015-02-17 18:04:46,187 org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor. (SmsPublisher.java

[Thread-14])

org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor.

at org.hisp.dhis.sms.listener.DataValueSMSListener.receive(DataValueSMSListener.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.$Proxy66.receive(Unknown Source)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.fetchAndParseSMS(SmsPublisher.java:119)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.run(SmsPublisher.java:89)

  • INFO 2015-02-17 18:04:46,189 Sending message OutboundSMS [recipients=256788713957, message=DHIS: No user associated with this phone number. Please contact your supervi

sor.] (DefaultOutboundSmsTransportService.java [Thread-14])

r+supervisor.&username=dhis&password=dHiStwo mTrac (SimplisticHttpGetGateWay.java [Thread-14])

Stephen Ocaya

–META Project

···

You can do anything, but not everything.

hi Ocaya,

Which type of gateway do you use? I raised the same problem last time.

I think M. Long Should help us

···

=========================
EKANI Guy

Le Mardi 17 février 2015 16h13, Ocaya Stephen stephocay@gmail.com a écrit :

Hello, I upgraded to 2.18 But seems the SMS functionality in this version (Build 18177) does not get the users associated with the phone. See Logs below and Help

  • INFO 2015-02-17 18:04:45,962 Login success for user: ‘dhis’, ip: ‘127.0.0.1’ (DefaultUserAuditService.java [http-bio-8080-exec-11])

  • INFO 2015-02-17 18:04:46,168 Received SMS: MCD C0 (SmsPublisher.java [Thread-14])

  • WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user does not have any user roles (DefaultUserService.java [Thread-14])

  • ERROR 2015-02-17 18:04:46,187 org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor. (SmsPublisher.java

[Thread-14])

org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor.

at org.hisp.dhis.sms.listener.DataValueSMSListener.receive(DataValueSMSListener.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.$Proxy66.receive(Unknown Source)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.fetchAndParseSMS(SmsPublisher.java:119)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.run(SmsPublisher.java:89)

  • INFO 2015-02-17 18:04:46,189 Sending message OutboundSMS [recipients=256788713957, message=DHIS: No user associated with this phone number. Please contact your supervi

sor.] (DefaultOutboundSmsTransportService.java [Thread-14])

r+supervisor.&username=dhis&password=dHiStwo mTrac (SimplisticHttpGetGateWay.java [Thread-14])

Stephen Ocaya

–META Project

You can do anything, but not everything.


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

Hi Ocaya,

“No user associate with phone number” means the system cannot find the user that has that phone nunber. In this case the system cannot perform any further action.

Please check the phone number of users you have in your system.

BTW, i’m on vacation so my response can take some time.

Long

···

On Tue, Feb 17, 2015, 10:13 PM Ocaya Stephen stephocay@gmail.com wrote:

Hello, I upgraded to 2.18 But seems the SMS functionality in this version (Build 18177) does not get the users associated with the phone. See Logs below and Help

  • INFO 2015-02-17 18:04:45,962 Login success for user: ‘dhis’, ip: ‘127.0.0.1’ (DefaultUserAuditService.java [http-bio-8080-exec-11])
  • INFO 2015-02-17 18:04:46,168 Received SMS: MCD C0 (SmsPublisher.java [Thread-14])
  • WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user does not have any user roles (DefaultUserService.java [Thread-14])
  • ERROR 2015-02-17 18:04:46,187 org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor. (SmsPublisher.java

[Thread-14])

org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor.

at org.hisp.dhis.sms.listener.DataValueSMSListener.receive(DataValueSMSListener.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.$Proxy66.receive(Unknown Source)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.fetchAndParseSMS(SmsPublisher.java:119)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.run(SmsPublisher.java:89)

  • INFO 2015-02-17 18:04:46,189 Sending message OutboundSMS [recipients=256788713957, message=DHIS: No user associated with this phone number. Please contact your supervi

sor.] (DefaultOutboundSmsTransportService.java [Thread-14])

r+supervisor.&username=dhis&password=dHiStwo mTrac (SimplisticHttpGetGateWay.java [Thread-14])

Stephen Ocaya

–META Project

You can do anything, but not everything.

https://apps.dhis2.org/ci/job/dhis-2.18/org.hisp.dhis$dhis-service-sms/43/findbugsResult/file.-1712178807/

···

=========================
EKANI Guy

Le Mercredi 18 février 2015 12h10, Long Ngo Thanh long.hispvietnam@gmail.com a écrit :

Hi Ocaya,

“No user associate with phone number” means the system cannot find the user that has that phone nunber. In this case the system cannot perform any further action.

Please check the phone number of users you have in your system.

BTW, i’m on vacation so my response can take some time.

Long

On Tue, Feb 17, 2015, 10:13 PM Ocaya Stephen stephocay@gmail.com wrote:

Hello, I upgraded to 2.18 But seems the SMS functionality in this version (Build 18177) does not get the users associated with the phone. See Logs below and Help

  • INFO 2015-02-17 18:04:45,962 Login success for user: ‘dhis’, ip: ‘127.0.0.1’ (DefaultUserAuditService.java [http-bio-8080-exec-11])
  • INFO 2015-02-17 18:04:46,168 Received SMS: MCD C0 (SmsPublisher.java [Thread-14])
  • WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user does not have any user roles (DefaultUserService.java [Thread-14])
  • ERROR 2015-02-17 18:04:46,187 org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor. (SmsPublisher.java

[Thread-14])

org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor.

at org.hisp.dhis.sms.listener.DataValueSMSListener.receive(DataValueSMSListener.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.$Proxy66.receive(Unknown Source)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.fetchAndParseSMS(SmsPublisher.java:119)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.run(SmsPublisher.java:89)

  • INFO 2015-02-17 18:04:46,189 Sending message OutboundSMS [recipients=256788713957, message=DHIS: No user associated with this phone number. Please contact your supervi

sor.] (DefaultOutboundSmsTransportService.java [Thread-14])

r+supervisor.&username=dhis&password=dHiStwo mTrac (SimplisticHttpGetGateWay.java [Thread-14])

Stephen Ocaya

–META Project

You can do anything, but not everything.


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

Hi Stephen,

in 2.18 we made the user authority checks a bit stricter. It seems from the log that you have a user “dhis” receiving SMS, but that user does not have any user roles associated with it. I can work on fix here, but in the meantime, can you please try associating at least one user roles with the “dhis” user?

Lars

···

On Tue, Feb 17, 2015 at 4:13 PM, Ocaya Stephen stephocay@gmail.com wrote:

Hello, I upgraded to 2.18 But seems the SMS functionality in this version (Build 18177) does not get the users associated with the phone. See Logs below and Help

  • INFO 2015-02-17 18:04:45,962 Login success for user: ‘dhis’, ip: ‘127.0.0.1’ (DefaultUserAuditService.java [http-bio-8080-exec-11])
  • INFO 2015-02-17 18:04:46,168 Received SMS: MCD C0 (SmsPublisher.java [Thread-14])
  • WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user does not have any user roles (DefaultUserService.java [Thread-14])
  • ERROR 2015-02-17 18:04:46,187 org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor. (SmsPublisher.java

[Thread-14])

org.hisp.dhis.sms.parse.SMSParserException: No user associated with this phone number. Please contact your supervisor.

at org.hisp.dhis.sms.listener.DataValueSMSListener.receive(DataValueSMSListener.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.$Proxy66.receive(Unknown Source)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.fetchAndParseSMS(SmsPublisher.java:119)

at org.hisp.dhis.sms.SmsPublisher$SMSConsumerThread.run(SmsPublisher.java:89)

  • INFO 2015-02-17 18:04:46,189 Sending message OutboundSMS [recipients=256788713957, message=DHIS: No user associated with this phone number. Please contact your supervi

sor.] (DefaultOutboundSmsTransportService.java [Thread-14])

r+supervisor.&username=dhis&password=dHiStwo mTrac (SimplisticHttpGetGateWay.java [Thread-14])

Stephen Ocaya

–META Project

You can do anything, but not everything.


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