Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.comm v.3 IOException in Linux 2.6.12

843810Oct 17 2005 — edited Jun 18 2009
Hello, I was trying the latest version of javax.comm in Linux (this is the first release for this OS). But I get this IOException when I open /dev/ttyS0 in SerialDemo (as root):
kronos:/home/marcelo/src/commapi/examples/SerialDemo# java SerialDemo
Exception in thread "AWT-EventQueue-0" java.io.IOException: Not all params are supported by kernel
        at com.sun.comm.LinuxSerial.nativeSetSerialPortParams(Native Method)
        at com.sun.comm.LinuxSerial.setSerialPortParams(LinuxSerial.java:346)
        at SerialConnection.setConnectionParameters(Unknown Source)
        at SerialConnection.openConnection(Unknown Source)
        at SerialDemo.actionPerformed(Unknown Source)
        at java.awt.Button.processActionEvent(Button.java:388)
        at java.awt.Button.processEvent(Button.java:356)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I'm running Debian Testing, linux kernel version 2.6.12-1-686, JDK 1.5.0_04 and running 1.4.2_07 I also get this error.

Maybe I should post this as a bug, but I wanted some feedback from you first.

Thanks!
Marcelo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2009
Added on Oct 17 2005
30 comments
1,746 views