NetXMS Support Forum

English Support => General Support => Topic started by: rsigley on March 30, 2018, 10:43:50 PM

Title: NXCExeption when using csv importer
Post by: rsigley on March 30, 2018, 10:43:50 PM
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
Title: Re: NXCExeption when using csv importer
Post by: tomaskir on March 30, 2018, 11:39:29 PM
Hi,

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

Please check the GitHub releases.
Title: Re: NXCExeption when using csv importer
Post by: rsigley on April 02, 2018, 02:51:24 PM
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
Title: Re: NXCExeption when using csv importer
Post by: Alex Kirhenshtein on April 09, 2018, 05:42:30 PM
I just pushed correct 2.2.4 libraries to maven central. Try rebuilding tool.
Title: Re: NXCExeption when using csv importer
Post by: tomaskir on April 09, 2018, 07:14:59 PM
Importer 1.1.2 released, hopefully everything should work now.
Title: Re: NXCExeption when using csv importer
Post by: glow on November 03, 2019, 10:44:01 AM
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]).
Title: Re: NXCExeption when using csv importer
Post by: tomaskir on November 03, 2019, 02:39:23 PM
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.