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
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
Previous Topic:error in running OM2M
Goto Forum:
  


Current Time: Tue Feb 25 13:44:00 GMT 2020

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

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

Back to the top