NXCExeption when using csv importer

Started by rsigley, March 30, 2018, 10:43:50 PM

Previous topic - Next topic

rsigley

Thank you in advance for your help!

I am standing up a new clean install of the 2.2.4 software. I am using the NetXMS .csv importer and I have the config.properties configured and the .csv file of nodes. When I run the java -jar netxms-csv-importer.1.1.1.jar command it starts the import then throws a "Error: NXCException - Server uses incompatible version of communication protocol.

Any help is appreciated.

Russell

tomaskir

Hi,

The dependencies were outdated.
I updated those and released a new version of the .csv importer.

Please check the GitHub releases.

rsigley

Thank you for the quick turn around. The protocols error has went away. When I run the .csv importer is throws several java errors. See below.

c:\NetXMS\database>java -jar C:\NetXMS\database\netxms-csv-importer-1.1.1.jar
Application starting.
Loading configuration properties file.
Loading nodes from the .csv file.
Found 39 nodes in .csv file.
Connecting to the NetXMS server.
Exception in thread "main" java.lang.NoClassDefFoundError: org/netxms/base/Logge
r
        at org.netxms.client.NXCSession.connect(NXCSession.java:1800)
        at org.netxms.client.NXCSession.connect(NXCSession.java:1777)
        at com.github.tomaskir.netxms.csvimporter.netxms.NetxmsConnector.connect
(NetxmsConnector.java:28)
        at com.github.tomaskir.netxms.csvimporter.Application.main(Application.j
ava:35)
Caused by: java.lang.ClassNotFoundException: org.netxms.base.Logger
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 4 more

c:\NetXMS\database>


The nodes do not show in NETXMS. Thank you again for your help.

Russell

Alex Kirhenshtein

I just pushed correct 2.2.4 libraries to maven central. Try rebuilding tool.

tomaskir

Importer 1.1.2 released, hopefully everything should work now.

glow

Hi, installed netxms-3.0, trying to transfer nodes, it gives an error.
java -jar netxms-csv-importer-1.1.2.jar
Application starting.
Loading configuration properties file.
Loading nodes from the .csv file.
Found 10 nodes in .csv file.
Connecting to the NetXMS server.
Error: NXCException - Несовместимая версия протокола обмена с сервером (server=[52, 3, 1, 1, 1, 25, 1, 2] client=[48, 2, 1, 1, 1, 12]).

tomaskir

#6
The csv importer v 1.1.2 was built with NetXMS v2 client libraries, this is why it didn't work.

I have updated it and released 1.1.3, which is built with support for NetXMS v3.