Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Can LIU is currently offline Can LIUFriend
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)
index.php/fa/26574/0/
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)
index.php/fa/26575/0/

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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703613333,2.30726066667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703613333,2.30726066667&quot; name=&quot;data&quot;/>
&lt;/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 #1739001 is a reply to message #1738998] Tue, 26 July 2016 16:40 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Can LIU

If you chose to set the AE-ID as NU for your Subscription resource then it should be protocol-independent oneM2M URI like: "/in-cse/in-name/MY_sub" without the HTTP and protocol part.
The MN-CSE will retarget the notification to the IN-CSE for you, then the IN-CSE will find the corresponding AE resource and notify it using the defined POA attribute.

Could you please try this and tell me if its works for you?

Mahdi
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 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703106667,2.307406&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703106667,2.307406&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703431667,2.30734966667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703431667,2.30734966667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703431667,2.30734966667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703616667,2.3073195&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703616667,2.3073195&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8703616667,2.3073195&quot; name=&quot;data&quot;/>
&lt;/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 #1739088 is a reply to message #1739001] Wed, 27 July 2016 13:30 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Hi madhi,

This afternoon, i tried to replace the" nu=/in-cse/in-name/MY_AEGPS " with the" ri(/in-cse/CAE306921645) "of the AE.
It doesn't work with the same error massage 4103 both in the MN and IN side.
Do you have some other advice to try?

Thanks

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739091 is a reply to message #1739088] Wed, 27 July 2016 13:35 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Can LIU

Which version of OM2M are you using ? Could you try with latest one OM2M-1.0.0
http://wiki.eclipse.org/OM2M/Download
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739102 is a reply to message #1739091] Wed, 27 July 2016 14:22 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Hi madhi,

I am already using the latest version 1.0.0 Sad

Cdr

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739107 is a reply to message #1739102] Wed, 27 July 2016 14:40 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Can,

The log you send shows a not reachable error 5103.
Could you please provide a clean log with 1 AE and 1 subscription ?
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 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
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:
index.php/fa/26583/0/
index.php/fa/26584/0/

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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704238333,2.30724&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704238333,2.30724&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704235,2.30724283333&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704235,2.30724283333&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704158333,2.3072625&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704158333,2.3072625&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8704158333,2.3072625&quot; name=&quot;data&quot;/>
&lt;/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 #1739122 is a reply to message #1739114] Wed, 27 July 2016 15:39 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Can,

Thank you for the detailed log. Your requests are correct. I think there is an issue with the CSE ACP validation.
Are you using the source code or the binaries ?
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739127 is a reply to message #1739122] Wed, 27 July 2016 15:46 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Hi madhi,

What is the binaries? Sorry for this stupide question.
I downloaded the OM2M in the website and follow the instruction to build it on my computer(IN) and a did the same on Raspberry Pi (MN).
Did I answer your question?

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739128 is a reply to message #1739122] Wed, 27 July 2016 15:49 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
The solution is to replace 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);

Could you please open a bug related to this issue on our Bugzilla ?
I will submit a patch as soon as possible.
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739130 is a reply to message #1739122] Wed, 27 July 2016 15:50 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Hi madhi,

I use eclipse and clone the code from git and build it on my computer.
I download the OM2M but i didn't use it.

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739131 is a reply to message #1739128] Wed, 27 July 2016 15:51 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
I mean by binaries the compiled files.
You can try the fix directly on your source code.
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739132 is a reply to message #1739131] Wed, 27 July 2016 15:53 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
mahdi,

Ok i will try it.
Could you please give me a link with the bugzilla?

Thanks

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739133 is a reply to message #1739132] Wed, 27 July 2016 15:55 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Here you are:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=OM2M
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739134 is a reply to message #1739133] Wed, 27 July 2016 16:01 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Thank you so much Smile

Hava a wonderful day!

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739137 is a reply to message #1739134] Wed, 27 July 2016 16:10 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
So it works for you ?
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 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.870399,2.30734916667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.870399,2.30734916667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.870399,2.30734916667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.870399,2.30734916667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.870399,2.30734916667&quot; name=&quot;data&quot;/>
&lt;/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 #1739141 is a reply to message #1739139] Wed, 27 July 2016 16:54 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
You need to set the reachability of your AE to true Wink
Check the rr attribute.
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739145 is a reply to message #1739141] Wed, 27 July 2016 17:53 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
the verdict ?
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 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8705223333,2.30698966667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8705223333,2.30698966667&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
&lt;obj>
&lt;str val=&quot;48.8705223333,2.30698966667&quot; name=&quot;data&quot;/>
&lt;/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 Smile

Can
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739195 is a reply to message #1739194] Thu, 28 July 2016 08:59 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
does your listener returns a response after receiving the notification something like 200 Ok?
Try to open http://10.42.19.43:1400/Monitor in your browser, what do you see ?

[Updated on: Thu, 28 July 2016 10:49]

Report message to a moderator

Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739206 is a reply to message #1739195] Thu, 28 July 2016 10:41 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Hi madhi,

It works!!! cool ! I gave the wrong Ip address to the POA, after change, it works!!
Thank you so much about all of this!! Really

Can

Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739207 is a reply to message #1739206] Thu, 28 July 2016 10:44 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Nice!
Do not forget to open the bug Wink
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739215 is a reply to message #1739207] Thu, 28 July 2016 12:09 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
cool

I really want to open the bug, but i couldn't log in at bugzilla.
It always told me that my account doesn't exist!!
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739219 is a reply to message #1739215] Thu, 28 July 2016 12:35 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Did you tried "forget your password" link in Bugzilla ?
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739220 is a reply to message #1739219] Thu, 28 July 2016 12:48 Go to previous messageGo to next message
Can LIU is currently offline Can LIUFriend
Messages: 29
Registered: May 2016
Junior Member
Yes i tried.
still the same and i am sure that my account name and password are correct.
You can solve all kinds of problem Smile)))))

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 Go to previous messageGo to next message
Trung Luu is currently offline Trung LuuFriend
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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;70&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;99&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;99&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;72&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;72&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;42&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;42&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;99&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;99&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;72&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;72&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;42&quot; name=&quot;data&quot;/>
&lt;/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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standa
lone=&quot;yes&quot;?>
&lt;obj>
&lt;int val=&quot;42&quot; name=&quot;data&quot;/>
&lt;/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 #1739223 is a reply to message #1739222] Thu, 28 July 2016 13:47 Go to previous messageGo to next message
Son Duong is currently offline Son DuongFriend
Messages: 60
Registered: June 2016
Member
Hi all, I also got the same error "AE resource not found" like what Trung described above. Maybe I can add some figures about the tree structure for you guys can have better overview about the situation.

IN CSE structure:
index.php/fa/26604/0/

MN CSE structure:
index.php/fa/26605/0/

Thank you so much!
  • Attachment: incse.JPG
    (Size: 65.99KB, Downloaded 2284 times)
  • Attachment: mncse.JPG
    (Size: 63.28KB, Downloaded 2335 times)
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739224 is a reply to message #1739223] Thu, 28 July 2016 13:55 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
The notification URI (nu attribute) could be:
1) a full URI of a listener, something like: http://192.168.0.10:1400/abcde. This suppose that such address is directly accessible from the CSE node.
2) or, an AE ID like /in-cse/in-name/MY_Actuator. In this case the AE resource MY_Actuator shall contain a PoA (Point of access) attribute containing "http://192.168.0.10:1400/abcde" and the RR (Reachability) attribute set to true.
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739233 is a reply to message #1739224] Thu, 28 July 2016 15:14 Go to previous messageGo to next message
Trung Luu is currently offline Trung LuuFriend
Messages: 32
Registered: June 2016
Member
Dear Mahdi,
Thank you for your response; however, I still don't get the point. Because I have two AE, one has URI: http://127.0.0.1:8080/~/mn-cse/mn-name/MY_SENSOR and the other one is http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR. How can I get the direct URI of the nu?

Best Regards,
Trung
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739350 is a reply to message #1739233] Sat, 30 July 2016 11:37 Go to previous messageGo to next message
Son Duong is currently offline Son DuongFriend
Messages: 60
Registered: June 2016
Member
Hi Mahdi,
if I understand correctly your answer that I need to set the PoA of my AE resource MY_ACTUATOR to be something like the URI where the notification message to be sent to. Is it right? I tried this by setting the PoA of MY_ACTUATOR to be:
ae.setRequestReachability(true);
ae.getPointOfAccess().add("http://127.0.0.1:8080/~/in-cse/in-name/MY_ACTUATOR");
but it also didnt work. Do you have any idea, Mahdi?

Regards,
Son
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739351 is a reply to message #1739350] Sat, 30 July 2016 13:02 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Dear Son

You should put a URI of a listener, like a simple http server.
Check the "Subscribe to MY_SENSOR data" of our REST API tutorial: http://wiki.eclipse.org/OM2M/one/REST_API
Download the "monitor.jar" file and run it by following the instructions. Byd efault, your server will start listening on port=1400 and context=/monitor.
You then use the following address as PoA for your AE: http://127.0.0.1:1400/monitor
All events will be sent to this listener and processed according to your need.
Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739357 is a reply to message #1739351] Sat, 30 July 2016 14:09 Go to previous messageGo to next message
Son Duong is currently offline Son DuongFriend
Messages: 60
Registered: June 2016
Member
Hi Mahdi,
I already tried with this http server and it worked fine, now i would like to change the listener to the MY_ACTUATOR so that the notification will be sent to MY_ACTUATOR in IN_CSE. It this not possible?

And in my last tried with the http server Monitor, I didnt set the poa address, instead i set only the nu address to be something like http://127.0.0.1:1400/Monitor but it still received the notification. Can you explain me why I didnt set the poa address but it still worked?

Thank you!
Son

[Updated on: Sat, 30 July 2016 14:15]

Report message to a moderator

Re: responseStatusCode=4103 (Unknown or unauthorized originator) when notify to AE resource [message #1739361 is a reply to message #1739357] Sat, 30 July 2016 15:15 Go to previous messageGo to next message
Mahdi Ben Alaya is currently offline Mahdi Ben AlayaFriend
Messages: 229
Registered: November 2013
Senior Member
Hello Son

1) What do you mean by "sending the notification to MY_ACTUATOR":
a) storing the notification as content instances in th resource tree under the MY_ACTUATOR resource?
b) or making the CSE re-targeting the notification to the PoA of MY_ACTUATOR ? So here you need a listener which is technically a piece software implementing a listener but functionally part of your AE.

2) The Bug 498911 - Error in Access Right verification for PoA notification (https://bugs.eclipse.org/bugs/show_bug.cgi?id=498911) impacts only the PoA permission verification.
So, when you define your http listener address directly as NU in your subscription then you bypass the PoA verification and it will works however if you chose to define AE-ID as NU and configure your http listener address as PoA then you will get an error.

I pushed a patch to master branch and uploaded the corresponding binaries on our Wiki.
You can download OM2M-DEV-30072016 from https://wiki.eclipse.org/OM2M/Download
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 Go to previous message
Son Duong is currently offline Son DuongFriend
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" Smile. 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

Previous Topic:how to set the POA address for AE correctly?
Next Topic:Is it possible that the mn-cse running alone without registering to in-cse?
Goto Forum:
  


Current Time: Thu Dec 26 13:51:54 GMT 2024

Powered by FUDForum. Page generated in 0.07970 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top