Page 1 of 1
					
				Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Fri Jan 03, 2020 1:57 am
				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)
			 
			
					
				Re: Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Fri Jan 03, 2020 2:55 am
				by Scott Klement
				I can't think of any reason why this wouldn't work. 
Can you provide more information?
			 
			
					
				Re: Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Fri Jan 03, 2020 7:19 am
				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.
			 
			
					
				Re: Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Fri Jan 03, 2020 12:07 pm
				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?
			 
			
					
				Re: Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Wed Jan 08, 2020 6:15 am
				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.
			 
			
					
				Re: Used HTTPAPI and Used call java  extproc(*JAVA)
				Posted: Wed Jan 08, 2020 1:21 pm
				by Scott Klement
				That message doesn't help me.
I need to know how to reproduce the problem, as I said earlier.