Skip to content

repeating java.lang.NullPointerException #4249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ec3hp-de opened this issue Dec 3, 2015 · 4 comments
Closed

repeating java.lang.NullPointerException #4249

ec3hp-de opened this issue Dec 3, 2015 · 4 comments
Assignees
Labels
Component: IDE The Arduino IDE OS: Linux Specific to the Linux version of the Arduino IDE
Milestone

Comments

@ec3hp-de
Copy link

ec3hp-de commented Dec 3, 2015

When I run arduino-1.6.6 this message is shown every 3 seconds in the messages panel below the sketch text:

java.lang.NullPointerException
at javax.jmdns.impl.NetworkTopologyDiscoveryImpl.getInetAddresses(NetworkTopologyDiscoveryImpl.java:62)
at cc.arduino.packages.discoverers.network.NetworkChecker.run(NetworkChecker.java:57)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Environment:
Linux 64-bit, OpenSuSE 12.3 (Virtual machine without network access)

I can upload sketches to my board via USB and they work, but it is difficult to separate any compiler error messages from the repeating java message.

@ffissore ffissore self-assigned this Dec 4, 2015
@ffissore ffissore added the Component: IDE The Arduino IDE label Dec 4, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Dec 4, 2015
@ffissore
Copy link
Contributor

ffissore commented Dec 4, 2015

Could it be that your computer has NO network interfaces? Not even localhost?

@ffissore ffissore added Waiting for feedback More information must be provided before we can proceed OS: Linux Specific to the Linux version of the Arduino IDE labels Dec 4, 2015
@ffissore
Copy link
Contributor

ffissore commented Dec 4, 2015

I've added a check for when there are no network interfaces. Fix will be available with next hourly build. http://www.arduino.cc/en/Main/Software#hourly Shouldn't this fix your issue, please reopen

@ec3hp-de
Copy link
Author

ec3hp-de commented Dec 4, 2015

With the current hourly build this message is gone. Thanks.

The virtual environment was set up with no network interfaces. Typing 'ifconfig -a' shows a loopback interface, but it is not enabled.

@ffissore
Copy link
Contributor

ffissore commented Dec 4, 2015

Yeah, that was the cause of the error message: the running computer is expected to have localhost at least. It's actually a fault of a library we use, but I wrapped the faulty call with a check, so you can run the IDE without any active interface

@ffissore ffissore removed the Waiting for feedback More information must be provided before we can proceed label Dec 4, 2015
lmihalkovic pushed a commit to lmihalkovic/Arduino that referenced this issue Dec 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE OS: Linux Specific to the Linux version of the Arduino IDE
Projects
None yet
Development

No branches or pull requests

2 participants