Pages: [1]   Go Down
Author Topic: Strange JAVA errors when uploading code  (Read 540 times)
0 Members and 1 Guest are viewing this topic.
Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm working on an Arduino Serial Slave sketch that allows it to be a command driven slave to another micro as well as allow for adding autonomous code for controlling a robot. However, I am getting some weird JAVA related errors when I try to upload my code, which looks fine as far as I can tell. Unfortunately, errors scroll by to fast to read. I'm using the Arduino 018 IDE upgraded with the current Sanguino software. I can upload other sketches, so there must be something related to my current code that is triggering the errors. My code is too large to include in a posting.

Are there any known issues with the Arduino IDE setup I am using?

8-Dale

« Last Edit: June 04, 2010, 11:04:54 am by RobotGuy » Logged

Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My code can be found at http://www.lynxmotion.net/viewtopic.php?f=9&t=5342&start=30#p63618

8-Dale
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you tried compiling (verifying) without uploading, the errors eventually quit.

Quote
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
      at com.oroinc.text.regex.Perl5Matcher._match(Perl5Matcher.java)

While this might not mean much to you, what is happening is that the regular expression parser had a problem. The regular expression parser is looking for things like matching double quotes.

You have this code:
Code:
   switch (maincmd) {
      case 'D':
        Serial.print(\nSensor Data Dump\n[glow]"[/glow]);

Sort of customary to have double quotes come in pairs.

Code:
         Serial.print(": ";

Same with open and close parens.
« Last Edit: June 04, 2010, 01:19:20 pm by PaulS » Logged

Beaverton, OR
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!  I think I just needed another pair of eyes on this. I feel like such a newbie, making mistakes like that.

8-Dale
Logged

Pages: [1]   Go Up
Jump to: