Menu

#383 Access API via PCML leads to error

PCML
open
wanghuiq
pcml sax (1)
5
2017-04-17
2017-02-08
DeltaE0
No

Hello,

i managed to access api QYHCHCOP via jt400 9.1 and PCML. The java pgm access the api once a minute. Sometimes the thread crashes with the stacktrace below. Can you explain me, where i can search for the error?

best regards

1 Attachments

Discussion

  • wanghuiq

    wanghuiq - 2017-02-09

    Pls check if you PCML file correct or not:
    length is less than the length of init value:

    <data name="sstuser" type="char" length="7" usage="input" init="SOMEUSER">
    <data name="sstuserpw" type="char" length="9" usage="input" init="somepasswd"></data></data>

     
  • DeltaE0

    DeltaE0 - 2017-02-09

    i just exchanged these values. the original ones i use, fit in the length

     
  • wanghuiq

    wanghuiq - 2017-02-10

    I guess it has some relationship with your java environment of XML parser. I tried your pcml file on my local and no problem found (java 1.8.)
    The parser call stack on my local is as following:
    com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
    while in your trace:
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at com.ibm.as400.data.PcmlSAXParser.<init>(PcmlSAXParser.java:222)</init>

    Which java version your are working and is the problem there with other jdk version?

     
  • DeltaE0

    DeltaE0 - 2017-02-20

    i tested with java 7 and 8. And i had the issue on both. Now i changed my code to create the pcml Object once at startup and not on every request to the api. This runs now stable. the issue did not reoccur. So for me you can close this bug. thanks for your help

     
  • John Eberhard

    John Eberhard - 2017-04-17
    • assigned_to: wanghuiq
     

Log in to post a comment.

MongoDB Logo MongoDB