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?
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>
i just exchanged these values. the original ones i use, fit in the length
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?
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