Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Problem when running MyMonitor example(the same problem output when I run MyMonitor example and MyManager example)
Problem when running MyMonitor example [message #1818544] Thu, 19 December 2019 09:54 Go to next message
Fawzia Abujalala is currently offline Fawzia AbujalalaFriend
Messages: 2
Registered: November 2019
Junior Member
Hello,

I am running OM2M on Ubuntu 16.04 Using eclipse LUNA. I run MySensor and MyMonitor, but I get the following error when I run MyMonitor:
****************************************************************************
HTTP POST http://127.0.0.1:8080/~/in-cse/in-name
{"m2m:ae":{"rr":true,"poa":["http://127.0.0.1:1600"],"api":12346,"rn":"mymonitor"}}
HTTP Response 409
Name already present in the parent collection.
HTTP POST http://127.0.0.1:8080/~/mn-cse/mn-name
{"m2m:sub":{"nu":["/in-cse/in-name/mymonitor"],"rn":"monitorsub","nct":2}}
Event Recieved!
{
"m2m:sgn" : {
"m2m:vrq" : true,
"m2m:sud" : false
}
}

org.json.JSONException: JSONObject["nev"] not found.
at org.json.JSONObject.get(JSONObject.java:471)
at org.json.JSONObject.getJSONObject(JSONObject.java:636)
at org.eclipse.om2m.app.MyMonitor$MyHandler.handle(MyMonitor.java:102)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
**************************************************************************************
and the same error when I run MyManager:

*******************************************************************
HTTP POST http://127.0.0.1:8080/~/in-cse/in-name
{"m2m:ae":{"rr":true,"poa":["http://127.0.0.1:1500"],"api":12346,"rn":"mymanager"}}
HTTP Response 409
Name already present in the parent collection.
HTTP POST http://127.0.0.1:8080/~/mn-cse/mn-name/mysensor/data
{"m2m:sub":{"nu":["/in-cse/in-name/mymanager"],"rn":"managersub","nct":2}}
Event Recieved!
{
"m2m:sgn" : {
"m2m:vrq" : true,
"m2m:sud" : false
}
}

org.json.JSONException: JSONObject["nev"] not found.
at org.json.JSONObject.get(JSONObject.java:471)
at org.json.JSONObject.getJSONObject(JSONObject.java:636)
at org.eclipse.om2m.app.MyManager$MyHandler.handle(MyManager.java:89)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
***************************************************************************************

Could you please help me ti fix this error?

Thank you
Re: Problem when running MyMonitor example [message #1827985 is a reply to message #1818544] Thu, 28 May 2020 10:12 Go to previous messageGo to next message
hieu tran is currently offline hieu tranFriend
Messages: 19
Registered: November 2017
Junior Member
You can try with "m2m:vrq"
Re: Problem when running MyMonitor example [message #1835123 is a reply to message #1827985] Wed, 25 November 2020 07:32 Go to previous message
Guillaume Garzone is currently offline Guillaume GarzoneFriend
Messages: 54
Registered: April 2015
Member
Actually, when you create a Subscription resource, the oneM2M CSE will send a Verification Request (vrq) to the provided poa. The endpoint should answer back a status code OK if the vrq attribute is set to true.
Previous Topic:containerDefinition attribute must be provided.
Next Topic:getting 503 error Service Unavailable
Goto Forum:
  


Current Time: Tue Apr 23 12:09:23 GMT 2024

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

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

Back to the top