java.lang.ArrayIndexOutOfBoundsException: -1

GitHub | tresf | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Find All Printers IndexOutOfBoundsException

    GitHub | 7 months ago | tresf
    java.lang.ArrayIndexOutOfBoundsException: -1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at qz.utils.ShellUtilities.getCupsPrinters()
    2. qz.utils
      PrintingUtilities.getDriver
      1. qz.utils.ShellUtilities.getCupsPrinters(Unknown Source)
      2. qz.utils.PrintingUtilities.getPrinterId(Unknown Source)
      3. qz.utils.PrintingUtilities.getDriver(Unknown Source)
      3 frames
    3. qz.printer
      PrintServiceMatcher.getPrintersJSON
      1. qz.printer.PrintServiceMatcher.getPrintersJSON(Unknown Source)
      1 frame
    4. qz.ws
      PrintSocketClient.onMessage
      1. qz.ws.PrintSocketClient.processMessage(Unknown Source)
      2. qz.ws.PrintSocketClient.onMessage(Unknown Source)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(CallableMethod.java:70)
      2. org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMethod.call(OptionalSessionCallableMethod.java:68)
      3. org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver$2.run(JettyAnnotatedEventDriver.java:210)
      4. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      5. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      5 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame