Error code 4103 and 5000 when receiving notification response [message #1741615] |
Fri, 26 August 2016 10:48 |
Son Duong Messages: 60 Registered: June 2016 |
Member |
|
|
Hello all,
I have a scenarior like: MY_DEVICE AE is in in-cse and it has the poa address as http://127.0.0.1:1400/monitor. This address is a http server as described here in the tutorial: http://wiki.eclipse.org/OM2M/one/REST_API, which will listen for some notification. In mn-cse I have an AE SMART_METER.
The MY_DEVICE will subscribe to SMART_METER/DATA to receive the notification:
targetId = "/" + CSE_ID + "/" + CSE_NAME + "/" + sensorId + "/" + DATA;
Subscription sub = new Subscription();
sub.getNotificationURI().add("/in-cse/in-name/MY_DEVICE");
sub.setNotificationContentType(BigInteger.valueOf(2));
RequestSender.createSubscription(targetId,SUB,sub);
As far as I understand that if new data is written to SMART_METER/DATA, a notification will be sent to /in-cse/in-name/MY_DEVICE and based on the poa of this MY_DEVICE, the notification will be continue to redirect to the poa address which is the http monitor server http://127.0.0.1:1400/monitor.
I have tested this case but I got two errors code: 4103 when creating the SUB container in SMART_METER/DATA and 5000 when sending the notification to the monitor server
I know my post maybe similar to this previous post: https://www.eclipse.org/forums/index.php/t/1079634/ and I also tried the solution in this post by replacing the line 233 of the file: org/eclipse/om2m/core/notifier/Notifier.java
request.setFrom("/" + Constants.CSE_ID);
with:
request.setFrom(Constants.ADMIN_REQUESTING_ENTITY);
but still no success.
Can anyone help me, please?
I also attach here some images and the log files also.
IN_CSE:
MN_CSE:
Thank you in advanced!
Regards
Son
-
Attachment: log_in.out
(Size: 44.10KB, Downloaded 196 times) -
Attachment: log_mn.out
(Size: 29.94KB, Downloaded 189 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04105 seconds