Error running nxshell script for session.getObjectTools()

Started by suphu, March 19, 2019, 12:32:40 PM

Previous topic - Next topic

suphu

Version 2.2.13
C:\NetXMS\bin> .\nxshell.exe -u myUserName -P myPass ..\var\scripts\myscript.py
Traceback (most recent call last):
  File "..\var\scripts\myscript.py", line 256, in <module>
    objectTools = session.getObjectTools()
        at org.netxms.client.objecttools.ObjectTool.<init>(ObjectTool.java:96)
        at org.netxms.client.NXCSession.getObjectTools(NXCSession.java:7256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/simpleframework/xml/Serializer

suphu

I found my problem.  The C:\NetXMS\lib\nxshell.jar was out of date.  Replaced with nxshell-2.2.13.jar and it works.