I can't seem to get my arduino to reset. I loaded code on it earlier today to make pin 13 blink...and now it won't stop!! When I try upload new code to the board, [Arduino2Max] the compiler [Arduino009] just kinda freezes....can anyone help me?
java.lang.NullPointerException
at processing.app.Serial.setDTR(Serial.java:480)
at processing.app.Uploader.flushSerialBuffer(Uploader.java:76)
at processing.app.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:69)
at processing.app.Sketch.upload(Sketch.java:1699)
at processing.app.Sketch.exportApplet(Sketch.java:1761)
at processing.app.Editor$42.run(Editor.java:1955)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Even the USB Arduinos appear as serial ports to your computer. This is because the USB connection to the Arduino is via a USB-to-serial converter chip on the Arduino board.
So, the previous poster's question is actually relevant to your issue.
I encountered the exact same error message and traceback with Ubuntu if I unplugged the Arduino and plugged it in too quickly. (It created a "ttyUSB1" device file in addition to the existing "ttyUSB0" device that hadn't been removed when I unplugged the Arduino board--feel free to ignore this explanation, it's more for Google juice.)
Some helpful information for us in order to diagnose your issue:
What operating system are you running? Windows, Mac OS X, Linux?
What version of the Arduino IDE are you using? 0007 0008 0009?
What version of the Arduino board are you using? NG, Decimila?
My first, brute force, suggestion would be to unplug your Arduino, reboot your computer and then plug it back in.