It's all about the answers!

Ask a question

java.lang.IllegalArgumentException: itemHandle must not be null | Facing issue while running Ant Build.


Dhinesh Palanisamy (1510) | asked Aug 03 '17, 12:14 a.m.

 Hi,


          While trying to export the System Definition Generator by using Ant Build, facing issue similar to java.lang.IllegalArgumentException: itemHandle must not be null, please let us know if we are missing anything.

<?xml version="1.0"?>
<project name="sysdef" default="all" xmlns:id="antlib:com.ibm.team.enterprise.zos.systemdefinition.toolkit">
<description> system definiton export</description>
<!-- initialize the system definiton tool -->
<!--target name="init"-->
   <id:init 
      repositoryAddress="https://xxxxxxxxxxxx:9443/ccm/" 
      userId="xxxxx"
      password="xxxxx" 
      projectArea="xxxxxxxxxxxxx xxxx xxxxxx​"/>
<!--/target-->
<target name="export" description="Export existing system definitions to the specified file">
     <!--id:export file="D:/fgt/exportdtl.xml"/-->
     <id:export file="D:/fgt/exporteddtl_globally.xml" global="false"/>
</target>
<target name="all" depends="export" description="final" />
</project>

Error:
Buildfile: C:\Users\workspace\Sysdef\src\def.xml

BUILD FAILED
C:\Users\workspace\Sysdef\src\def.xml:11: java.lang.IllegalArgumentException: itemHandle must not be null

Total time: 1 second

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.