今天线上遇到一个问题,从hbase里读取出来的数据在转换json后输出时出现异常: java.lang.ArrayIndexOutOfBoundsException: 160 at com.alibaba.fastjson.serializer.SerializeWriter.writeStringWithDoubleQuote(SerializeWriter.java:868) at com.alibaba.fastjson.serializer.SerializeWriter.writeSt…
package test; public class Test { public static void main(String[] args) { final int num2 = Integer.parseInt(args[0]); } } 编译时,会报Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at test.Test.main(Test.java:7) 最终的结论是: 运行时忘了加…