Details
-
Question
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.2.1
-
None
-
None
-
windows,pycharm,python
Description
I am often facing with the connection refused error which says
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:52865)
Traceback (most recent call last):
File "C:\Users\avenugopal\AppData\Local\Programs\Python\Python36\lib\site-packages\py4j\java_gateway.py", line 827, 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:\Users\avenugopal\AppData\Local\Programs\Python\Python36\lib\site-packages\py4j\java_gateway.py", line 963, in start
self.socket.connect((self.address, self.port))
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it