Hi
Simon
Which version of Leshan did you use ?
>>>>>>>>>>>>Fri
Jan 13 16:01 commit e11bf35657fa8e2abbd90aed2097f9058abd4897
Which client did you use ?
>>>>>>>>>>>>Wakaama,
I believe the problem might be there. However, it works with
Leshan M11 May 11, b54557013bd269c0d17cb46e984b77c939e1aa12
Where the log above comes from ?
>>>>>>>>>>>>>>Leshan
Server Demo in client and into the Coap Messages Window.
Thanks
and Kind Regards,
Riccardo.
Hi,
I tried to reproduce your problem and it works for me. I
used the master (commit
4d1af8df3b439b2f0c763a74bd5bd75f9db5cfce) version of Leshan
client and Leshan server.
Which version of Leshan did you use ?
Which client did you use ?
"
CON-GET Uri-Path: "1", "0" - Accept: "unknown/11542"
ACK-2.05
10916 8953 Content-Format: "image/jpeg"
Hex:c10001c2010096c10200c10301c10500c10600c2075551"
Where the log above comes from ?
Simon
Le 19/01/2017 à 15:16, Riccardo Pozza a
écrit :
Hi,
I’ve
just updated to latest Leshan. When I get the data of a
single resource as such, it works:
CON-GET
Uri-Path: "1", "0", "0" - Accept: "text/plain"
ACK-2.05
Content-Format: "text/plain" 1
However,
when I try to get a full instance (or data as /3/0/6 or
/3/0/7), it doesn’t work and return an acknowledgement
with content format image/jpeg (?):
CON-GET
Uri-Path: "1", "0" - Accept: "unknown/11542"
ACK-2.05
10916 8953 Content-Format: "image/jpeg"
Hex:c10001c2010096c10200c10301c10500c10600c2075551
Plus,
I do get:
java.lang.IllegalArgumentException: The validated object
is null
at
org.eclipse.leshan.util.Validate.notNull(Validate.java:222)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.util.Validate.notNull(Validate.java:205)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.core.response.ReadResponse.<init>(ReadResponse.java:41)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.server.californium.impl.LwM2mResponseBuilder.visit(LwM2mResponseBuilder.java:89)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.core.request.ReadRequest.accept(ReadRequest.java:134)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.server.californium.impl.CaliforniumLwM2mRequestSender$1.buildResponse(CaliforniumLwM2mRequestSender.java:102)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.leshan.core.californium.SyncRequestObserver.onResponse(SyncRequestObserver.java:49)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.coap.Request.setResponse(Request.java:451)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.server.ServerMessageDeliverer.deliverResponse(ServerMessageDeliverer.java:169)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.CoapUdpStack$StackTopAdapter.receiveResponse(CoapUdpStack.java:206)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.AbstractLayer.receiveResponse(AbstractLayer.java:103)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.AbstractLayer.receiveResponse(AbstractLayer.java:103)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.ObserveLayer.receiveResponse(ObserveLayer.java:146)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.AbstractLayer.receiveResponse(AbstractLayer.java:103)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.BlockwiseLayer.receiveResponse(BlockwiseLayer.java:322)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.AbstractLayer.receiveResponse(AbstractLayer.java:103)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.ReliabilityLayer.receiveResponse(ReliabilityLayer.java:265)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.AbstractLayer.receiveResponse(AbstractLayer.java:103)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.stack.CoapUdpStack.receiveResponse(CoapUdpStack.java:145)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.receiveResponse(CoapEndpoint.java:807)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.receiveMessage(CoapEndpoint.java:709)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.CoapEndpoint$InboxImpl.access$1000(CoapEndpoint.java:668)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.CoapEndpoint$InboxImpl$1.run(CoapEndpoint.java:682)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
org.eclipse.californium.core.network.CoapEndpoint$5.run(CoapEndpoint.java:858)
~[leshan-server-demo-0.1.11-M15-SNAPSHOT-jar-with-dependencies.jar:?]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
~[?:1.8.0_111]
at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[?:1.8.0_111]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
~[?:1.8.0_111]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
~[?:1.8.0_111]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[?:1.8.0_111]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[?:1.8.0_111]
at java.lang.Thread.run(Thread.java:745)
[?:1.8.0_111]
Any
idea, how to fix this?
Thanks
and Kind Regards,
Riccardo.
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev