Missing simpleframework library in nxshell 2.2.1
-
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 moreAfter 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login