Sorry if the question looks strange.
Can they be used together? Because now has a problem.
- Used HTTPAPI and Used call java extproc(*JAVA)
Used HTTPAPI and Used call java extproc(*JAVA)
-
- 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)
- Attachments
-
- HTTPAPI And Extproc(Java).png (74.84 KiB) Viewed 818 times
-
- 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)
I can't think of any reason why this wouldn't work.
Can you provide more information?
Can you provide more information?
-
- 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)
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.
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.
-
- 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)
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?
Can you provide an example program that I can run to re-create the problem?
-
- 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)
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.
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.
-
- 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)
That message doesn't help me.
I need to know how to reproduce the problem, as I said earlier.
I need to know how to reproduce the problem, as I said earlier.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests