<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NxShell Interaction Help - Strange error in script]]></title><description><![CDATA[<p dir="auto">Hello everyone!</p>
<p dir="auto">I'm creating a script to populate nodes from my network, getting them from a ".csv" file. It's working pretty fine, but I can't use the method "setIpAdress()" from NXCObjectCreationData. In the method call bellow "cd" is a NXCObjectCreationData object and "objectIp" is a string with the IP formated such as in "192.168.2.1".</p>
<pre><code>cd.setIpAddress(InetAddress.getByName(objectIp))
</code></pre>
<p dir="auto">When I execute the script I get the following error:</p>
<blockquote>
<p dir="auto">TypeError: setIpAddress(): 1st arg can't be coerced to org.netxms.base.InetAddressEx</p>
</blockquote>
<p dir="auto">I couldn't find the class org.netxms.base.InetAddressEx on the API and it's stated on the NCXObjectCreationData reference that "setIpAdress()" should receive an InetAdress instance.</p>
<p dir="auto">Could you guys help me on this?</p>
<p dir="auto">Thanks in advance!</p>
<p dir="auto">Edit: I'm using the 2.0.M4 version.</p>
]]></description><link>https://forum.netxms.org/topic/3751/nxshell-interaction-help-strange-error-in-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:50:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3751.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 May 2015 18:52:47 GMT</pubDate><ttl>60</ttl></channel></rss>