0

I want to run a customer script which inturn runs multiple python files from my java programs. the script runs fine when in run the jar manually from the terminal using java -jar jarfilename.jar but fails when i run the same jar as service in background.

I'm getting the following error in my debug log

Site:16 RESULT:False:Vmin test completed with no report! Something went wrong.@_@
Site:9 Traceback (most recent call last):
Site:9   File "pexpect/spawnbase.py", line 166, in read_nonblocking
Site:9 OSError: [Errno 5] Input/output error
Site:9 
Site:9 During handling of the above exception, another exception occurred:
Site:9 
Site:9 Traceback (most recent call last):
Site:9   File "pexpect/expect.py", line 111, in expect_loop
Site:9   File "pexpect/pty_spawn.py", line 485, in read_nonblocking
Site:9   File "pexpect/spawnbase.py", line 171, in read_nonblocking
Site:9 pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
Site:9 
Site:9 During handling of the above exception, another exception occurred:
Site:9 
Site:9 Traceback (most recent call last):`

The above error shows OSError: [Errno 5] Input/output error which from this link linki found it might be due to the print stattement in py file but unfortunately i don't have access to any customer file how can we handle it from java side or any thing when writing a service might fix it?

jasmi
  • 1
  • 3
  • Likely your background service runs with different environment variables and/or user account. Make sure the service has what it needs. – Queeg Jan 20 '23 at 07:05

0 Answers0