java.lang.IndexOutOfBoundsException: levels.length = 3 start: 2 limit: 11

Stack Overflow | Jan Śmietana | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Inserting special characters into HTMLDocument causes IndexOutOfBoundsException in BidiUtils?

    Stack Overflow | 8 months ago | Jan Śmietana
    java.lang.IndexOutOfBoundsException: levels.length = 3 start: 2 limit: 11

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      levels.length = 3 start: 2 limit: 11

      at sun.font.BidiUtils.getLevels()
    2. Java RT
      HTMLDocument.insertAfterEnd
      1. sun.font.BidiUtils.getLevels(BidiUtils.java:58)
      2. javax.swing.text.AbstractDocument.calculateBidiLevels(AbstractDocument.java:1223)
      3. javax.swing.text.AbstractDocument.updateBidi(AbstractDocument.java:1049)
      4. javax.swing.text.AbstractDocument.insertUpdate(AbstractDocument.java:965)
      5. javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:215)
      6. javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:431)
      7. javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3738)
      8. javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:2544)
      9. javax.swing.text.html.HTMLDocument.insertHTML(HTMLDocument.java:1567)
      10. javax.swing.text.html.HTMLDocument.insertAfterEnd(HTMLDocument.java:1392)
      10 frames