Search found 249 matches

by jonboy49
Mon May 08, 2023 5:57 pm
Forum: YAJL-ILE
Topic: Error when using YAJLINTO
Replies: 6
Views: 25431

Re: Error when using YAJLINTO

Are you actually getting a response? You have a monitor block in place to trap errors on the GET but you go ahead and use DATA-INTO regardless.

If you are receiving a response what does the json look like?
by jonboy49
Mon May 08, 2023 2:50 pm
Forum: General
Topic: RPGMAIL emailing errors out
Replies: 6
Views: 29306

Re: RPGMAIL emailing errors out

RPGMail is horribly out of date so I'm not surprised given the changes in Java over the years that it is not working.

In fact the author of the tool said this some 6+ years ago!

"I wrote RPGMail. The fix that's worked for others is to alter the ENVVAR
to point at a version of Java on your system ...
by jonboy49
Wed Apr 19, 2023 8:19 pm
Forum: HTTPAPI
Topic: Rest Service Post Json containing Base64 encoded data
Replies: 3
Views: 8635

Re: Rest Service Post Json containing Base64 encoded data

Yup - that would have screwed it up even better!

Glad you sorted it out.
by jonboy49
Wed Apr 19, 2023 7:36 pm
Forum: HTTPAPI
Topic: Rest Service Post Json containing Base64 encoded data
Replies: 3
Views: 8635

Re: Rest Service Post Json containing Base64 encoded data

Have you told HTTPAPI to use the correct CCSID for the network? e.g.

Code: Select all

http_setOption ( 'network-ccsid' : '1208' );
If that is not the issue we'll need to see more of your code.
by jonboy49
Thu Apr 13, 2023 8:11 pm
Forum: YAJL-ILE
Topic: Problem putting packed fields in a ds from a json in standard in
Replies: 4
Views: 18752

Re: Problem putting packed fields in a ds from a json in standard in

As I noted earlier - leading zeros are not valid in JSON. See here (among many other web pages) https://stackoverflow.com/questions/27361565/why-is-json-invalid-if-an-integer-begins-with-a-leading-zero

Apparently some parsers allow it as a non-standard feature. I don't know enough about YAJL to ...
by jonboy49
Thu Apr 13, 2023 5:52 pm
Forum: YAJL-ILE
Topic: Problem putting packed fields in a ds from a json in standard in
Replies: 4
Views: 18752

Re: Problem putting packed fields in a ds from a json in standard in

I found two problems when I ran a subset of your example.

First "DATELM":04 is flagged as invalid json by YAJLINTO and JSONLINT.COM removing the leading zero cures that issue.

The second, and I have not seen this issue before, is that there appears to be a problem with the fields being packed ...
by jonboy49
Wed Apr 12, 2023 4:04 pm
Forum: General
Topic: Question about java
Replies: 3
Views: 14444

Re: Question about java

Just remembered. It is AppServer4RPG and you can find it here: https://sourceforge.net/projects/appserver4rpg/

Great tool.
by jonboy49
Wed Apr 12, 2023 3:58 pm
Forum: General
Topic: Question about java
Replies: 3
Views: 14444

Re: Question about java

The JVM is tied to the job and lives only as long as the job. That is the biggest issue most people face.

For a long running "service" provided in Java most submit a never-ending-job to batch and interact with it via data queues. There is an open source engine for this - but I'm danged if I can ...
by jonboy49
Mon Apr 10, 2023 8:55 pm
Forum: HTTPAPI
Topic: submitting job to batch using HTTPAPI
Replies: 2
Views: 8706

Re: submitting job to batch using HTTPAPI

Is HTTPAPI in the library list for the batch process? If I remember correctly that was the problem that I experienced in the past.
by jonboy49
Thu Mar 30, 2023 2:51 pm
Forum: YAJL-ILE
Topic: YAJLINTO with object array throwing reason code 9 error
Replies: 12
Views: 91807

Re: YAJLINTO with object array throwing reason code 9 error

I don't understand how this fixed anything. skip_nulls true or false makes no difference with the sample you supplied. It only really has any impact when a compound entry is null itself. Something like this:


{
"documents": {
"test_doc1": null
...


Without the value_null it still works - just ...