java.lang.NullPointerException at com.sun.jna.Native.toNative(Native.java:1736) at jtermios.linux.JTermiosImpl$C_lib_DirectMapping.read(Native Method) at jtermios.linux.JTermiosImpl.read(JTermiosImpl.java:535) at jtermios.JTermios.read(JTermios.java:444) at purejavacomm.PureJavaSerialPort$2.read(PureJavaSerialPort.java:908) at io.netty.buffer.UnsafeByteBufUtil.setBytes(UnsafeByteBufUtil.java:482) at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:278) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1089) at io.netty.channel.oio.OioByteStreamChannel.doReadBytes(OioByteStreamChannel.java:109) at io.netty.channel.oio.AbstractOioByteChannel.doRead(AbstractOioByteChannel.java:120) at io.netty.channel.oio.AbstractOioChannel$1.run(AbstractOioChannel.java:37) at io.netty.channel.ThreadPerChannelEventLoop.run(ThreadPerChannelEventLoop.java:67) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873) at java.lang.Thread.run(Thread.java:748) 18:10:05.579 [pool-1-thread-1] ERROR wei.yigulu.cdt.netty.CDTMaster - null 18:10:05.579 [pool-1-thread-1] ERROR wei.yigulu.cdt.netty.CDTMaster - 串口异常消息:null