[Dhis2-devs] SMS Not finding Users Associated with Phones

Hi Ola and all,

I’m working on it now. Fitti, could you please check the username and password. I’m no longer be able to login with the username you gave me last time.

Long

···

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

The significant log part is this:

WARN 2015-02-17 18:04:46,179 Cannot get users with disjoint roles as user
does not have any user roles

Try to give the dhis user at least one user role.

Lars