adrian-evo / robotframework-sikulixlibrary

The all new, modern, SikuliX Robot Framework library for Python 3.x, based on JPype or Py4J Python modules.
MIT License
22 stars 4 forks source link

Ugly log message when starting py4j from robotframework #9

Open adrian-evo opened 1 year ago

adrian-evo commented 1 year ago

When using Py4J and Robot Framework, before JVM is fully initialized and started, the log might contain the following errors multiple times. This does not affect the functionality at all, it is just polluting the log.

An error occurred while trying to connect to the Java server (127.0.0.1:25333)
Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\py4j\java_gateway.py", line 982, in _get_connection
    connection = self.deque.pop()
                 ^^^^^^^^^^^^^^^^
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\py4j\java_gateway.py", line 1132, in start
    self.socket.connect((self.address, self.port))
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it