我在我的项目中使用 comm.jar 从 com 端口读取数据,但是当我侦听并等待来自 com 端口的任何数据时,此异常......
Exception in thread "Win32SerialPort Notification thread" java.lang.ExceptionInInitializerError
at getsmsf1.IncomingSms.<init>(IncomingSms.java:160)
at getsmsf1.Sms.lineReceived(Sms.java:563)
at getsmsf1.Sms.serialEvent(Sms.java:463)
at com.sun.comm.Win32SerialPort.sendDataAvailEvent(Win32SerialPort.java:649)
at com.sun.comm.NotificationThread.run(Win32SerialPort.java:878)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 65533
at getsmsf1.PduCodec.<clinit>(PduCodec.java:299)
... 5 more