Connecting Tech Pros Worldwide Help | Site Map

PCML Specification Errors using JT400

seligerasmus's Avatar
Newbie
 
Join Date: Jun 2007
Location: Memphis, TN
Posts: 12
#1: Jul 30 '07
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 -
Expand|Select|Wrap|Line Numbers
  1. "File 'getAccountInfo' contains PCML specification errors."
  2.  
With the finer details of the exception being -
Expand|Select|Wrap|Line Numbers
  1. "Attribute length="9" is not allowed when type="int" is specified....."
  2. ...
  3. "Attribute length="9" is not allowed when type="int" is specified....."
  4. ...
  5. "Attribute length="3" is not allowed when type="int" is specified....."
  6.  
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.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#2: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by seligerasmus

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 -

Expand|Select|Wrap|Line Numbers
  1. "File 'getAccountInfo' contains PCML specification errors."
  2.  
With the finer details of the exception being -
Expand|Select|Wrap|Line Numbers
  1. "Attribute length="9" is not allowed when type="int" is specified....."
  2. ...
  3. "Attribute length="9" is not allowed when type="int" is specified....."
  4. ...
  5. "Attribute length="3" is not allowed when type="int" is specified....."
  6.  
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.



You said the file worked before.
When did it start to show the errors? i.e after making which changes?
seligerasmus's Avatar
Newbie
 
Join Date: Jun 2007
Location: Memphis, TN
Posts: 12
#3: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by r035198x

You said the file worked before.
When did it start to show the errors? i.e after making which changes?

The PCML file works in old legacy code (currently running in the production environment), but has never functioned in this new project.

The file itself remains unchanged.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#4: Jul 30 '07

re: PCML Specification Errors using JT400


Just a silly guess (I know nothing about PCML): what happens if you remove
that attribute 'lengt="x"'? It seems to me that it's a format specifier of some
sort like the old COBOL 'pic 999' thing. It makes sense that such a format
wouldn't make sense for just ints.

I might be totally wrong though.

kind regards,

Jos
seligerasmus's Avatar
Newbie
 
Join Date: Jun 2007
Location: Memphis, TN
Posts: 12
#5: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by JosAH

Just a silly guess (I know nothing about PCML): what happens if you remove
that attribute 'lengt="x"'? It seems to me that it's a format specifier of some
sort like the old COBOL 'pic 999' thing. It makes sense that such a format
wouldn't make sense for just ints.

I might be totally wrong though.

kind regards,

Jos

Yes, sir. I tried changing the length attribute (same error) and removing it entirely (and received a "attribute NULL is not allowed for type int" error message)
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#6: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by seligerasmus

Yes, sir. I tried changing the length attribute (same error) and removing it entirely (and received a "attribute NULL is not allowed for type int" error message)

Does this link help a bit?

Sorry that I can't really help you with this; best of luck.

kind regards,

Jos
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#7: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by seligerasmus

Yes, sir. I tried changing the length attribute (same error) and removing it entirely (and received a "attribute NULL is not allowed for type int" error message)

Well I'm stumped. I wonder if running it with a java 1.4 JVM would help.
seligerasmus's Avatar
Newbie
 
Join Date: Jun 2007
Location: Memphis, TN
Posts: 12
#8: Jul 30 '07

re: PCML Specification Errors using JT400


Quote:

Originally Posted by r035198x

Well I'm stumped. I wonder if running it with a java 1.4 JVM would help.

I will give that a try ASAP and report my results.

Oh, and thanks for the link, Jos. It didn't address this particular issue, but it did help me with another unrelated problem I was experiencing.
Reply