0
當前我有一個N-Trig多點觸控面板掛接到事件文件/ dev/input/event4,並且我試着this來訪問它。我已經在java.library.path中包含了所有的本地文件,但即使在超級用戶的情況下也會出現此錯誤。例外:Java/dev/input/eventX
java.io.IOException: Invalid argument
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:46)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:149)
at com.dgis.input.evdev.EventDevice.readEvent(EventDevice.java:269)
at com.dgis.input.evdev.EventDevice.access$1(EventDevice.java:265)
at com.dgis.input.evdev.EventDevice$1.run(EventDevice.java:200)
EVENT: null
Exception in thread "Thread-0" java.lang.NullPointerException
at com.asdev.t3.Bootstrap$1.event(Bootstrap.java:41)
at com.dgis.input.evdev.EventDevice.distributeEvent(EventDevice.java:256)
at com.dgis.input.evdev.EventDevice.access$2(EventDevice.java:253)
at com.dgis.input.evdev.EventDevice$1.run(EventDevice.java:201)
有沒有人知道爲什麼會發生這種情況?謝謝