× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Okay. It is come down to it won't keep my classpath. (I don't know how the
rest of the errors disappeared). I know this is an RPG issue. So I am
closing this out on the java list.

Mike Wills
Lawson Programmer/Administrator
Taylor Corporation
Email: mnwills AT taylorcorpNOSPAM DOT com
AIM: iSeriesCodePoet


-----Original Message-----
From: Wills, Mike N. (TC) 
Sent: Tuesday, December 16, 2003 11:56 AM
To: RPG programming on the AS400 / iSeries; Java Programming on and around
the iSeries / AS400
Subject: Still having problems with Java

Hey all, I am still having problems with java. I wrote a test program
(interactive) to test all of my subprocedures, and they seem to be working
just fine now. I have put that code into my program (batch only) I am
working with and I am getting this error: 

Cause . . . . . :   RPG procedure DOCP_LOGIN in program PDFPGMS/F.DOCPROC

  received Java exception "com.taylor.docgate.DocgateException:

  DocgateDAOAImpl.Login.IOException: java.io.FileNotFoundExceptio" when

  calling method "Login" with signature

 
"(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Ljava.lang.String;"
  in class "com.taylor.docgate.Docprocess".

Now, what makes this weird is that it isn't accessing a file on the system,
but it is getting an XML stream from the web application it is connecting
to. I know it isn't the procedure or java program because like I said, that
works. I have a setup routine that sets the classpath and the current
directory, which completes successfully.:

       // Set the current directory
       #execClCmd('CHGCURDIR DIR(' + @Q + '/docushare/bin/' + @Q +')');

       // Set the classpath
       #execClCmd('ADDENVVAR ENVVAR(CLASSPATH) ' +
                  'VALUE(' + @Q +
                  '/docushare/bin:/docushare/bin/JSQLConnect.jar' + @Q +
                  ') REPLACE(*NO)');

Does anyone have any ideas what could be wrong? I just testes it in
interactive and it works just fine, it just doesn't work in batch.

I would appreciate any ideas.


Mike Wills
Lawson Programmer/Administrator
Taylor Corporation
Email: mnwills AT taylorcorpNOSPAM DOT com
AIM: iSeriesCodePoet

_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.