Greetings!
My scenario is such - I'm wrapping a Java web service around a set of RPG programs that live on one of my company's i-Series (AS/400) midrange computers. To faciltate the connectivity between the Java application server and the i-Series box, I'm using IBM's Toolbox for Java.
My circumstances allow me to use previously-written PCML specification files in my code. I can verify that these PCML files are in use in my company's production environment.
The PCML files work for all but one RPG program, which throws an exception at the ProgramCallDocument initialization statement.
The specific error thrown is -
-
"File 'getAccountInfo' contains PCML specification errors."
-
With the finer details of the exception being -
-
"Attribute length="9" is not allowed when type="int" is specified....."
-
...
-
"Attribute length="9" is not allowed when type="int" is specified....."
-
...
-
"Attribute length="3" is not allowed when type="int" is specified....."
-
The PCML document has worked in the past, so I'm skeptical that anything is wrong with the document itself.
A handful of the approaches I've tried to fixing this problem -
- Changing the PCML version in the PCML document
- Rolling back to a previously-used version of the JT400.jar library
- Verifying that the RPG programs output parameter datatypes match those found in the PCML document specification.
My environment specs -
- Sun Java System Application Server v. 9
- J2EE 1.4
- OS/400 (i5/OS) V5R4
Any help or insight would be greatly appreciated.