× 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.



Just downloaded a new jt400.zip from JTOPEN. Now everything works. It looks
like my jt400.zip was a bit too old.
PCML is cool!

----- Original Message -----
From: "Bruce Jin" <JIN007M@hotmail.com>
To: "Java Programming on and around the iSeries / AS400"
<java400-l@midrange.com>
Sent: Thursday, January 30, 2003 2:22 PM
Subject: Call RPG using PCML. Test program


> I am trying to run my first PCML Java program and it gave an error:
>
> Thanks for any help!
>
> Bruce
>
>
>
> java.lang.NoSuchMethodError:
> com.ibm.as400.access.ProgramCall.setThreadSafe(Z)V
> at com.ibm.as400.data.PcmlProgram.callProgram(PcmlProgram.java:591)
> at com.ibm.as400.data.PcmlDocument.callProgram(PcmlDocument.java:410)
> at
>
com.ibm.as400.data.ProgramCallDocument.callProgram(ProgramCallDocument.java:
> 274)
> at testpcml.add2numbers.main(add2numbers.java:35)
> Exception in thread "main"
>
>
>
>  Java code:
>
>
>
> pcml = new ProgramCallDocument(sys, "pcml01");
>
> pcml.setValue("program.parameter1", new Integer("8"));
>
> pcml.setValue("program.parameter2", new BigDecimal("5.25"));
>
> PcmlMessageLog.setTraceEnabled(true);
>
> boolean errcode = pcml.callProgram("program");  //line 35
>
>
>
> pcml file pcm01.pcml:
>
>
>
> <pcml version="1.0">
>
> <program name="program" path="/QSYS.lib/QGPL.lib/TESTPCML.pgm">
>
>   <data name="parameter1"  type="zoned"  length="6" precision="0"
> usage="input"/>
>
>   <data name="parameter2" type="packed" length="9" precision="2"
> usage="input"/>
>
>   <data name="sum"  type="packed"   length="9" precision="2"
> usage="output"/>
>
>   <data name="comment"  type="char"   length="20" usage="output"/>
>
> </program>
>
> </pcml>
>
>
>
>
>
>
>
>
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l
> or email: JAVA400-L-request@midrange.com
> 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 ...

Replies:

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.