java.lang.StringIndexOutOfBoundsException: String index out of range: 0

JDK Bug System | Webbug Group | 10 months ago
  1. 0

    args[] parsing fails to handle excess whitespace properly

    GitHub | 4 years ago | jvilk
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 0

    FULL PRODUCT VERSION : ADDITIONAL OS VERSION INFORMATION : OS X El Capitan ver. 10.11.2 (15C50) A DESCRIPTION OF THE PROBLEM : I cannot run basic java code on Sublime 3 Text STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Download Sublime 3 for Mac run the following code on a Java format: class HelloWorld { public static void main(String[] args) { System.out.println("HelloWorld") } } EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - An exception has occurred in the compiler (1.6.0_65). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:686) at com.sun.tools.javac.main.Main.processArgs(Main.java:180) at com.sun.tools.javac.main.Main.compile(Main.java:309) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:69) at com.sun.tools.javac.Main.main(Main.java:54) [Finished in 0.3s with exit code 4] [shell_cmd: javac ""] [dir: /Volumes/Sublime Text/Sublime Text.app/Contents/MacOS] [path: /usr/bin:/bin:/usr/sbin:/sbin] ACTUAL - An exception has occurred in the compiler (1.6.0_65). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you. java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:686) at com.sun.tools.javac.main.Main.processArgs(Main.java:180) at com.sun.tools.javac.main.Main.compile(Main.java:309) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:69) at com.sun.tools.javac.Main.main(Main.java:54) [Finished in 0.3s with exit code 4] [shell_cmd: javac ""] [dir: /Volumes/Sublime Text/Sublime Text.app/Contents/MacOS] [path: /usr/bin:/bin:/usr/sbin:/sbin] REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- class HelloWorld { public static void main(String[] args) { System.out.println("HelloWorld") } } ---------- END SOURCE ----------

    JDK Bug System | 10 months ago | Webbug Group
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  3. 0

    exception occured in java compiler

    Stack Overflow | 3 years ago | Ak17
    java.lang.StringIndexOutOfBoundsException: String index out of range: 26
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6737242 javac crash with java.lang.StringIndexOutOfBoundsException: String index out of range: 71

    sun.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 71
  6. 0

    Bug ID: JDK-6737242 javac crash with java.lang.StringIndexOutOfBoundsException: String index out of range: 71

    java.com | 5 months ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 71

  1. harshg 2 times, last 2 months ago
  2. balintn 4 times, last 3 months ago
  3. poroszd 1 times, last 3 months ago
  4. Stefan Braune 1 times, last 5 months ago
  5. mauritius 1 times, last 5 months ago
6 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: 0

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:686)
    1 frame
  3. Java Tools
    Main.main
    1. com.sun.tools.javac.main.Main.processArgs(Main.java:180)
    2. com.sun.tools.javac.main.Main.compile(Main.java:309)
    3. com.sun.tools.javac.main.Main.compile(Main.java:279)
    4. com.sun.tools.javac.main.Main.compile(Main.java:270)
    5. com.sun.tools.javac.Main.compile(Main.java:69)
    6. com.sun.tools.javac.Main.main(Main.java:54)
    6 frames