Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib.urlopen no longer works #139

Open
dllargent opened this issue Apr 19, 2021 · 1 comment
Open

urllib.urlopen no longer works #139

dllargent opened this issue Apr 19, 2021 · 1 comment

Comments

@dllargent
Copy link

When I last ran my code a year ago (April 2020), urllib.urlopen would allow me to provide a URL and make a connection to it, subsequently using the read method to retrieve the page's content. When I run code now, I get the following error messages.

The error was: event executor terminated
A Python RejectedExecutionException happened while running your program, so it stopped.
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\jes\python\jes\core\interpreter_init_.py, on line 157, in function run
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\jes\python\jes\core\interpreter_init_.py, on line 188, in function execute
in file C:\Users\dllargent\OneDrive - Ball State University\Desktop\deleteme.py, on line 5, in function
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\urllib.py, on line 87, in function urlopen
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\urllib.py, on line 213, in function open
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\urllib.py, on line 213, in function open
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\urllib.py, on line 443, in function open_https
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\httplib.py, on line 1053, in function endheaders
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\httplib.py, on line 897, in function _send_output
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\httplib.py, on line 859, in function send
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\httplib.py, on line 1270, in function connect
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib\httplib.py, on line 835, in function connect
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib_socket.py, on line 1518, in function create_connection
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib_socket.py, on line 1518, in function create_connection
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib_socket.py, on line 1391, in function meth
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib_socket.py, on line 891, in function connect
in file C:\Program Files (x86)\JES\jes-6.0-windows-java-included\dependencies\jython\Lib_socket.py, on line 860, in function _connect
RejectedExecutionException: java.util.concurrent.RejectedExecutionException: event executor terminated
Please check line 4 of C:\Users\dllargent\OneDrive - Ball State University\Desktop\deleteme.py

I replicated the issue with the following code:

import urllib
url = "https://www.bsu.edu/"
print url
response = urllib.urlopen(url)
print response

It prints the URL and then stops on the fourth line, displaying the above errors. I am running JES 6.0 on Windows.

@mjguzdial
Copy link
Contributor

mjguzdial commented Apr 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants