YAJLINTO returns %error and %status 00359
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
YAJLINTO returns %error and %status 00359
I know the meaning for this is "An error occurred while running the parser program or procedure" but is there more information. The only thing that I know that is different about this JSON and all the others that work properly is that this JSON stream is 31,856 KB. Is there a limit to the size of the JSON data stream?
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: YAJLINTO returns %error and %status 00359
Please post a complete job log with full detail.
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
Re: YAJLINTO returns %error and %status 00359
The joblog says:
call ilrenc01 '01'
Member RCILRIN file RCILRIN in NFREC cleared.
Open of member ARMSTR was changed to SEQONLY(*NO).
The length requested for storage allocation is out of range.
Application error. RNX0425 unmonitored by YAJLINTO at statement
0000000862, instruction X'0000'.
Error CEE9901 occurred while running the program or procedure for the
DATA-INTO operation.
Do you need the HTTP log?
call ilrenc01 '01'
Member RCILRIN file RCILRIN in NFREC cleared.
Open of member ARMSTR was changed to SEQONLY(*NO).
The length requested for storage allocation is out of range.
Application error. RNX0425 unmonitored by YAJLINTO at statement
0000000862, instruction X'0000'.
Error CEE9901 occurred while running the program or procedure for the
DATA-INTO operation.
Do you need the HTTP log?
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
Re: YAJLINTO returns %error and %status 00359
Post Deleted
Last edited by sLucke1015 on Wed Sep 06, 2023 9:52 pm, edited 1 time in total.
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: YAJLINTO returns %error and %status 00359
We need the full/complete job log please. (NOT just copy/paste a few lines of text from the interactive job log.)
I don't understand why you posted an HTTPAPI log when you aren't having problems with HTTP.
I don't understand why you posted an HTTPAPI log when you aren't having problems with HTTP.
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: YAJLINTO returns %error and %status 00359
I see. So what seems to be happening is that yajl_iconv_dyn is trying to convert your data to UTF-8, but it is failing and calculating some bogus length. That length is resulting in YAJLINTO asking for an invalid amount of storage.
So i guess the question is... what is the input data to YAJLINTO? i.e. what are you passing to the %DATA BIF of DATA-INTO?
So i guess the question is... what is the input data to YAJLINTO? i.e. what are you passing to the %DATA BIF of DATA-INTO?
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
Re: YAJLINTO returns %error and %status 00359
The program is passing the name of a streamfile.
myStmf = '/ilr/Esubmission/JSON/downloadDoc/105745.json'; (correction here. mea culpa.)
data-Into(E) downloadDoc %data( myStmf : 'doc=file case=any +
allowExtra=yes allowMissing=yes countPrefix=num_' )
%parser( 'YAJL/YAJLINTO' );
myStmf = '/ilr/Esubmission/JSON/downloadDoc/105745.json'; (correction here. mea culpa.)
data-Into(E) downloadDoc %data( myStmf : 'doc=file case=any +
allowExtra=yes allowMissing=yes countPrefix=num_' )
%parser( 'YAJL/YAJLINTO' );
Last edited by sLucke1015 on Fri Sep 08, 2023 12:13 pm, edited 1 time in total.
-
- Site Admin
- Posts: 872
- Joined: Sun Jul 04, 2021 5:12 am
Re: YAJLINTO returns %error and %status 00359
You are passing a Windows path name.... this makes no sense at all. How did you get RPG to run on Windows?
I'm assuming that's not really what you're doing, because it'd cause a different error.... in any case, can you send me a copy of that file?
I'm assuming that's not really what you're doing, because it'd cause a different error.... in any case, can you send me a copy of that file?
-
- Posts: 18
- Joined: Tue Mar 07, 2023 3:09 pm
Re: YAJLINTO returns %error and %status 00359
I would send the entire file if I was able to overcome the 256 KiB limit on attachments.
If you need the entire file as is and there is a way to get the actual 31,952 KB file to you, please inform. (Even zipped, the file is 16,813 KB.)
The problem field is: "requestGroup.request.priaRequest.package.priaDocument.embeddedFile(1).document"
I will attach a copy of the file (105745 - Copy.zip) with this field removed and replaced with "XXX-- alot of stuff here --XXX".
The only difference between the copy and the original file that causes the error is the contents of the document field.
I will also attach a file that does not present any errors (105718.zip).
If you need the entire file as is and there is a way to get the actual 31,952 KB file to you, please inform. (Even zipped, the file is 16,813 KB.)
The problem field is: "requestGroup.request.priaRequest.package.priaDocument.embeddedFile(1).document"
I will attach a copy of the file (105745 - Copy.zip) with this field removed and replaced with "XXX-- alot of stuff here --XXX".
The only difference between the copy and the original file that causes the error is the contents of the document field.
I will also attach a file that does not present any errors (105718.zip).
Last edited by sLucke1015 on Tue Sep 12, 2023 5:25 pm, edited 1 time in total.