-
Notifications
You must be signed in to change notification settings - Fork 411
Leshan server demo throws null-pointer exception #1580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, Thx for reporting this. 🙏 My guess is there is something which doesn't match about the endpoint URI. I let you know when I have something you can use to reproduce. |
I created a new branch unknown_endpoint about that. Is it easy for you to test just like this ? (I mean do you already build Leshan?) |
Thanks. Here are the new logs. I think there may be something wrong when defining the interface of the endpoint at which the node registered itself, because then it can't be match to the actual ones.
|
Yep it seems there is something unexpected with :
I will try to investigate a bit more. Perhaps, a workaround for you would be to use IPv4 ? |
Thanks. Unfortunately, IPv4 is currently not an option for me, as most of the networking infrastructure in RIOT is IPv6. |
I try to understand the It seems this is relative to local link address, so I guess you should not get same issue when testing with : https://leshan.eclipseprojects.io ? Or ? |
It is indeed because I'm using link local addresses. It specifies the interface. I'm not able to test with leshan.eclipseprojects.io because I don't see an IPv6 for it. I can try later again by using global addresses, locally. |
I didn't test it recently but I remember that we add an ipv6 address to leshan sandbox : #1210 I just run
Tell what makes you think that ipv6 is not supported ? (maybe it doesn't really work ?)
Yep I need to understand this better to know how Leshan should behave in this case 🤔 |
Hmm interesting,
I'll give it a try later |
Ok It's still not crystal clear to me how Leshan should behave with zone id but I understand this should be more or less transparent. The question remaining is why we get In Leshan we have 2 ways to create the endpoint URI :
Looking at : https://www.rfc-editor.org/rfc/rfc6874#section-2, we can read :
and :
I understand the right way should be to use |
I created a PR to try to fix that : #1581. Could you test it and tell me if it fix your issue. 🙏 |
it works! |
Great 🎉 Thx a lot for your help 🙏 I will integrate this soon in |
I gonna integrate #1581 in |
Version(s)
leshan-server-demo v2.0.0-SNAPSHOT Commit ID : f23254c Build Date: Wed Jan 31 18:03:33 CET 2024 (1706720613007) JVM: 11.0.21 (Oracle Corporation OpenJDK 64-Bit Server VM 11.0.21+9) OS: Linux 5.10.206-1-MANJARO amd64 Code Source: https://github.com/eclipse/leshan/tree/f23254c85928bf0eba54c10b515b36ef050a6959
Which components
leshan server demo
Tested With
wakaama-based RIOT implementation
What happened
After a successful client registration, attempts to read any resource from the client throw a NullPointerException. No packet is sent to the client.
How to reproduce
Configure and build the
lwm2m
example using this RIOT PR: RIOT-OS/RIOT#16233Configure the right credentials on the Leshan server and trigger a registration. Upon successful registration, try to read any resource on the device.
Relevant Output
The text was updated successfully, but these errors were encountered: