e.printStackTrace();发生的情况是,它到达multisocket.send(packet);行并终止,并显示以下堆栈跟踪信息: at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket
//print it out}Exception in thread "Thread-2" java.lang.ArrayIndexOutOfBoundsExceptionorg.zu.ardulink.connection.serial.AbstractSerialConnection$SerialReader.run(AbstractSerialConnection.java:190)
at java