Processing Error Inside Serial Init
Tool DevelopmentEvents and OpportunitiesGeneral Discussion Sub forum : Move this topic Cancel Integration and Hardware stixan Error inside Serial.() driving me crazy! in Integration and Hardware • 3 years ago I am trying to connect to Lego NXT via Bluetooth using the Serial library. After one succesful connection, all I get now is this error message: "Error inside Serial.() gnu.io.PortInUseException: Unknown Application". Having trawled the internet for every possible solution to this problem and still getting this #€!§ error, I am finally declaring myself checkmate... *sigh* QUESTIONS - Does the version of RXTX (2.1-7) that ships with the current release of Processing use lock files? - Does the version of RXTX (2.2pre2) available at http://jlog.org/rxtx-mac.html use lock files? According to this section in the RXTX wiki, releases above 2.1-7 use I/O Kit instead of lock files. If this is true, why do I need to run the supplied fixperm-217-leo.sh script to fix permissions, append group memberships and create lock directories? - Using Terminal to check my group memberships, I am not a member of the "uucp" group after running fixperm-217-leo.sh. Even as an admin using all "sudo"s in the world, I am not able to become a member of the "uucp" group. How does this affect my use of the RXTX library? Any ideas of why I am not able to join this group? - Using the Serial library to connect to my Arduino is succesful. Could it be that the errors are linked to my Bluetooth setup rather than RXTX? SETUP Mac Os X Version 10.5.8 2.2 GHz Intel Core 2 Duo Processing 1.2.1 (clean install) RXTX 2.1-7 (the ones that ship with Processing 1.2.1) No other RXTX files present anywhere in my system JAVA J2SE 5.0 (32 bit) version 1.5.0_26-b03 Java SE 6 (64 bit) version 1.6.0_22-b04-307 J2SE 5.0 (64 bit) version 1.5.0_26-b03 J2SE 1.4.2 (32 bit) version 1.4.2_22 (disabled) CODE Serial port; void setup() { size(400, 400); println(Serial.list()); port = new Serial(this, Serial.list()[0], 9600); } ERROR Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 [0] "/dev/tty.NXT" [1] "/dev/cu.NXT" [2] "/dev/tty.Bluetooth-Modem" [3] "/dev/cu.Bluetooth-Modem" [4] "/dev/tty.Bluetooth-PDA-Sync" [5] "/dev/cu.Bluetooth-PDA-Sync" (BTW: I moved my question from http://forum.processing.org/#Topic/25080000000066289 to new seperate thread instead of a comment to an already answered question... still getting acquainted to the modus operadi
Tool DevelopmentEvents and OpportunitiesGeneral Discussion Sub forum : Move this topic Cancel Integration and Hardware hondaman9.. Error Inside Serial.() :: no joy.... in Integration and Hardware • 1 year ago I'm simply trying to initiate a serial port and encountered this error anytime I tried myPort = new Serial(this, Serial.list()[ndx], 9600); where ndx is an int that cycles from 0 to < Serial.list().length. I thought it was my code and couldn't find any solution having read many many forum entries on this error. I then tried the "Simple Write" example that comes with P5 https://forum.processing.org/topic/error-inside-serial-init-driving-me-crazy (v.1.5.1) and get the same error. My RXTX versions are correct, and I get this before the error: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 I can see and list my COM ports and print thefollowingto the console: serial port(s) found [0] "COM1" [1] "COM3" However, as soon as I try to establish a https://forum.processing.org/one/topic/error-inside-serial-init-no-joy.html port to communicate with I get the following error,every time: Error Inside Serial.() gnu.io.PortInUseException: Unknown Application at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354) at processing.serial.Serial.(Unknown Source) at processing.serial.Serial.(Unknown Source) at Comm2Hydra_not_working_v1.setup(Commtest_not_working_v1.java:57) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.() at processing.serial.Serial.errorMessage(Unknown Source) at processing.serial.Serial.(Unknown Source) at processing.serial.Serial.(Unknown Source) at Comm2Hydra_not_working_v1.setup(Commtest_not_working_v1.java:57) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) I know there are (and I have read them) many posts on this topic but none have a reason as to why this error occurs nor how to remedy this. It also baffles me as to why the example code also doesn't work, perhaps indicating that there is some library component missing in my P5 installation? However I've double-checked everything I can think of to no avail. Any assistance on this would be very helpful as my project is now dead in the water until I can get past this error. Thanks in advance 1 Replies(1) hondaman9.. Re: Error Inside Serial.() :: no joy.... 1 year ago Well, I'm answering my own question.... There's nothing wrong with the c
Tool DevelopmentEvents and OpportunitiesGeneral Discussion Sub forum : Move this topic Cancel Integration and Hardware fxmech java.lang.RuntimeException: error inside Serial.() https://forum.processing.org/topic/java-lang-runtimeexception-error-inside-serial-init-com-ports-appear-busy COM ports appear busy in Integration and Hardware • 6 months ago I dont know what this error means. I have an arduino UNO attached to COM13... the first time I run a processing sketch it works fine and makes a connection but if processing error I stop it and hit play again I get the errors and they only go away with a reeboot..... This is putting me at a complete halt and I dont even know if its a processing issue, a java issue, or something corrupted in my win8 processing error inside 64bit PC.... It worked fine before but I spent the last 2 days trying to install bluetooth connectivity between arduino and processing.... It never worked and just errored out a lot... something may have gotten messed up on its own but I have no idea how to proceed.... any ideas?????? AVAILABLE SERIAL PORTS: Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 [0] "COM13" HAVE A LOOK AT THE LIST ABOVE AND SET THE RIGHT SERIAL PORT NUMBER IN THE CODE! -> Using port 0: COM13 gnu.io.PortInUseException: Unknown Application at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354) at processing.serial.Serial.(Serial.java:178) at processing.serial.Serial.(Serial.java:116) at Razor_AHRS_test.setup(Razor_AHRS_test.java:152) at processing.core.PApplet.handleDraw(PApplet.java:2241) at processing.opengl.PGL$PGLListener.display(PGL.java:3240) at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:573) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:558) at javax.media.opengl.awt.GLCanvas$6.run(GLCanvas.java:1049) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1021) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:896) at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1060) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:666) at java.awt.EventQueue.access$400(EventQueue.java:81) at java.awt.EventQueue$2.run(EventQueue.java:627) at java.awt.EventQueue$2.run(EventQueue.java:625) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doI