Home » Eclipse Projects » OM2M » responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource
responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1738998] |
Tue, 26 July 2016 16:23 |
Can LIU Messages: 29 Registered: May 2016 |
Junior Member |
|
|
Hi guys,
I met a problème of responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource. Could you help me to get out of this?
A little background:
IN-AE MY_subtesting subscript to MN-AE DATA source.(like shows in the picture)
It subscripts with the nu = IN-AE resource.
At the IN side, i add a POA value to finally to notify my application in this subscripted IN-AE. (like show in the picture)
At the end, when programme runs, i get a error with a responseStatusCode=4103 (Unknown or unauthorized originator).
Error shows in the IN console:
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
----------------------------------------------------------------------------------------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_AEGPS,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_425133501">
<ty>4</ty>
<ri>/mn-cse/cin-425133501</ri>
<pi>/mn-cse/cnt-599596676</pi>
<ct>20160726T145317</ct>
<lt>20160726T145317</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703613333,2.30726066667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header:
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_425133501">
<ty>4</ty>
<ri>/mn-cse/cin-425133501</ri>
<pi>/mn-cse/cnt-599596676</pi>
<ct>20160726T145317</ct>
<lt>20160726T145317</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703613333,2.30726066667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Unknown or unauthorized originator
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator,
to=/mn-cse,
from=/in-cse,
contentType=text/plain,
]
I tied to fix it then i come here for help.
Thank your guys in advance!
Can
[Updated on: Tue, 26 July 2016 16:25] Report message to a moderator
|
|
| |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739050 is a reply to message #1739001] |
Wed, 27 July 2016 09:04 |
Can LIU Messages: 29 Registered: May 2016 |
Junior Member |
|
|
Hi Mahdi,
Thanks a lot for your quick response.
I've changed the nu to "/in-cse/in-name/MY_AEGPS" but it still not working.
In order to look cleaner, I just keep the IN-AE(MY_AEGPS) and one subscription (sub_MY_GPS).
massage received in IN:
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_AEGPS,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_593932143">
<ty>4</ty>
<ri>/mn-cse/cin-593932143</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083543</ct>
<lt>20160727T083543</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>121</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703106667,2.307406" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_593932143">
<ty>4</ty>
<ri>/mn-cse/cin-593932143</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083543</ct>
<lt>20160727T083543</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>121</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703106667,2.307406" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Unknown or unauthorized originator
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator,
to=/mn-cse,
from=/in-cse,
contentType=text/plain,
]
And the massage received in MN:
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_GPS/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@126737f,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_GPS/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
[INFO] - org.eclipse.om2m.core.controller.Controller
Deleting oldest content instance due to container size limit: /mn-cse/mn-name/MY_GPS/DATA/cin_552939908
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@7bb20b,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-988765717,
]
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request...
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_988765717">
<ty>4</ty>
<ri>/mn-cse/cin-988765717</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083553</ct>
<lt>20160727T083553</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703431667,2.30734966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.core.router.Router
No Accept parameter set, setting to default: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Request targeting another CSE, forwarding to Redirector: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.redirector.Redirector
RemoteCSE found: /in-cse
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_988765717">
<ty>4</ty>
<ri>/mn-cse/cin-988765717</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083553</ct>
<lt>20160727T083553</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703431667,2.30734966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_988765717">
<ty>4</ty>
<ri>/mn-cse/cin-988765717</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083553</ct>
<lt>20160727T083553</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703431667,2.30734966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: /mn-cse
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Target is not reachable: http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=5103,
content=Target is not reachable: http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
to=/mn-cse,
from=/mn-cse,
contentType=text/plain,
]
value is : 48.8703616667,2.3073195
48.8703616667,2.3073195
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_GPS/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@1d294d9,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_GPS/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
[INFO] - org.eclipse.om2m.core.controller.Controller
Deleting oldest content instance due to container size limit: /mn-cse/mn-name/MY_GPS/DATA/cin_7598390
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@1c32d01,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-903184086,
]
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request...
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_903184086">
<ty>4</ty>
<ri>/mn-cse/cin-903184086</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083558</ct>
<lt>20160727T083558</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703616667,2.3073195" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.core.router.Router
No Accept parameter set, setting to default: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Request targeting another CSE, forwarding to Redirector: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.redirector.Redirector
RemoteCSE found: /in-cse
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_903184086">
<ty>4</ty>
<ri>/mn-cse/cin-903184086</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083558</ct>
<lt>20160727T083558</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703616667,2.3073195" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_903184086">
<ty>4</ty>
<ri>/mn-cse/cin-903184086</ri>
<pi>/mn-cse/cnt-451289210</pi>
<ct>20160727T083558</ct>
<lt>20160727T083558</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8703616667,2.3073195" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: /mn-cse
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Target is not reachable: http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=5103,
content=Target is not reachable: http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
to=/mn-cse,
from=/mn-cse,
contentType=text/plain,
]
Thanks in advance!!
Can
|
|
| | | | |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739114 is a reply to message #1739107] |
Wed, 27 July 2016 15:07 |
Can LIU Messages: 29 Registered: May 2016 |
Junior Member |
|
|
Hi madhi,
Yes, I started from the zero.
There is one IN-AE named MY_AEGPS and there is one subscription named SUB_MY_GPS which has a "nu = /in-cse/in-name/MY_AEGPS "
Please see from the picture:
And this is the log informations:
IN side:
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
----------------------------------------------------------------------------------------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_AEGPS,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_146952002">
<ty>4</ty>
<ri>/mn-cse/cin-146952002</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145907</ct>
<lt>20160727T145907</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>120</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704238333,2.30724" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_146952002">
<ty>4</ty>
<ri>/mn-cse/cin-146952002</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145907</ct>
<lt>20160727T145907</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>120</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704238333,2.30724" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Unknown or unauthorized originator
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator,
to=/mn-cse,
from=/in-cse,
contentType=text/plain,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
----------------------------------------------------------------------------------------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_AEGPS,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_387799639">
<ty>4</ty>
<ri>/mn-cse/cin-387799639</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145912</ct>
<lt>20160727T145912</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>123</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704235,2.30724283333" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_387799639">
<ty>4</ty>
<ri>/mn-cse/cin-387799639</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145912</ct>
<lt>20160727T145912</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>123</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704235,2.30724283333" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Unknown or unauthorized originator
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator,
to=/mn-cse,
from=/in-cse,
contentType=text/plain,
]
And MN side:
value is : 48.8704158333,2.3072625
48.8704158333,2.3072625
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_GPS/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@8b199f,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_GPS/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@c8a03e,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-423048316,
]
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request...
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_423048316">
<ty>4</ty>
<ri>/mn-cse/cin-423048316</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145917</ct>
<lt>20160727T145917</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704158333,2.3072625" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.core.router.Router
No Accept parameter set, setting to default: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Request targeting another CSE, forwarding to Redirector: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.redirector.Redirector
RemoteCSE found: /in-cse
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_423048316">
<ty>4</ty>
<ri>/mn-cse/cin-423048316</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145917</ct>
<lt>20160727T145917</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704158333,2.3072625" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=/mn-cse,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_423048316">
<ty>4</ty>
<ri>/mn-cse/cin-423048316</ri>
<pi>/mn-cse/cnt-604053285</pi>
<ct>20160727T145917</ct>
<lt>20160727T145917</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8704158333,2.3072625" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: /mn-cse
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator
,
to=/mn-cse,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=4103,
content=Unknown or unauthorized originator
,
to=/mn-cse,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
Both of the two side are shows the error of 4103.
Thanks in advance.
Can
|
|
| | | | | | | | | |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739139 is a reply to message #1739137] |
Wed, 27 July 2016 16:52 |
Can LIU Messages: 29 Registered: May 2016 |
Junior Member |
|
|
Hi mahdi,
I tired but it still not work.
Here is the log:
IN side:
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
----------------------------------------------------------------------------------------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_AEGPS,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_299781469">
<ty>4</ty>
<ri>/mn-cse/cin-299781469</ri>
<pi>/mn-cse/cnt-99436495</pi>
<ct>20160727T162652</ct>
<lt>20160727T162652</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.870399,2.30734916667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_299781469">
<ty>4</ty>
<ri>/mn-cse/cin-299781469</ri>
<pi>/mn-cse/cnt-99436495</pi>
<ct>20160727T162652</ct>
<lt>20160727T162652</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.870399,2.30734916667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: AE has no point of access
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=5103,
content=AE has no point of access,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
----------------------------------------------------------------------------------------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/CAE203979419,
resultContent=5,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=2,
to=/in-cse/CAE203979419,
from=admin:admin,
resultContent=5,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={rcn=[5]}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/CAE203979419
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [AEController]
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: Resource not found
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4004,
content=Resource not found,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
MN side:
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=5103,
content=AE has no point of access
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=5103,
content=AE has no point of access
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
stvalue is : 48.870399,2.30734916667
48.870399,2.30734916667
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_GPS/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@95bf39,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_GPS/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
o[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request...
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@59cdaa,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-299781469,
]
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_299781469">
<ty>4</ty>
<ri>/mn-cse/cin-299781469</ri>
<pi>/mn-cse/cnt-99436495</pi>
<ct>20160727T162652</ct>
<lt>20160727T162652</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.870399,2.30734916667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.core.router.Router
No Accept parameter set, setting to default: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Request targeting another CSE, forwarding to Redirector: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.redirector.Redirector
RemoteCSE found: /in-cse
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_299781469">
<ty>4</ty>
<ri>/mn-cse/cin-299781469</ri>
<pi>/mn-cse/cnt-99436495</pi>
<ct>20160727T162652</ct>
<lt>20160727T162652</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.870399,2.30734916667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_299781469">
<ty>4</ty>
<ri>/mn-cse/cin-299781469</ri>
<pi>/mn-cse/cnt-99436495</pi>
<ct>20160727T162652</ct>
<lt>20160727T162652</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>122</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.870399,2.30734916667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.14.201:8080/~/in-cse/in-name/MY_AEGPS HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=5103,
content=AE has no point of access
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=5103,
content=AE has no point of access
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
Some idea?
Can
|
|
| | |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739194 is a reply to message #1739145] |
Thu, 28 July 2016 08:52 |
Can LIU Messages: 29 Registered: May 2016 |
Junior Member |
|
|
Hi Madhi,
Sorry for the late reply!
That's great! I think that the notification succeed pass to AE-IN.
I gave AE-IN a poa with (http://10.42.19.43:1400/Monitor) which is the IP adresse of my IN itself. But it shows 5103 (Target is not reachable: http://10.42.19.43:1400/Monitor,)
log in MN:
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header: application/xml
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_AEGPS,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_745280793">
<ty>4</ty>
<ri>/mn-cse/cin-745280793</ri>
<pi>/mn-cse/cnt-961384201</pi>
<ct>20160728T084057</ct>
<lt>20160728T084057</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8705223333,2.30698966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_AEGPS
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://10.42.19.43:1400/Monitor,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_745280793">
<ty>4</ty>
<ri>/mn-cse/cin-745280793</ri>
<pi>/mn-cse/cnt-961384201</pi>
<ct>20160728T084057</ct>
<lt>20160728T084057</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8705223333,2.30698966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://10.42.19.43:1400/Monitor,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_745280793">
<ty>4</ty>
<ri>/mn-cse/cin-745280793</ri>
<pi>/mn-cse/cnt-961384201</pi>
<ct>20160728T084057</ct>
<lt>20160728T084057</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>126</cs>
<con><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<obj>
<str val="48.8705223333,2.30698966667" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_GPS/DATA/SUB_MY_GPS</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://10.42.19.43:1400/Monitor HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept: application/xml
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Target is not reachable: http://10.42.19.43:1400/Monitor
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=5103,
content=Target is not reachable: http://10.42.19.43:1400/Monitor,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
Do you have some idea of this error. FYI, Monitor is a function in my AE-IN programme which listen the port 1400 to catch the notification.
Thank you very much for the 4103 problem
Can
|
|
| | | | | | |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739222 is a reply to message #1739220] |
Thu, 28 July 2016 13:23 |
Trung Luu Messages: 32 Registered: June 2016 |
Member |
|
|
Hi,
I'm trying to do the Subscribe/Notify Scenario like Can LIU do and I also have problems with receiving the Notify message. I subscribe MY_ACTUATOR/DATA in IN-CSE to MY_SENSOR/DATA resource in MN-CSE. The suscription code is created as follow in Monitor class of Sensor plug-in project:
String addr = "/" + CSE_ID + "/" + CSE_NAME + "/" + sensorId + "/" + DATA;
targetId = "http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA";
Subscription sub = new Subscription();
sub.getNotificationURI().add(targetId);
sub.setNotificationContentType(BigInteger.valueOf(2));
RequestSender.createSubscription(addr,SUB,sub);
In RequestSender Class, the code is:
public static ResponsePrimitive createSubscription(String targetId, String name, Subscription resource){
return createResource(targetId, name, resource, ResourceType.SUBSCRIPTION);
}
However, when I run both Application, the error 4004 the AE resource in /in-cse/cnt-610909448 not found.
The following is the Osgi console of IN and MN respectively:
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151325</ct>
<lt>20160728T151325</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="70" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_ACTUATOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: AE resource /in-cse/cnt-610909448 not found.
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
--------------------------------------------------------------------------------
--------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_ACTUATOR/DATA,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_106077840">
<ty>4</ty>
<ri>/mn-cse/cin-106077840</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151327</ct>
<lt>20160728T151327</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="99" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header:
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_106077840">
<ty>4</ty>
<ri>/mn-cse/cin-106077840</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151327</ct>
<lt>20160728T151327</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="99" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_ACTUATOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: AE resource /in-cse/cnt-610909448 not found.
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
--------------------------------------------------------------------------------
--------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_ACTUATOR/DATA,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_421056077">
<ty>4</ty>
<ri>/mn-cse/cin-421056077</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151329</ct>
<lt>20160728T151329</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="72" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header:
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_421056077">
<ty>4</ty>
<ri>/mn-cse/cin-421056077</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151329</ct>
<lt>20160728T151329</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="72" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_ACTUATOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: AE resource /in-cse/cnt-610909448 not found.
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
--------------------------------------------------------------------------------
--------------
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Built RequestPrimitive: RequestPrimitive [to=/in-cse/in-name/MY_ACTUATOR/DATA,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_139197245">
<ty>4</ty>
<ri>/mn-cse/cin-139197245</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151331</ct>
<lt>20160728T151331</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="42" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Content type headers: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Header value: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpServlet
Accept header:
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=5,
to=/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_139197245">
<ty>4</ty>
<ri>/mn-cse/cin-139197245</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151331</ct>
<lt>20160728T151331</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="42" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
returnContentType=application/xml,
requestContentType=application/xml,
queryStrings={}]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /in-cse/in-name/MY_ACTUATOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
OM2M exception caught in Router: AE resource /in-cse/cnt-610909448 not found.
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.,
to=admin:admin,
from=/in-cse,
contentType=text/plain,
]
/////////
////////
<lt>20160728T151327</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="99" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_106077840">
<ty>4</ty>
<ri>/mn-cse/cin-106077840</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151327</ct>
<lt>20160728T151327</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="99" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA
HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept:
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_SENSOR/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@7ed9b950,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_SENSOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@559260e4,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-421056077,
]
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DA
TA
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_421056077">
<ty>4</ty>
<ri>/mn-cse/cin-421056077</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151329</ct>
<lt>20160728T151329</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="72" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_421056077">
<ty>4</ty>
<ri>/mn-cse/cin-421056077</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151329</ct>
<lt>20160728T151329</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="72" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA
HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept:
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
s[INFO] - org.eclipse.om2m.core.router.Router
Received request in Router: RequestPrimitive [operation=1,
to=/mn-cse/mn-name/MY_SENSOR/DATA,
from=admin:admin,
resourceType=4,
content=org.eclipse.om2m.commons.resource.ContentInstance@5b430094,
returnContentType=application/obj,
requestContentType=application/obj,
]
[INFO] - org.eclipse.om2m.core.router.Router
Request handling in the current CSE: /mn-cse/mn-name/MY_SENSOR/DATA
[INFO] - org.eclipse.om2m.core.router.Router
ResourceController to be used [ContentInstanceController]
[INFO] - org.eclipse.om2m.core.router.Router
Response in Router= ResponsePrimitive [responseStatusCode=2001,
content=org.eclipse.om2m.commons.resource.ContentInstance@1cfc48d4,
to=admin:admin,
from=/mn-cse,
location=/mn-cse/cin-139197245,
]
[INFO] - org.eclipse.om2m.core.notifier.Notifier
Sending notify request to: http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DA
TA
[INFO] - org.eclipse.om2m.core.comm.RestClient
the requestIndication RC: RequestPrimitive [operation=5,
to=http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_139197245">
<ty>4</ty>
<ri>/mn-cse/cin-139197245</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151331</ct>
<lt>20160728T151331</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="42" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Sending request: RequestPrimitive [operation=5,
to=http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA,
from=admin:admin,
content=<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
<nev>
<rep rn="cin_139197245">
<ty>4</ty>
<ri>/mn-cse/cin-139197245</ri>
<pi>/mn-cse/cnt-280866820</pi>
<ct>20160728T151331</ct>
<lt>20160728T151331</lt>
<st>0</st>
<cnf>application/obix</cnf>
<cs>101</cs>
<con><?xml version="1.0" encoding="UTF-8" standa
lone="yes"?>
<obj>
<int val="42" name="data"/>
</obj>
</con>
</rep>
<rss>1</rss>
</nev>
<sud>false</sud>
<sur>/mn-cse/mn-name/MY_SENSOR/DATA/SUBSCRIPTION</sur>
</m2m:sgn>
,
requestContentType=application/xml,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: POST http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR/DATA
HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept:
X-M2M-Origin: admin:admin
Content-Type: application/xml
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Http Client response: ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
[INFO] - org.eclipse.om2m.core.comm.RestClient
ResponsePrimitive [responseStatusCode=4004,
content=AE resource /in-cse/cnt-610909448 not found.
,
to=admin:admin,
from=/mn-cse,
contentType=text/plain;charset=ISO-8859-1,
]
Could you please help me to solve this problem. Thanks in advanced
|
|
| | | | | | | |
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739369 is a reply to message #1739361] |
Sat, 30 July 2016 23:15 |
Son Duong Messages: 60 Registered: June 2016 |
Member |
|
|
Hi Mahdi,
both of your 1a) and 1b) are what I mean when "sending the notification to MY_ACTUATOR" . So,
1a) is this case possible that the notification will be stored under MY_ACTUATOR resource, maybe under MY_ACTUATOR/DATA? I think I have misunderstood this case for a long time, what I thought before is OM2M supports subscription/notification method so I thought that when MY_SENSOR in mn-cse sends the notification to MY_ACTUATOR in in-cse, I just need to put the nu address of MY_ACTUATOR in the subscription resource and when the notification is received, it will automatically created a contentInstance under MY_ACTUATOR to store the notification message. Now I believe that I am totally wrong when thinking like that.
1b) So if I want to re-target the notification to MY_ACTUATOR, i need to "integrate" the http server monitor into the MY_ACTUATOR AE. Is it right? So that means OM2M support sub/noti method by sending the notification message but I always need a http server to listen for the notification, my AE MY_ACTUATOR can not listen its self.
2) I think the bug you mentioned was already deleted.
Regards,
Son
[Updated on: Sat, 30 July 2016 23:16] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Dec 26 13:51:54 GMT 2024
Powered by FUDForum. Page generated in 0.07970 seconds
|