Used HTTPAPI and Used call java extproc(*JAVA)

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
iclassic
New User
Posts: 16
Joined: Thu Dec 07, 2017 10:13 pm
First Name: chatchawan
Last Name: phuttha
Company Name: AYCAL
City: bangkok
Country: Thailand
Contact:

Used HTTPAPI and Used call java extproc(*JAVA)

Post by iclassic »

Sorry if the question looks strange.
Can they be used together? Because now has a problem.
- Used HTTPAPI and Used call java extproc(*JAVA)
Attachments
HTTPAPI And Extproc(Java).png
HTTPAPI And Extproc(Java).png (74.84 KiB) Viewed 803 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Used HTTPAPI and Used call java extproc(*JAVA)

Post by Scott Klement »

I can't think of any reason why this wouldn't work.

Can you provide more information?
iclassic
New User
Posts: 16
Joined: Thu Dec 07, 2017 10:13 pm
First Name: chatchawan
Last Name: phuttha
Company Name: AYCAL
City: bangkok
Country: Thailand
Contact:

Re: Used HTTPAPI and Used call java extproc(*JAVA)

Post by iclassic »

I want to call API through HTTPAPI , When I made a new program to call API it work fine.
But If I plug it at the end of existing program that call java object (it will start JVM) ,
API will return "HTTP 200" and get return message from on-error exception.
Does it confuse with classpath or environment of JVM?

Thanks a lot.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Used HTTPAPI and Used call java extproc(*JAVA)

Post by Scott Klement »

HTTPAPI doesn't use the classpath. Classpath is a java variable, and HTTPAPI does not use any Java, it is written in RPG.

Can you provide an example program that I can run to re-create the problem?
iclassic
New User
Posts: 16
Joined: Thu Dec 07, 2017 10:13 pm
First Name: chatchawan
Last Name: phuttha
Company Name: AYCAL
City: bangkok
Country: Thailand
Contact:

Re: Used HTTPAPI and Used call java extproc(*JAVA)

Post by iclassic »

Error msg.
Additional Message Information

Message ID . . . . . . : RNX0100 Severity . . . . . . . : 50
Message type . . . . . : Escape
Date sent . . . . . . : 08/01/20 Time sent . . . . . . : 16:54:12

Message . . . . : Length or start position is out of range for the string
operation.
Cause . . . . . : One of the following has occurred in RPG procedure
COMMTCP_FD in program LIBHTTP/HTTPAPIR4:
- A numeric length or start position is less than 1 or too large for the
string operation.
- The search-argument parameter of the %SCAN built-in function has zero
length or is longer than the source-string parameter.
- The maximum-length parameter of the %STR built-in function is not a value
between 1 and the maximum size of a character field.
Recovery . . . : Contact the person responsible for program maintenance to
determine the cause of the problem.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Used HTTPAPI and Used call java extproc(*JAVA)

Post by Scott Klement »

That message doesn't help me.

I need to know how to reproduce the problem, as I said earlier.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests