eclipse-leshan / leshan Goto Github PK
View Code? Open in Web Editor NEWJava Library for LWM2M
Home Page: https://www.eclipse.org/leshan/
License: BSD 3-Clause "New" or "Revised" License
Java Library for LWM2M
Home Page: https://www.eclipse.org/leshan/
License: BSD 3-Clause "New" or "Revised" License
Adding a test for delete "/o/i/r" shows, that this is not denied and removes the instance.
Writing an empty string ("") to /5/0/1 to cancel a firmware update is suppressed.
No request is sent.
According the LWM2M TS, appendix E.6,
If writing an empty string to Package Resource is done or writing an empty string to Package URI is done, the state changes to Idle.
it seesm to be considered as "valid operation" (even if there may be a discussion on what "mandatory" means :-) )
As far as I understand, the write is suppressed in
"resource-directives.js", line 152,
if(value) {
changing that to
if(value || "" == value) {
would allow to write an empty string.
Hello,
I would like to use the Leshan web application on a web server, that is not Jetty.
I'm attaching a patch, that will replace the Jetty dependencies with other API that will do exactly the same.
According to latest M2M specification, resource №6 of Connectivity Statistics Object is called "StartOrStop", not "StartOrReset".
And there is one new resource - №7 - called "Collection Duration".
Does leshan support write for resource with multiple instances?
I see in js file you forbid adding write button for this type resources.
(if(scope.resource.def.instancetype != "multiple"))
Hello,
i would like to use LWM2M Server on a Raspberry pi 2.
Do i need additional configuration if i want to use it ?
What is implemented in this code ?
If i need to add something (features, functionalities, ...), is it possible?
Is it well documented?
Thanks,
Hezouwe
Writing on /5/0/1
"Firmware Update package UR"I I get:
java.lang.IllegalArgumentException: The validated object is null
at org.eclipse.leshan.util.Validate.notNull(Validate.java:222) ~[classes/:?]
at org.eclipse.leshan.util.Validate.notNull(Validate.java:205) ~[classes/:?]
at org.eclipse.leshan.core.request.WriteRequest.<init>(WriteRequest.java:216) ~[classes/:?]
at org.eclipse.leshan.core.request.WriteRequest.<init>(WriteRequest.java:209) ~[classes/:?]
at org.eclipse.leshan.server.demo.servlet.ClientServlet.writeRequest(ClientServlet.java:381) ~[classes/:?]
at org.eclipse.leshan.server.demo.servlet.ClientServlet.doPut(ClientServlet.java:173) [classes/:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) [javax.servlet-api-3.1.0.jar:3.1.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:738) [jetty-servlet-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551) [jetty-servlet-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) [jetty-security-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:478) [jetty-servlet-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.Server.handle(Server.java:462) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:279) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232) [jetty-server-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534) [jetty-io-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) [jetty-util-9.1.4.v20140401.jar:9.1.4.v20140401]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) [jetty-util-9.1.4.v20140401.jar:9.1.4.v20140401]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
Seems to be caused by:
private WriteRequest(final Mode mode, ContentFormat format, final LwM2mPath target, final LwM2mNode node) {
...
Validate.notNull(format);
called in ClientServlet
private WriteResponse writeRequest(Client client, String target, HttpServletRequest req, HttpServletResponse resp)
throws IOException, InterruptedException {
...
return server.send(client, new WriteRequest(Mode.REPLACE, null, target, node), TIMEOUT);
The current client side implementation of "SecurityObjectPskStore" uses the "identity" to fetch the "secret key". Though this is valid for the server side, I think it's not valid for the client side! This depends on the assumption, that two dm-server may not be related. If so, it could not be ensured, that they use different identies for the client. They may use the same identity but with different secret keys.
Otherwise, if this implementation should be assumed to be proper, it must be specified, that different dm-server must use different identities, if they want to use different secret keys.
If the server receive an error on DELETE / we should not continue sending bootstrap values
It seems that on performing an update request from client (with empty (null) object links argument) CoapClientRequestBuilder
performs an implicit paylodizing of link objects from the object definition in visit(UpdateRequest)
:
if (linkObjects == null)
payload = LinkFormatUtils.payloadize(clientObjectModel);
else
payload = LinkFormatUtils.payloadize(linkObjects);
coapRequest.setPayload(payload);
Because the object links are not required for update, this conversion should only be performed if link objects are provided with the UpdateRequest, like this:
if (linkObjects != null) {
payload = LinkFormatUtils.payloadize(linkObjects);
coapRequest.setPayload(payload);
}
BTW the link objects found in definition are also containing only object IDs, like </1>,</3>
etc. This seems to be an incorrect behavior in visit(RegisterRequest)
.
When the model of an Object is not known by Leshan (typically object 1024 of the wakaama test client), the "Create New Instance" is usable. But when used, Leshan sends a Create operation with an empty New Value (as defined by LWM2M TS section 5.4.6).
For instance this is the payload sent when creating /1024/1 on a wakaama client:
41 02 E7 9B 3B B4 31 30 32 34 12 06 07 FF 7B 22 A...;.1024....{"
62 6E 22 3A 22 2F 31 30 32 34 2F 31 2F 22 2C 22 bn":"/1024/1/","
65 22 3A 5B 5D 7D e":[]}
Parsed: ver 1, type 0, tkl 1, code 0.02, mid 59291
Content type: 1543
Payload: {"bn":"/1024/1/","e":[]}
Report from interop event: For some LWM2M Clients Leshan's default request timeout is too short, in particular when sending large files (e.g., for firmware upgrade).
A way to configure the timeout or a good description where to change it would help.
Hi, I want to try to connect to coap://leshan.eclipse.org:5683 by using the built ./lwm2mclient from https://github.com/eclipse/wakaama source code.
Here is the command I run:
./lwm2mclient 56831 leshan.eclipse.org 5683
But I can't see any respone from this leshan.eclipse.org, is there any instruction about how to use the leshan sandbox server.
Thanks a lot
I have come accross an issue while trying to receive large responses from a client.
I have a small setup of server + client, where the client is supposed to provide the contents of a large file.
The contents of the file is encoded in base64 and stored as a String, the one I'm testing with has a length of 1523307 characters.
This is the error the client displays:
2016-03-30 14:20:23,432 DEBUG LwM2mNodeEncoder Encoding node LwM2mSingleResource [id=6, value=LyoqCiAqIEBsaWNlbnNlIEFuZ3VsYXJKUyB2MS41LjAKICogKGMpIDIwMTAtMjAxNiBHb29nbGUs
IEluYy4gaHR0cDovL2FuZ3VsYXJqcy5vcmcKICogTGljZW5zZTogTUlUCiAqLwooZnVuY3Rpb24o
...
dGUtc2hpbXt2aXNpYmlsaXR5OmhpZGRlbjt9Lm5nLWFuY2hvcntwb3NpdGlvbjphYnNvbHV0ZTt9
PC9zdHlsZT4nKTs=, type=STRING] into text
Mar 30, 2016 2:20:30 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=26806, Token=83fc872c28686245, OptionSet={"Uri-Path":["4","0","6"]}, no payload
2016-03-30 14:20:33,678 ERROR ObjectResource Exception while handling a request on the /4 resource
java.lang.IllegalArgumentException: Invalid value type, expected INTEGER, got STRING
at org.eclipse.leshan.core.node.codec.Lwm2mNodeEncoderUtil.convertValue(Lwm2mNodeEncoderUtil.java:148) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.core.node.codec.text.LwM2mNodeTextEncoder$InternalEncoder.visit(LwM2mNodeTextEncoder.java:78) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.core.node.LwM2mSingleResource.accept(LwM2mSingleResource.java:145) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.core.node.codec.text.LwM2mNodeTextEncoder.encode(LwM2mNodeTextEncoder.java:47) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.core.node.codec.LwM2mNodeEncoder.encode(LwM2mNodeEncoder.java:58) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.client.californium.impl.ObjectResource.handleGET(ObjectResource.java:137) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.CoapResource.handleRequest(CoapResource.java:212) ~[rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.leshan.client.californium.impl.ObjectResource.handleRequest(ObjectResource.java:92) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.server.ServerMessageDeliverer.deliverRequest(ServerMessageDeliverer.java:82) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.CoapStack$StackTopAdapter.receiveRequest(CoapStack.java:182) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.AbstractLayer.receiveRequest(AbstractLayer.java:88) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.AbstractLayer.receiveRequest(AbstractLayer.java:88) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.BlockwiseLayer.receiveRequest(BlockwiseLayer.java:255) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.AbstractLayer.receiveRequest(AbstractLayer.java:88) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.ReliabilityLayer.receiveRequest(ReliabilityLayer.java:231) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.AbstractLayer.receiveRequest(AbstractLayer.java:88) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.stack.CoapStack.receiveRequest(CoapStack.java:130) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.receiveMessage(CoapEndpoint.java:605) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.access$700(CoapEndpoint.java:536) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl$1.run(CoapEndpoint.java:548) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at org.eclipse.californium.core.network.CoapEndpoint$5.run(CoapEndpoint.java:695) [rethink-lhcb-client-0.1.0-jar-with-dependencies.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_95]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_95]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [?:1.7.0_95]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [?:1.7.0_95]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_95]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_95]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_95]
This was tested with version 0.1.11-M9, using leshan-server-cf and leshan-client-cf via maven.
Is there any way to workaround this issue? I have tried sending the byte array directly, but that doesn't work either.
In rare case, when starting the leshan server demo during a client sends notifications, I get exceptions:
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.receiveMessage(CoapEndpoint.java:621)
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.access$700(CoapEndpoint.java:536)
at org.eclipse.californium.core.network.CoapEndpoint$InboxImpl$1.run(CoapEndpoint.java:548)
at org.eclipse.californium.core.network.CoapEndpoint$5.run(CoapEndpoint.java:695)
I think, this happens, if CoapEndpoint.addInterceptor
is called after LeshanServer.start
.
Unfortunately EventServlet
calls addInterceptor
after start
causing that race condition.
Sandbox running Leshan @ 7fc4a58 on http://leshan.eclipse.org is dead. See logs below.
We have the following situation:
From that point, the ObservationListener.newValue() receives new values but the observation is with registration id 'reg1', while it should be 'reg2'.
Because of the invalid registration ID I'm also unable to find the client it is coming from. Therefore I suggest, that the Observation should contain the endpoint ID. Or, at least Leshan should update the existing Observations with the new registration ID, on ClientRegistryListener.updated(Client) event is received.
Hi. all
I'm working on lwm2m +dtls connection between leshan server(leshan.ecliplse.org) and lualwm2m+luadtls client
When I try to connect leshan server using psk or rpk both
It seems that they succeed the handshaking to the end (I checked with wireshark)
But nothing appears in the leshan server web gui. still connected clients:0
When I use the normal lwm2m client, leshan server shows connected clients
But not with DTLS...
What's wrong with my test? please help me.
I used the
https://github.com/sbernard31/lualwm2m/blob/master/sample/dtlssample_psk.lua
as a client :)
Thank you
Hello,
i would like to use LWM2M Server on a Raspberry pi 2.
Do i need additional configuration if i want to use it ?
What is implemented in this code ?
If i need to add something (features, functionalities, ...), is it possible?
Is it well documented?
Thanks,
Hezouwe
Following commit d16c6b3, a regression was introduced in the client side.
When an instance is created for a multi-instance object (e.g. Software Update, ACL), the TLV payload failed to be decoded because the instance Id is not provided.
I will provide a fix for this.
Names of some classes are confusing, for example the Client object is the Client Registration on the server and the LwM2mClient is an actual LWM2M client able to interact with a LwM2mServer.
Proposed renaming:
Client => Registration
ClientRegistry => RegistrationStore
ObservationRegistry => ObservationStore
SecurityRegistry, which support CRUD operation moves to demo, because it's not needed by LeshanServer. LeshanServer just needs the informations from SecurityStore
According the LWM2M TS, E.2
"A Bootstrap Server has no such an Object Instance associated to it."
So the shortServerId should be 0.
(When functions as "queue mode" or "sms" gets relevant also for the bootstrap, the TS may be required to be fixed :-) .)
Hi there,
We are currently doing performance tests with our application, which uses leshan as a base. We noticed that after a certain number of requests, the client or server seems to stop working.
In order for you to easily reproduce the behaviour, I did the same tests with leshan-server-demo and leshan-client-demo using the current master branch (0.1.11-M11-SNAPSHOT).
What I'm doing is very simple: Many GET requests on http://localhost:8080/api/clients/liberator/6/0/1?format=TLV
. "liberator" is the name of my machine, and resource /6/0/1 was randomly chosen and is irrelevant to the problem (it's the longitude resource of the location instance).
Here is the log from the server:
Jun 14, 2016 2:52:02 PM org.eclipse.californium.core.network.config.NetworkConfig createStandardWithFile
INFO: Loading standard properties from file Californium.properties
Jun 14, 2016 2:52:03 PM org.eclipse.californium.core.CoapServer start
INFO: Starting server
Jun 14, 2016 2:52:03 PM org.eclipse.californium.core.network.CoapEndpoint start
INFO: Starting endpoint at 0.0.0.0/0.0.0.0:5683
Jun 14, 2016 2:52:03 PM org.eclipse.californium.core.network.CoapEndpoint start
INFO: Starting endpoint at 0.0.0.0/0.0.0.0:5684
Jun 14, 2016 2:52:03 PM org.eclipse.californium.scandium.DTLSConnector start
INFO: DTLS connector listening on [0.0.0.0/0.0.0.0:5684] with MTU [1,280] using (inbound) datagram buffer size [16,474 bytes]
[2016-06-14 14:52:03,159 INFO LeshanServer] LWM2M server started at coap://0.0.0.0/0.0.0.0:5683, coaps://0.0.0.0/0.0.0.0:5684.
[2016-06-14 14:52:03,320 INFO LeshanServerDemo] Web server started at http://10.147.65.152:8080/.
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49319, Token=8b66e8d00703d6, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49317, Token=9a, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49318, Token=4e615e119f, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49320, Token=a01cd274, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49321, Token=38f8db, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49322, Token=d86f8f, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49323, Token=b8d725, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49319, Token=8b66e8d00703d6, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49321, Token=38f8db, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49323, Token=b8d725, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49320, Token=a01cd274, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49322, Token=d86f8f, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49318, Token=4e615e119f, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveResponse
INFO: Ignoring unmatchable piggy-backed response from /127.0.0.1:57340: ACK-2.05 MID=49317, Token=9a, OptionSet={"Content-Format":"unknown/1542"}, c4 01 39 36 2e 30
[2016-06-14 14:53:22,279 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,279 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,282 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,284 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,286 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,289 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
[2016-06-14 14:53:22,291 WARN ClientServlet] Request /api/clients/liberator/6/0/1 timed out.
And this is the client output:
Jun 14, 2016 2:52:16 PM org.eclipse.californium.core.network.config.NetworkConfig createStandardWithFile
INFO: Loading standard properties from file Californium.properties
[2016-06-14 14:52:16,919 INFO LeshanClientDemo] Press 'w','a','s','d' to change reported Location.
[2016-06-14 14:52:16,920 INFO LeshanClient] Starting Leshan client ...
Jun 14, 2016 2:52:16 PM org.eclipse.californium.core.CoapServer start
INFO: Starting server
Jun 14, 2016 2:52:16 PM org.eclipse.californium.core.network.CoapEndpoint start
INFO: Starting endpoint at 0.0.0.0/0.0.0.0:0
Jun 14, 2016 2:52:16 PM org.eclipse.californium.scandium.DTLSConnector start
INFO: DTLS connector listening on [0.0.0.0/0.0.0.0:38733] with MTU [1,280] using (inbound) datagram buffer size [16,474 bytes]
Jun 14, 2016 2:52:16 PM org.eclipse.californium.core.network.CoapEndpoint start
INFO: Starting endpoint at 0.0.0.0/0.0.0.0:0
[2016-06-14 14:52:16,931 INFO LeshanClient] Leshan client started.
[2016-06-14 14:52:16,945 INFO RegistrationEngine] Trying to register to coap://localhost:5683 ...
[2016-06-14 14:52:16,988 INFO RegistrationEngine] Next registration update in 27.0s...
[2016-06-14 14:52:16,989 INFO RegistrationEngine] Registered with location '/rd/8VTMJcBHpt'.
[2016-06-14 14:52:43,990 INFO RegistrationEngine] Trying to update registration to coap://localhost:5683 ...
[2016-06-14 14:52:43,996 INFO RegistrationEngine] Next registration update in 27.0s...
[2016-06-14 14:52:43,997 INFO RegistrationEngine] Registration update succeed.
[2016-06-14 14:52:46,706 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:52:46,706 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:52:46,706 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:52:46,707 INFO MyLocation] Read on Location Resource 1
...
[2016-06-14 14:53:17,276 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:53:17,276 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:53:17,277 INFO MyLocation] Read on Location Resource 1
[2016-06-14 14:53:17,277 INFO MyLocation] Read on Location Resource 1
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49317, Token=fe1a59, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49318, Token=fa, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49319, Token=1b1fe161, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49320, Token=714d971d053ddd, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49321, Token=f87e2ad40e423698, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49322, Token=1b46, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:17 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49323, Token=9ca326a2eeb917, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49319, Token=1b1fe161, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49321, Token=f87e2ad40e423698, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49323, Token=9ca326a2eeb917, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49320, Token=714d971d053ddd, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49322, Token=1b46, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49318, Token=fa, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
Jun 14, 2016 2:53:19 PM org.eclipse.californium.core.network.Matcher receiveRequest
INFO: Duplicate request: CON-GET MID=49317, Token=fe1a59, OptionSet={"Uri-Path":["6","0","1"], "Accept":"unknown/1542"}, no payload
FYI the line Read on Location Resource 1
occurs 65539 times.
There might be a problem with MIDs, but I'm not sure.
During a test event I noticed that the standalone server requires Internet connectivity to load some resources for the Web frontend (Angular, jQuery). Usually, this would not be a problem, but many interoperability testing events only provide local networks.
I would recommend to include all dependencies in the standalone server.
Hi,
are there any reasons why the method CaliforniumLwM2mRequestSender#cancelPendingRequests is not declared in interface LwM2mRequestSender? I am asking because we are implementing a LwM2mRequestSender with Queue Mode and also want to have requests canceled on unregister of clients.
Thanks
Daniel
Hi Team,
I am trying to learn leshan, started implementing custom object on the client side and ended up with following error.
I am no expert in Java, may be its basic question. but can any one help me how to and where to create the model.
I tried going through the code to see if there is any example object, but i could not find. If some one can point me to the class then i can try to learn from it.
thanks much your help is much appreciated.
Exception in thread "main" java.lang.IllegalArgumentException: Cannot set Instances Class for Object 150 because no model is defined for this id. at org.eclipse.leshan.client.resource.ObjectsInitializer.setInstancesForObject(ObjectsInitializer.java:79) at org.eclipse.leshan.client.demo.LeshanClientDemo.createAndStartClient(LeshanClientDemo.java:264) at org.eclipse.leshan.client.demo.LeshanClientDemo.main(LeshanClientDemo.java:200)
Hi All,
I have the following setup:
If laptop3 observes any resource of DEVKIT on leshan, the resource change is notified as usual. But if LAPTOP2 reads the same resource then, it is also notified on every resource change operation.
This means that observe responses are being sent to all the HTTP clients connected reading the same resource of an LWM2M client.
Fix: I think the updated response should only be sent to the HTTP client opting for observe and not the ones just reading the resource.
As of version 0.1.11-M9-SNAPSHOT deployed on leshan.eclipse.org, leshan throws an exception, if the JSON payload contains the Base Name attribute.
To test, one can use the wakaama client from branch json_improvement (https://github.com/eclipse/wakaama/tree/json_improvement) and make a Read of Device object.
Regards,
Hello,
First - thanks for providing such a good tool!
Now for the bug-report. The IPSO Temperature has its max range value as executable when it should be read only.
-- Joakim
Hi eclipse/leshan
I have been testing queue mode with Leshan for a few days now, and I am seeing an inconsistency in the Leshan implementation vs the OMA spec @ http://dev_devtoolkit.openmobilealliance.org/IoT/LWM2M10/doc/TS/index.html#!Documents/queuemodeoperation.htm
Spec defines in Section 8.3 "Each request is sent serially to the LWM2M Client, waiting for request to be Acknowledged before sending the next request"
In the Leshan web console, if I click more than one 'read' button, eg /3/0/1, /3/0/2, and /3/0/3, I receive all 3 commands in a single payload from my modem. I have even seen up to 5 coap requests downstream.
I am using an LTE modem with a UDP socket. I cannot access the raw UDP payloads unfortunately to see if the 3 GET commands are actually in separate packets. Despite this detail, according to the OMA queue mode spec, I should be receiving no more than 1 downstream request at a time.
For example, here are 5 requests that have been concatenated -
read 93 bytes rx:44 1 58 de b9 6b 2d e6 b1 33 1 30 1 31 43 1 58 df 28 9d 24 b1 33 1 30 1 32 47 1 58 e0 e8 9f 67 18 59 8a e7 b1 33 1 30 1 30 44 1 58 de b9 6b 2d e6 b1 33 1 30 1 31 43 1 58 df 28 9d 24 b1 33 1 30 1 32 47 1 58 e0 e8 9f 67 18 59 8a e7 b1 33 1 30 1 30 60 44 2c b3 c0
The problem here is demarcation. I do know that 0x43 starts the second payload, however, this could be another option delta/length byte.
Hello,
i would like to use LWM2M Server on a Raspberry pi 2.
Do i need additional configuration if i want to use it ?
What is implemented in this code ?
If i need to add something (features, functionalities, ...), is it possible?
Is it well documented?
Thanks,
Hezouwe
Below was the steps followed with leshan-0.1.11-M8 snapshot.
Attaching logs with commands used to invoke all three. I am using unchanged code as from leshan-0.1.11-M8 snapshot
As I see during TLV encoding/decoding for data format you do round modification(divide/multiply to 1000). I use mbed client for connection to leshan. I fill resource "Current time" value by simple "time" C function.When I read resource everything is okay, but if try to read all object instance: I got error:"Invalid content for type TIME". Have I do this round modification(divide my current time by 1000) on client side or it is yours issue?
Hi.
Is there a way to monitor the connection status of of LeshanClient?
It would be much better if it can provide a callback or listener interfaces.
Thanks.
I've tried to run to the Leshan client in a custom embedded JVM.
If the JVM was created with the 'compact1' profile (http://docs.oracle.com/javase/8/embedded/develop-apps-platforms/compact-profiles.htm), the java.sql.Time dependency is missing:
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Time
at com.google.gson.Gson.<init>(Gson.java:230)
at com.google.gson.GsonBuilder.create(GsonBuilder.java:545)
at org.eclipse.leshan.core.model.ObjectLoader.<clinit>(ObjectLoader.java:46)
at org.eclipse.leshan.client.resource.ObjectsInitializer.<init>(ObjectsInitializer.java:50)
at org.eclipse.leshan.client.resource.ObjectsInitializer.<init>(ObjectsInitializer.java:45)
at org.eclipse.leshan.client.example.LeshanClientExample.<init>(LeshanClientExample.java:82)
at org.eclipse.leshan.client.example.LeshanClientExample.main(LeshanClientExample.java:68)
Caused by: java.lang.ClassNotFoundException: java.sql.Time
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
No problem when running in a 'compact2' JVM (adding JDBC package).
But it would be nice to be able to run the client in a minimal embedded JVM.
Hello,
i was wondering if i can configure the same client endpoint in the bootstrap to 2 different leshan servers.
Best Regards
I have the following scenario.
@sbernard31 suspected this as the reason
1. Start Server
2. Start Client it connects using PSK (an handshake DTLS is done and a DTLS connection is created)
3. Restart Server (So the server lost DTLS connections for all clients)
4. Client try to do an update using the current DTLS connection but the server ignore the message as it has no connection for this client.
5. Client get a timeout and retry later but still using the same DTLS connection, so get timeout again.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] leshan
[INFO] leshan - core
[INFO] leshan - server core
[INFO] leshan - server californium
[INFO] leshan - client core
[INFO] leshan - client californium
[INFO] leshan - standalone bootstrap server
[INFO] leshan - integration tests
[INFO] leshan - client example
[INFO] leshan - standalone server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master
[INFO] Storing buildNumber: null at timestamp: 1449213508719
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master
[INFO] Storing buildNumber: null at timestamp: 1449213509064
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ leshan ---
[INFO] Installing /root/Desktop/leshan-master/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan/0.1.11-M7-SNAPSHOT/leshan-0.1.11-M7-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - core 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml
Downloading: https://repo.eclipse.org/content/groups/californium/org/slf4j/slf4j-api/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/maven-metadata.xml (2 KB at 1.3 KB/sec)
Downloading: https://repo.eclipse.org/content/groups/californium/org/apache/logging/log4j/log4j-core/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/maven-metadata.xml (1001 B at 1.6 KB/sec)
[WARNING] Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
Downloading: https://repo.eclipse.org/content/groups/californium/org/apache/logging/log4j/log4j-slf4j-impl/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/maven-metadata.xml (795 B at 1.3 KB/sec)
Downloading: http://download.oracle.com/maven/org/slf4j/slf4j-api/maven-metadata.xml
Downloading: http://repository.apache.org/snapshots/org/slf4j/slf4j-api/maven-metadata.xml
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-core
[INFO] Storing buildNumber: null at timestamp: 1449213539342
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-core ---
[INFO] Surefire report directory: /root/Desktop/leshan-master/leshan-core/target/surefire-reports
Running org.eclipse.leshan.LinkObjectTest
</1/0>;number1=1;number2=1;string1="stringval1", </2>;number3=3
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec - in org.eclipse.leshan.LinkObjectTest
Running org.eclipse.leshan.core.node.codec.LwM2mNodeEncoderTest
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.54 sec - in org.eclipse.leshan.core.node.codec.LwM2mNodeEncoderTest
Running org.eclipse.leshan.core.node.codec.LwM2mNodeDecoderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.117 sec - in org.eclipse.leshan.core.node.codec.LwM2mNodeDecoderTest
Running org.eclipse.leshan.core.node.codec.Lwm2mNodeEncoderUtilTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec - in org.eclipse.leshan.core.node.codec.Lwm2mNodeEncoderUtilTest
Running org.eclipse.leshan.core.node.LwM2MResourceTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in org.eclipse.leshan.core.node.LwM2MResourceTest
Running org.eclipse.leshan.ObserveSpecTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec - in org.eclipse.leshan.ObserveSpecTest
Running org.eclipse.leshan.tlv.TlvDecoderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec - in org.eclipse.leshan.tlv.TlvDecoderTest
Running org.eclipse.leshan.tlv.TlvEncoderTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.039 sec - in org.eclipse.leshan.tlv.TlvEncoderTest
Running org.eclipse.leshan.json.JsonDeserializerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec - in org.eclipse.leshan.json.JsonDeserializerTest
Running org.eclipse.leshan.json.JsonSerializerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in org.eclipse.leshan.json.JsonSerializerTest
Results :
Tests run: 67, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ leshan-core ---
[WARNING] Bundle org.eclipse.leshan:leshan-core:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.apache.commons.lang.*
[WARNING] Bundle org.eclipse.leshan:leshan-core:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.eclipse.californium.*
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-core
[INFO] Storing buildNumber: null at timestamp: 1449213545317
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-core ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-core ---
[INFO] Installing /root/Desktop/leshan-master/leshan-core/target/leshan-core-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-core/0.1.11-M7-SNAPSHOT/leshan-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-core/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-core/0.1.11-M7-SNAPSHOT/leshan-core-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-core/target/leshan-core-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-core/0.1.11-M7-SNAPSHOT/leshan-core-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ leshan-core ---
[INFO] Installing org/eclipse/leshan/leshan-core/0.1.11-M7-SNAPSHOT/leshan-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - server core 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-server-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-core
[INFO] Storing buildNumber: null at timestamp: 1449213546649
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-server-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-server-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-server-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-server-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-server-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-server-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-server-core ---
[INFO] Surefire report directory: /root/Desktop/leshan-master/leshan-server-core/target/surefire-reports
Running org.eclipse.leshan.server.impl.ClientRegistryImplTest
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.801 sec - in org.eclipse.leshan.server.impl.ClientRegistryImplTest
Running org.eclipse.leshan.server.impl.ObservationRegistryImplTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in org.eclipse.leshan.server.impl.ObservationRegistryImplTest
Running org.eclipse.leshan.server.client.ClientSortObjectTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.eclipse.leshan.server.client.ClientSortObjectTest
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ leshan-server-core ---
[WARNING] Bundle org.eclipse.leshan:leshan-server-core:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.apache.commons.lang.*
[WARNING] Bundle org.eclipse.leshan:leshan-server-core:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.eclipse.californium.*
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-server-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-server-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-core
[INFO] Storing buildNumber: null at timestamp: 1449213548898
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-server-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-server-core ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-server-core ---
[INFO] Installing /root/Desktop/leshan-master/leshan-server-core/target/leshan-server-core-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-server-core/0.1.11-M7-SNAPSHOT/leshan-server-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-server-core/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-server-core/0.1.11-M7-SNAPSHOT/leshan-server-core-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-server-core/target/leshan-server-core-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-server-core/0.1.11-M7-SNAPSHOT/leshan-server-core-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ leshan-server-core ---
[INFO] Installing org/eclipse/leshan/leshan-server-core/0.1.11-M7-SNAPSHOT/leshan-server-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - server californium 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
Downloading: https://repo.eclipse.org/content/groups/californium/org/mockito/mockito-all/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/mockito/mockito-all/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/mockito/mockito-all/maven-metadata.xml (2 KB at 2.1 KB/sec)
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-server-cf ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-cf
[INFO] Storing buildNumber: null at timestamp: 1449213551886
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-cf
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-server-cf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-server-cf/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-server-cf ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-server-cf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-server-cf/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-server-cf ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-server-cf ---
[INFO] Surefire report directory: /root/Desktop/leshan-master/leshan-server-cf/target/surefire-reports
Running org.eclipse.leshan.server.californium.impl.CoapRequestBuilderTest
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.797 sec - in org.eclipse.leshan.server.californium.impl.CoapRequestBuilderTest
Running org.eclipse.leshan.server.californium.impl.CaliforniumObservationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.129 sec - in org.eclipse.leshan.server.californium.impl.CaliforniumObservationTest
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ leshan-server-cf ---
[WARNING] Bundle org.eclipse.leshan:leshan-server-cf:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.apache.commons.lang.*
[WARNING] Bundle org.eclipse.leshan:leshan-server-cf:bundle:0.1.11-M7-SNAPSHOT : Did not find matching referal for org.eclipse.leshan.core.objectspec.*
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-server-cf >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-server-cf ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-cf
[INFO] Storing buildNumber: null at timestamp: 1449213555467
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-server-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-server-cf
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-server-cf <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-server-cf ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-server-cf ---
[INFO] Installing /root/Desktop/leshan-master/leshan-server-cf/target/leshan-server-cf-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-server-cf/0.1.11-M7-SNAPSHOT/leshan-server-cf-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-server-cf/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-server-cf/0.1.11-M7-SNAPSHOT/leshan-server-cf-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-server-cf/target/leshan-server-cf-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-server-cf/0.1.11-M7-SNAPSHOT/leshan-server-cf-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ leshan-server-cf ---
[INFO] Installing org/eclipse/leshan/leshan-server-cf/0.1.11-M7-SNAPSHOT/leshan-server-cf-0.1.11-M7-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - client core 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213556369
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-client-core ---
[INFO] Surefire report directory: /root/Desktop/leshan-master/leshan-client-core/target/surefire-reports
Running org.eclipse.leshan.client.util.ObserveSpecParserTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289 sec - in org.eclipse.leshan.client.util.ObserveSpecParserTest
Running org.eclipse.leshan.client.util.LinkFormatHelperTest
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.892 sec - in org.eclipse.leshan.client.util.LinkFormatHelperTest
Results :
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] >>> maven-bundle-plugin:2.5.4:bundle (default-bundle) > package @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213559286
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-client-core ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213559493
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-client-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-client-core ---
[INFO]
[INFO] <<< maven-bundle-plugin:2.5.4:bundle (default-bundle) < package @ leshan-client-core <<<
[INFO]
[INFO] --- maven-bundle-plugin:2.5.4:bundle (default-bundle) @ leshan-client-core ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213561063
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-client-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-client-core ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-client-core ---
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/target/leshan-client-core-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/target/leshan-client-core-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] >>> maven-bundle-plugin:2.5.4:install (default-install) > install @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213561460
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-client-core ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO]
[INFO] >>> maven-bundle-plugin:2.5.4:bundle (default-bundle) > package @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213561783
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-client-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-client-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-client-core ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213562078
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-client-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-client-core ---
[INFO]
[INFO] <<< maven-bundle-plugin:2.5.4:bundle (default-bundle) < package @ leshan-client-core <<<
[INFO]
[INFO] --- maven-bundle-plugin:2.5.4:bundle (default-bundle) @ leshan-client-core ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-client-core >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-core ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildNumber: null at timestamp: 1449213562756
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-core && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-core
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-client-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-client-core ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-client-core ---
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/target/leshan-client-core-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-client-core/target/leshan-client-core-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] <<< maven-bundle-plugin:2.5.4:install (default-install) < install @ leshan-client-core <<<
[INFO]
[INFO] --- maven-bundle-plugin:2.5.4:install (default-install) @ leshan-client-core ---
[INFO] Installing org/eclipse/leshan/leshan-client-core/0.1.11-M7-SNAPSHOT/leshan-client-core-0.1.11-M7-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - client californium 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-cf ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-cf
[INFO] Storing buildNumber: null at timestamp: 1449213563404
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-cf
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ leshan-client-cf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-cf/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-client-cf ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ leshan-client-cf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-client-cf/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-client-cf ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-client-cf ---
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ leshan-client-cf ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-client-cf >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-client-cf ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-cf
[INFO] Storing buildNumber: null at timestamp: 1449213564103
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-client-cf && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-client-cf
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-client-cf <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-client-cf ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ leshan-client-cf ---
[INFO] Installing /root/Desktop/leshan-master/leshan-client-cf/target/leshan-client-cf-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-cf/0.1.11-M7-SNAPSHOT/leshan-client-cf-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-client-cf/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-client-cf/0.1.11-M7-SNAPSHOT/leshan-client-cf-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-client-cf/target/leshan-client-cf-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-client-cf/0.1.11-M7-SNAPSHOT/leshan-client-cf-0.1.11-M7-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ leshan-client-cf ---
[INFO] Installing org/eclipse/leshan/leshan-client-cf/0.1.11-M7-SNAPSHOT/leshan-client-cf-0.1.11-M7-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - standalone bootstrap server 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
Downloading: https://repo.eclipse.org/content/groups/californium/commons-codec/commons-codec/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/maven-metadata.xml (612 B at 1.0 KB/sec)
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-bs-server ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-bs-server && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-bs-server
[INFO] Storing buildNumber: null at timestamp: 1449213566666
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-bs-server && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-bs-server
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ leshan-bs-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-bs-server ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ leshan-bs-server ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-bs-server/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-bs-server ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-bs-server ---
[INFO]
[INFO] --- maven-jar-plugin:2.1:jar (default-jar) @ leshan-bs-server ---
[INFO] Building jar: /root/Desktop/leshan-master/leshan-bs-server/target/leshan-bs-server-0.1.11-M7-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ leshan-bs-server >>>
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-bs-server ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-bs-server && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-bs-server
[INFO] Storing buildNumber: null at timestamp: 1449213567450
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-bs-server && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-bs-server
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ leshan-bs-server <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ leshan-bs-server ---
[INFO]
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ leshan-bs-server ---
[INFO] artifact org.slf4j:slf4j-api: checking for updates from Californium
[INFO] artifact org.slf4j:slf4j-api: checking for updates from central
[INFO] artifact org.apache.logging.log4j:log4j-core: checking for updates from Californium
[INFO] artifact org.apache.logging.log4j:log4j-core: checking for updates from central
[INFO] artifact org.apache.logging.log4j:log4j-slf4j-impl: checking for updates from Californium
[INFO] artifact org.apache.logging.log4j:log4j-slf4j-impl: checking for updates from central
[INFO] Building jar: /root/Desktop/leshan-master/leshan-bs-server/target/leshan-bs-server-0.1.11-M7-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ leshan-bs-server ---
[INFO] Installing /root/Desktop/leshan-master/leshan-bs-server/target/leshan-bs-server-0.1.11-M7-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/leshan/leshan-bs-server/0.1.11-M7-SNAPSHOT/leshan-bs-server-0.1.11-M7-SNAPSHOT.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-bs-server/pom.xml to /root/.m2/repository/org/eclipse/leshan/leshan-bs-server/0.1.11-M7-SNAPSHOT/leshan-bs-server-0.1.11-M7-SNAPSHOT.pom
[INFO] Installing /root/Desktop/leshan-master/leshan-bs-server/target/leshan-bs-server-0.1.11-M7-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/leshan/leshan-bs-server/0.1.11-M7-SNAPSHOT/leshan-bs-server-0.1.11-M7-SNAPSHOT-sources.jar
[INFO] Installing /root/Desktop/leshan-master/leshan-bs-server/target/leshan-bs-server-0.1.11-M7-SNAPSHOT-jar-with-dependencies.jar to /root/.m2/repository/org/eclipse/leshan/leshan-bs-server/0.1.11-M7-SNAPSHOT/leshan-bs-server-0.1.11-M7-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building leshan - integration tests 0.1.11-M7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.logging.log4j:log4j-core/maven-metadata.xml from https://repo.eclipse.org/content/groups/californium/ was cached in the local repository, resolution will not be reattempted until the update interval of Californium has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.logging.log4j:log4j-core/maven-metadata.xml from/to Californium (https://repo.eclipse.org/content/groups/californium/): Connect to repo.eclipse.org:443 [repo.eclipse.org/198.41.30.233] failed: Connection refused
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ leshan-integration-tests ---
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-integration-tests && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-integration-tests
[INFO] Storing buildNumber: null at timestamp: 1449213581424
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: /bin/sh: git: command not found
[INFO] Executing: /bin/sh -c cd /root/Desktop/leshan-master/leshan-integration-tests && git rev-parse --verify HEAD
[INFO] Working directory: /root/Desktop/leshan-master/leshan-integration-tests
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ leshan-integration-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/Desktop/leshan-master/leshan-integration-tests/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ leshan-integration-tests ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ leshan-integration-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ leshan-integration-tests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ leshan-integration-tests ---
[INFO] Surefire report directory: /root/Desktop/leshan-master/leshan-integration-tests/target/surefire-reports
Running org.eclipse.leshan.integration.tests.WriteTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.285 sec - in org.eclipse.leshan.integration.tests.WriteTest
Running org.eclipse.leshan.integration.tests.DiscoverTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.517 sec - in org.eclipse.leshan.integration.tests.DiscoverTest
Running org.eclipse.leshan.integration.tests.RegistrationTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec - in org.eclipse.leshan.integration.tests.RegistrationTest
Running org.eclipse.leshan.integration.tests.DeleteTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.177 sec - in org.eclipse.leshan.integration.tests.DeleteTest
Running org.eclipse.leshan.integration.tests.ExecuteTest
Execute on resource 4 params
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.154 sec - in org.eclipse.leshan.integration.tests.ExecuteTest
Running org.eclipse.leshan.integration.tests.CreateTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.307 sec - in org.eclipse.leshan.integration.tests.CreateTest
Running org.eclipse.leshan.integration.tests.ObserveTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec - in org.eclipse.leshan.integration.tests.ObserveTest
Running org.eclipse.leshan.integration.tests.ReadTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.253 sec - in org.eclipse.leshan.integration.tests.ReadTest
Running org.eclipse.leshan.integration.tests.SecurityTest
Tests run: 17, Failures: 0, Errors: 17, Skipped: 0, Time elapsed: 0.094 sec <<< FAILURE! - in org.eclipse.leshan.integration.tests.SecurityTest
registered_device_with_bad_psk_key_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.02 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_rpk_to_server_with_rpk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.005 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_psk_and_bad_endpoint_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_psk_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_rpk_and_psk_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_rpk_and_psk_to_server_with_rpk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_rpk_and_bad_endpoint_to_server_with_rpk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_psk_and_x509cert_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_to_server_with_rpk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_psk_and_x509cert_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_rpk_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.004 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_and_untrusted_CA_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_and_bad_endpoint_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_bad_psk_identity_to_server_with_psk(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_and_bad_cn_certificate_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0.007 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
registered_device_with_x509cert_and_bad_private_key_to_server_with_x509cert(org.eclipse.leshan.integration.tests.SecurityTest) Time elapsed: 0 sec <<< ERROR!
java.lang.RuntimeException: java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:695)
at java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:146)
at org.eclipse.leshan.integration.tests.SecureIntegrationTestHelper.(SecureIntegrationTestHelper.java:84)
at org.eclipse.leshan.integration.tests.SecurityTest.(SecurityTest.java:35)
Results :
Tests in error:
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
SecurityTest.:35 » Runtime java.security.NoSuchAlgorithmException: EC Al...
Tests run: 64, Failures: 0, Errors: 17, Skipped: 5
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] leshan ............................................. SUCCESS [ 2.227 s]
[INFO] leshan - core ...................................... SUCCESS [ 36.830 s]
[INFO] leshan - server core ............................... SUCCESS [ 2.779 s]
[INFO] leshan - server californium ........................ SUCCESS [ 6.568 s]
[INFO] leshan - client core ............................... SUCCESS [ 7.408 s]
[INFO] leshan - client californium ........................ SUCCESS [ 0.995 s]
[INFO] leshan - standalone bootstrap server ............... SUCCESS [ 16.952 s]
[INFO] leshan - integration tests ......................... FAILURE [ 6.198 s]
[INFO] leshan - client example ............................ SKIPPED
[INFO] leshan - standalone server ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:22 min
[INFO] Finished at: 2015-12-04T07:19:47+00:00
[INFO] Final Memory: 28M/67M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project leshan-integration-tests: There are test failures.
[ERROR]
[ERROR] Please refer to /root/Desktop/leshan-master/leshan-integration-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :leshan-integration-tests
Is this DeleteRequest
on SERVER
object intentional ? Feels it should have been on SECURITY
object. Shall I go with a pull request ?
It could be nice to add an easy way to test Firmware Update to leshan-server-demo
and leshan-client-demo
.
We have a work in progress about that in the fwupdate branch.
Can anyone please help to find out sample demo code base that has SOFTWARE_MANAGEMENT & CONNECTIVITY_MONITORING.
When some object has many instances I don't see another objects. For example, if I have ACL with more than 5 instances I don't see instances of Server object.
After Issue #75 (I think) the demo server can't create objects.
When using the "Create new instance" button I get the following error:
Unable to create instance XXX : 400 Create request must target an object
Close
In leshan-integration-tests project, there could be more test cases like below. Is the number of test cases intentionally limited or shall I submit a pull request with more test cases ?
May be, I'm totaly wrong, but why does
org.eclipse.leshan.core.request.WriteRequest
offer a constructor with mode and resourceid (e.g.
public WriteRequest(final Mode mode, final int objectId, final int objectInstanceId, final int resourceId,
String value)
In my understanding of the LWM2M TS, writing to resources always use PUT (REPLACE). So the API may lead to wrong messages, if POST (UPDATE) is used.
In this constructor
/**
* @param file the file path to persist the registry
*/
public SecurityRegistryImpl(String file, PrivateKey serverPrivateKey, X509Certificate[] serverX509CertChain,
Certificate[] trustedCertificates) {
Validate.notEmpty(file);
Validate.notEmpty(serverX509CertChain);
Validate.notEmpty(trustedCertificates);
filename = file;
this.serverPrivateKey = serverPrivateKey;
this.serverX509CertChain = serverX509CertChain;
this.trustedCertificates = trustedCertificates;
loadFromFile();
}
I would add:
// extract the raw public key from the first certificate in the chain
this.serverPublicKey = serverX509CertChain[0].getPublicKey();
Or the SecurityRegistry#getServerPublicKey()
will always return null
which can be a problem for the LeshanServerDemo security page which try to display the server public key
how to add attributes to each resources of leshan client ??
attributes like interface type,content-type,observable etc .
so ,While registering the attributes will also get passed along with the resource path .
and not anymore ("application/vnd.oma.lwm2m+text", 1541)
Hello,
i would like to use LWM2M Server on a Raspberry pi 2.
Do i need additional configuration if i want to use it ?
What is implemented in this code ?
If i need to add something (features, functionalities, ...), is it possible?
Is it well documented?
Thanks,
Hezouwe
Below was the steps followed with leshan-0.1.11-M8 snapshot.
Logs attached with commands used to invoke BS, DM & Client. I had tweaked BS lightly to use PSK for bootstrapping.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.