0

我们的问题如下:

我们必须用 JT400 连接到 ISeries 并读取 IFS 中的文件。一个要求是作业在 QBatch 中运行,用户没有密码。 我们的代码如下:

  //This wy we connect to the Iseries with the job credentials in this case 
   //user withou password
 AS400 as400 = new AS400(); 
 IFSFile file = new IFSFile(system, path);

  //This line throws the AS400SecurityException
 IFSFileInputStream fis = new IFSFileInputStream(file,IFSFileInputStream.SHARE_NONE);

最后一行抛出这个异常:com.ibm.as400.access.AS400SecurityException: Password is not set

我们在互联网上搜索,但找不到有同样问题的人

感谢您阅读我们的问题

4

1 回答 1

0

尝试使用连接到主机

AS400 as400 = new AS400("localhost","*CURRENT","*CURRENT");

请参阅http://javadoc.midrange.com/jtopen/com/ibm/as400/access/AS400.html#AS400(java.lang.String,%20java.lang.String,%20java.lang.String)

于 2015-12-21T14:27:19.170 回答