We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › port in use exception (still)
Page Index Toggle Pages: 1
port in use exception (still) (Read 1874 times)
port in use exception (still)
Apr 13th, 2006, 5:02pm
 
Hello,
Just got my sensors that i will use to interact with my processing applet (Flock of birds magnetic tracker Smiley) It works with a serial RS232 interface which im now trying to get working.
My setup is running on a G4 powerbook with OSX Tiger, using a Prolific Technology USB->RS232 adapter.
I have run the setup script for the serial libraries as described in the FAQ :
The first time i ran it i got an error message, but im quite sure that it was not the one described in the FAQ, unfortunately i didnt pay too much attentionto the error message and instead i ran the script again, and then it reported no errors then i rebooted the system. Still i get the port in use exception!

now i am clueless! can anyone help me out?

regards

Henrik
Re: port in use exception (still)
Reply #1 - Apr 13th, 2006, 11:24pm
 
If you are using ver0111 then this is a known bug - go back to an earlier version and you should be fine.

If not ver0111 then not sure.

HTH

Nick
Re: port in use exception (still)
Reply #2 - Apr 14th, 2006, 12:16am
 
yeah, if you want to wade through the technical details, the bug report has the info on how to get it working:
http://dev.processing.org/bugs/show_bug.cgi?id=315

but barring that, use 110 instead.
Re: port in use exception (still)
Reply #3 - Apr 14th, 2006, 10:24pm
 
I used 0111, now i've tried to use 0110 instead, but after messing around a bit(running the setup program again) i got a different error:

Devel Library
=========================================
Native lib Version = RXTX-2.1-7pre17
Java lib Version   = RXTX-2.1-7pre17

RXTX Warning:  Removing stale lock file. /var/spool/uucp/LK.001.009.002
java.lang.NoClassDefFoundError: processing/core/PApplet
at processing.serial.Serial.<init>(Serial.java:156)

i dont get this error when i tested a program that didnt use the serial port.
Any more clues for me?

regards

Henrik
Re: port in use exception (still)
Reply #4 - Apr 18th, 2006, 8:21pm
 
Figured it out somehow, removing serial.jar from my user/library/java/ folder, since i use eclipse.
So you can stop crunching your brains on this one...

Cheers

Henrik
Re: port in use exception (still)
Reply #5 - Apr 18th, 2006, 11:05pm
 
next time please note in your bug report that you're using eclipse, and post such an issue in the integration board, since the bug is not with the processing release, but with other non-supported things that you've done (in this case placing the wrong copy of serial.jar into a system-specific folder).
Page Index Toggle Pages: 1