Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error running scavis
12-16-2014, 11:15 PM
Post: #1
error running scavis
When I run scavis on a Ubuntu 14.04 machine I get the following error:

Exception in thread "main" java.lang.NullPointerException
at jehep.ui.SetEnv.getSN(SetEnv.java:307)
at jehep.ui.SetEnv.init(SetEnv.java:221)
at jehep.ui.mainGUI.main(mainGUI.java:458)
Find all posts by this user
Quote this message in a reply
12-18-2014, 01:26 PM
Post: #2
RE: error running scavis
Hello,

This is unusual. We have very number of users running scavis on ubuntu 14.04 (both 32 and 64 arch).

Does this error appear immediately after executing "scavis.sh"? Here are few options that can help:

1) Please check that javac is installed. "javac -version" (version >= 1.7)
2) You can reset preferences before launching scavis, i.e. remove

rm -r $HOME/.jehep

and the run "scavis.sh"

3) also, please try to use ScaVis v.2.2

best, Admin
Find all posts by this user
Quote this message in a reply
12-18-2014, 09:49 PM
Post: #3
RE: error running scavis
Running javac -version gives:
javac 1.7.0_65
So that seems to be in order. I am running scavis 2.2 and I don't have a .jehep in my home folder, I guess it was not created yet.

The problem seems to be in the getSN function. I looked at what the function seems to do from eclipse. I guess you are trying to find out some mac address of a network interface. I searched on the internet and found the following sample code of getting the mac address:

ip = InetAddress.getLocalHost();
NetworkInterface network = NetworkInterface.getByInetAddress(ip);
mac = network.getHardwareAddress();

On my computer this returns null for network because the localhost has no mac address. Apparently the function only finds my loopback network connection.
Find all posts by this user
Quote this message in a reply
12-19-2014, 04:40 AM
Post: #4
RE: error running scavis
Hello,

Thanks for the bug report. I can see a similar thread for scala in:

http://stackoverflow.com/questions/23900...a-or-scala


We will try to find a fix for such Linux installations and we will patch SCaVis 2.2 before Dec. 21, 2014

best, Sergei
Find all posts by this user
Quote this message in a reply
12-20-2014, 06:40 AM
Post: #5
RE: error running scavis
Hello,

Thanks for the bug report. This corrected version of ScaVis:

http://jwork.org/scavis/download/scavis-2.2.zip

should not have problems when MAC address is not found

best, Admin
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)