×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi
it seems that there is some problem with the java
class loader, do u pass it as a stream to your
program, or u pass as some path of the file

Ashish
--- "Wills, Mike N. (TC)" <MNWills@xxxxxxxxxxxxxx>
wrote:
> 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.
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.