java comm error -> Win32 Comm Driver: Error 1
807603Jan 27 2008 — edited Feb 14 2008serialport.setSerialPortParams(9600, 8, 1, serialport.PARITY_NONE);
javax.comm.UnsupportedCommOperationException: Win32 Comm Driver: Error 1
at com.sun.comm.Win32SerialPort.setCommDeviceParams(Native Method)
at com.sun.comm.Win32SerialPort.setSerialPortParams(Win32SerialPort.java:276)
at develop.device.printer.InvoicePrinter.print(InvoicePrinter.java:180)
at develop.device.printer.InvoicePrinter.initial(InvoicePrinter.java:217)
at develop.device.PrintApplet.initial(PrintApplet.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
i use the java comm api to access the com port in an applet.
java:1.6
java comm:2.0
system:window xp personal