Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. Missing simpleframework library in nxshell 2.2.1

Missing simpleframework library in nxshell 2.2.1

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 17.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    giaco
    wrote on last edited by
    #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 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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      how do you run nxshell - directly from jar or using wrapper (nxshell on UNIX or nxshell.exe on Windows)?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • G
        G
        giaco
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Hi,

          I suggest to check 2.2.5 - most likely it will work without issues.

          Best regards,
          Victor

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups