Skip to content
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

SocketListener error java.lang.StringIndexOutOfBoundsException #57

Open
alexmuntean opened this issue Jan 28, 2019 · 1 comment
Open

Comments

@alexmuntean
Copy link

Hi,

With latest udpate from homekit on my appleTv I got a new error which I don't know how to fix.
All devices become inactive with "no response" status and in my logs I see this:

Exception in thread "SocketListener(amuntean-Z68X-UD3H-B3.local.)" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967) at javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType(ServiceInfoImpl.java:291) at javax.jmdns.impl.JmDNSImpl.registerServiceType(JmDNSImpl.java:1074) at javax.jmdns.impl.JmDNSImpl.handleRecord(JmDNSImpl.java:1383) at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:1412) at javax.jmdns.impl.SocketListener.run(SocketListener.java:60)
I also don't have a very stable connection here...

Thanks,
Alex

@alexmuntean
Copy link
Author

alexmuntean commented Jan 28, 2019

I actually found the bug...
https://github.com/jmdns/jmdns/blob/jmdns-3.4.1/src/main/java/javax/jmdns/impl/ServiceInfoImpl.java
When I have time I'll try to fix it and do a pull request

I'll update this lib and see if the issue persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant