HDB++ Viewer 1.25 Exception

Hi,
I am trying to run HDB++ Viewer. I have built the jar file and when I am trying to run it, I am getting the following exception:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/tango/jhdb/SignalInfo
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
Caused by: java.lang.ClassNotFoundException: org.tango.jhdb.SignalInfo
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
… 7 more


I also downloaded the JTango-9.6.6.jar file (which I found as the latest released on Github) and replaced it with the old JTango.jar but the error is the same.
I also have an old version of HDB++ Viewer and it runs perfectly fine. Is there any additional library/jar I need to install?
Hi Aditya,

You can see the dependencies in this part of the HDB++ Viewer Documentation:
http://www.esrf.eu/computing/cs/tango/tango_doc/hdb_viewer/index.html#dependencies-classpath

Hoping this helps.
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Hi,
We have introduced a backward incompatibly. Sorry for that.
You need to compile both the HDBViewer and the HDB java extraction lib (>1.27).
https://github.com/tango-controls-hdbpp/libhdbpp-extraction-java
Jean-Luc
Thank you Reynald, Jean-Luc
I will compile the new version of HDB Java extraction lib.
Can you tell me what are the new features/improvements in this version of HDB++? I tried to search but didn't come across any document.
Hi Jean-Luc

As suggested, we compiled the HDB Java extraction lib libhdbpp-java-1.30 and referred to it while running the HDB++ Viewer UI using jhdbviewer-1.25.

We could open the HDB++ Viewer UI and see the list of the attributes that are archived in the Archiver database. However when tried to view the attribute values in the plot or table we received the following error:

"HDB getData failed
Unexepected exception java.lang.NullPointerException"


Any inputs on this will be helpful.

Thanks,
Apurva
Edited 3 years ago
 
Register or login to create to post a reply.