syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.13k stars 206 forks source link

Fatal error when running on Ubuntu 16.04.2 (64-bit) and Java 9 #15

Closed jmcastagnetto closed 6 years ago

jmcastagnetto commented 7 years ago

Installed OpenStego using the deb from the 0.7.1 release in a desktop running an Ubuntu 16.04.2 LTS (64-bit). It did not run when using the GUI (.desktop file), so I tried using the CLI, and it gave the following error:

$ java -jar /usr/share/openstego/lib/openstego.jar 
net.sourceforge.openstego.OpenStegoException: java.lang.NullPointerException
    at net.sourceforge.openstego.util.PluginManager.loadPlugins(PluginManager.java:65)
    at net.sourceforge.openstego.OpenStego.main(OpenStego.java:427)
Caused by: java.lang.NullPointerException
    at net.sourceforge.openstego.util.CommonUtil.getStreamBytes(CommonUtil.java:54)
    at net.sourceforge.openstego.util.PluginManager.loadPlugins(PluginManager.java:51)
    ... 1 more

As a reference:

$ java  -version
java version "9"
Java(TM) SE Runtime Environment (build 9+175)
Java HotSpot(TM) 64-Bit Server VM (build 9+175, mixed mode)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:    16.04
Codename:   xenial

FYI - It does work when using Java 8 on the same machine.

syvaidya commented 7 years ago

Java 9 is still not officially released, and will be released in September only. Current builds might have bugs. Please wait for official release and test with the same. If issue still persists, I'll take a look into it.

madushan1000 commented 6 years ago

Hi, I'm facing this issue now on Windows 10 64bit with Java 9 official release. This should be re opened.

syvaidya commented 6 years ago

Fixed with release 0.7.2