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



 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>









As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.