ARM Technical Support Knowledge Articles

My application is not receiving notifications, what to do?

Applies to: mbed Device Server

Answer

If your application is not receiving notifications, perform the following checks:

1. If you are running with the Node Emulator, check if it has successfully registered. It may have failed with an error, as shown in the following example:

10:51:30 WARN [light-1] Could not register to
Device-Server:org.mbed.coap.exception.CoapException:java.lang.NullPointerException

10:51:40 ERROR [light-1] Registration was not successful within the given time...

2. Check if the -ds argument is correctly entered to point to a running Device Server instance.

3. Check if the push url is properly updated in the mbed-rest-client.properties. Logs related to push URL updates are as follows:

DEBUG:14 Jan 2015 15:00:33,136:
org.mbed.example.webapp.service.ds.MbedClientContainer Building mbed client for ds
address /127.0.0.1:8080

INFO:14 Jan 2015 15:00:33,145: com.arm.mbed.restclient.servlet.HttpServletChannel
Trying to put callback url, 29

DEBUG:14 Jan 2015 15:00:33,459:
com.arm.mbed.restclient.internal.engines.UrlConnectionEngine Request [PUT
http://127.0.0.1:8080/domain/notification/push-url] - status: 400

DEBUG:14 Jan 2015 15:00:35,463: com.arm.mbed.restclient.servlet.HttpServletChannel
Retrying to update callback url

INFO:14 Jan 2015 15:00:35,468: com.arm.mbed.restclient.servlet.HttpServletChannel
Trying to put callback url, 28 ...

DEBUG:14 Jan 2015 15:00:35,592:
com.arm.mbed.restclient.internal.engines.UrlConnectionEngine Request [PUT
http://127.0.0.1:8080/domain/notification/push-url] - status: 204

INFO:14 Jan 2015 15:00:35,592: com.arm.mbed.restclient.servlet.HttpServletChannel
Successfully put callback url

where:

status

Article last edited on: 2015-02-25 11:38:53

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential