|
Hi all. I have written a java program that tries to connect to a record access service on a iSeries V5R1M0 with the following lines: AS400 system = new AS400("localhost", "*CURRENT","*CURRENT"); system.connectService(AS400.RECORDACCESS); I first tried to have the following jar-file in my classpath: /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar But then I got the following error: com.ibm.as400.access.AS400SecurityException: Password is not set. java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:90) java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:38) com/ibm/as400/access/AS400SecurityException.<init>(I)V+0 (AS400SecurityException.java:223) com/ibm/as400/access/AS400.sendSignonRequest()I+0 (AS400.java:2574) com/ibm/as400/access/AS400.signon(Z)I+0 (AS400.java:3004) com/ibm/as400/access/AS400.connectService(I)V+0 (AS400.java:693) After reading about the java toolkit I realized that I have to put the native jar-file in the classpath instead of the jt400.jar. So I put the following line in my classpath: /QIBM/ProdData/OS400/jt400/lib/jt400Native.jar Then I unfortunately get another error: java.io.IOException: null java/lang/Throwable.<init>()V+4 (Throwable.java:78) java/lang/Exception.<init>()V+1 (Exception.java:29) java/io/IOException.<init>()V+1 (IOException.java:31) com/ibm/as400/access/SocketContainerUnix.getSubstPassword([B[B)[B+8 (SocketContainerUnix.java:97) com/ibm/as400/access/CurrentUser.getUserInfo([B[B)[B+16 (CurrentUser.java:73) com/ibm/as400/access/AS400ImplRemote.getPassword([B[B)[B+34 (AS400ImplRemote.java:918) com/ibm/as400/access/AS400ImplRemote.exchangeDDMSecurityInfo(Lcom/ibm/as400/access/SocketContainer;)V+172 (AS400ImplRemote.j com/ibm/as400/access/AS400ImplRemote.getConnection(IZ)Lcom/ibm/as400/access/AS400Server;+133 (AS400ImplRemote.java:831) com/ibm/as400/access/AS400ImplRemote.connect(I)V+13 (AS400ImplRemote.java:342) com/ibm/as400/access/AS400.connectService(I)V+87 (AS400.java:703) Does anybody know about this exception? I can not understand why it still tries to connect with the AS400ImplRemote class. (Having a look in the jt400Native.jar there is a AS400ImplNative.class, why isn’t this used ?) I would be very thankful for any help on this subject. /Frida _________________________________________________________________ Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.