Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Execute a java jar file on application server through ABAP

cuong_luc
Explorer
0 Likes
2,092
  • SAP Managed Tags

Hi everyone,

I've implemented a program that automatically tests our web applications using selenium. I put the program as an executable jar file on our Windows application server and created an ABAP report, so that every one can execute the program separately. I'm using FM 'SXPG_COMMAND_EXECUTE' to run the command 'java -jar ...' on the application server. But the program hung for a few minutes and threw the error x_error, when I looked at SM21 I got the error (Communication error, CPIC return code 020, SAP return code 223: 223,,Network read error). The program works fine locally and directly on the application server (not through ABAP report).

Can anyone tell me why is it and how to fix it?

Thank you!!!

Best regards,

Cuong Luc

1 REPLY 1
Read only

cuong_luc
Explorer
0 Likes
1,395
  • SAP Managed Tags

Hi,

For anyone who has the same problem trying to do similar things. I accidently figured out the reason is the process chromedriver.exe was not killed after terminating program. So the function SXPG_COMMAND_EXECUTE can not read the output from the terminal.

-> Solution: You can kill the process in Java or though ABAP using SM69.

Good luck!

Kind regards,

Cuong Luc