I can't upload program to MAIXDUINO whit java error

With arduino IDE, it’s compiled OK! but serial port something wrong.

java.lang.NullPointerException
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:295)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
	at processing.app.SketchController.upload(SketchController.java:732)
	at processing.app.SketchController.exportApplet(SketchController.java:703)
	at processing.app.Editor$UploadHandler.run(Editor.java:2042)
	at java.lang.Thread.run(Thread.java:748)

My desktop environment info like this.

    chosunin@chosunin-GA-MA785GMT-US2H:~$ uname -a
Linux chosunin-GA-MA785GMT-US2H 4.15.0-47-generic #50~16.04.1-Ubuntu SMP Fri Mar 15 16:06:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
chosunin@chosunin-GA-MA785GMT-US2H:~$ dmesg | tail
[ 4836.460430] usb 1-5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4836.460435] usb 1-5.4: Product: Sipeed-Debug
[ 4836.460438] usb 1-5.4: Manufacturer: Kongou Hikari
[ 4836.460442] usb 1-5.4: SerialNumber: xel@sipeed
[ 4836.461750] ftdi_sio 1-5.4:1.0: FTDI USB Serial Device converter detected
[ 4836.461801] usb 1-5.4: Detected FT2232C
[ 4836.462226] usb 1-5.4: FTDI USB Serial Device converter now attached to ttyUSB0
[ 4836.462354] ftdi_sio 1-5.4:1.1: FTDI USB Serial Device converter detected
[ 4836.462425] usb 1-5.4: Detected FT2232C
[ 4836.462946] usb 1-5.4: FTDI USB Serial Device converter now attached to ttyUSB1
chosunin@chosunin-GA-MA785GMT-US2H:~$ java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+9-Ubuntu-116.04)
OpenJDK 64-Bit Server VM (build 12.0.2+9-Ubuntu-116.04, mixed mode)
chosunin@chosunin-GA-MA785GMT-US2H:~$

I’ve never been experience like things in another arduino boards.

1 Like

Hi @ambient

Make sure your upload tool chooses k-flash and
choose the correct serial port.

Thanks BigBits! I’m not chooses k-flash.

1 Like