Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#894769: Java error message and permission on serial port

43 views
Skip to first unread message

beck...@gmail.com

unread,
Apr 8, 2018, 1:20:03 PM4/8/18
to

 

Hi,

 

I have the same issue, this is what I've found so far:

 

- after plugging in the Arduino and starting the IDE, the status line reports the correct settings (board type and serial device selected in a previous session)

 

- just klicking on the 'Tools' menu throws the error message:

java.lang.NullPointerException thrown while loading gnu.io.RXTXCommDriver

 

- the user running the Arduino IDE is in the dialout group, I tried if chmod 666 on the serial device would help but it didn't

 

- tried to send a sketch to the Arduino, this produced the following two lines repeatedly:

 

java.lang.NullPointerException thrown while loading gnu.io.RXTXCommDriver

PORTS {} / {} => {}

 

then followed by:

 

processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:154)

at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)

at processing.app.Sketch.upload(Sketch.java:1671)

at processing.app.Sketch.exportApplet(Sketch.java:1627)

at processing.app.Sketch.exportApplet(Sketch.java:1599)

at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)

at java.base/java.lang.Thread.run(Thread.java:844)

 

 

-- System Information:
Debian Release: buster/sid
 APT prefers testing
 APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de:en_GB:en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages arduino depends on:
ii  arduino-core                   2:1.0.5+dfsg2-4.1
ii  default-jre [java6-runtime]    2:1.9-62
ii  libjna-java                    4.5.1-1
ii  librxtx-java                   2.2pre2+dfsg1-1
ii  openjdk-8-jre [java6-runtime]  8u162-b12-1
ii  openjdk-9-jre [java6-runtime]  9.0.4+12-4

Versions of packages arduino recommends:
ii  extra-xdg-menus  1.0-4
ii  policykit-1      0.105-20

arduino suggests no packages.

-- no debconf information

0 new messages