GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SocketListener error java.lang.StringIndexOutOfBoundsException · Issue #57 · hap-java/HAP-Java

SocketListener error java.lang.StringIndexOutOfBoundsException  #57

New issue
Copy link
New issue
Copy link
Open
Open
SocketListener error java.lang.StringIndexOutOfBoundsException #57
Copy link

Description

@alexmuntean
alexmuntean
opened on Jan 28, 2019
Issue body actions

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

Activity

  1. alexmuntean commented on Jan 28, 2019

    @alexmuntean
    alexmuntean
    on Jan 28, 2019
    Author
    More actions

    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

    Reacted by Tim Harper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.