YAJLINTO returns %error and %status 00359

Discussions relating to the ScottKlement.com port of the open source YAJL JSON Reader/Generator. This includes the YAJL tool as well as the YAJLR4, YAJLGEN, YAJLINTO and YAJLDTAGEN add-ons from ScottKlement.com. http://www.scottklement.com/yajl/
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

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?
Scott Klement
Site Admin
Posts: 658
Joined: Sun Jul 04, 2021 5:12 am

Re: YAJLINTO returns %error and %status 00359

Post by Scott Klement »

Please post a complete job log with full detail.
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

Re: YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

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?
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

Re: YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

Post Deleted
Last edited by sLucke1015 on Wed Sep 06, 2023 9:52 pm, edited 1 time in total.
Scott Klement
Site Admin
Posts: 658
Joined: Sun Jul 04, 2021 5:12 am

Re: YAJLINTO returns %error and %status 00359

Post by Scott Klement »

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.
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

Re: YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

Scott Klement
Site Admin
Posts: 658
Joined: Sun Jul 04, 2021 5:12 am

Re: YAJLINTO returns %error and %status 00359

Post by Scott Klement »

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?
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

Re: YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

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' );
Last edited by sLucke1015 on Fri Sep 08, 2023 12:13 pm, edited 1 time in total.
Scott Klement
Site Admin
Posts: 658
Joined: Sun Jul 04, 2021 5:12 am

Re: YAJLINTO returns %error and %status 00359

Post by Scott Klement »

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?
sLucke1015
Posts: 18
Joined: Tue Mar 07, 2023 3:09 pm

Re: YAJLINTO returns %error and %status 00359

Post by sLucke1015 »

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).
Last edited by sLucke1015 on Tue Sep 12, 2023 5:25 pm, edited 1 time in total.
Post Reply