Hi, yesterday I upgraded netxms to 2.2.1, and so I did with nxshell.
Today I tried to run nxshell with some scripts and got this error:
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/simpleframework/xml/Serializer
at org.netxms.client.maps.NetworkMapLink.<init>(NetworkMapLink.java:50)
at org.netxms.client.objects.NetworkMap.<init>(NetworkMap.java:108)
at org.netxms.client.NXCSession.createObjectFromMessage(NXCSession.java:1169)
at org.netxms.client.NXCSession.access$700(NXCSession.java:192)
at org.netxms.client.NXCSession$ReceiverThread.run(NXCSession.java:432)
Caused by: java.lang.ClassNotFoundException: org.simpleframework.xml.Serializer
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more
After digging for some time i found that simpleframework library is simply missing inside the jar. Adding the library into the nxshell jar solved my problem.
Best regards
Hi,
how do you run nxshell - directly from jar or using wrapper (nxshell on UNIX or nxshell.exe on Windows)?
Best regards,
Victor
Sorry, forgot to turn on notifications.
I run nxshell directly from jar on Ubuntu 16.04 server:
java -Dnetxms.server=<host> -Dnetxms.login=<user> -Dnetxms.password=<pwd> -jar bin/nxshell-current.jar <script>
I'm still running 2.2.1, so I don't know if the problem has been solved with newer releases.
Best Regards
Hi,
I suggest to check 2.2.5 - most likely it will work without issues.
Best regards,
Victor