baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

Jpype error: already loaded in another classloader #232

Open xanjay opened 1 year ago

xanjay commented 1 year ago

I encountered the following error while running jaydebeapi in Gunicorn. JDBC connection works fine when running locally in a single process.

java.lang.UnsatisfiedLinkError: Native Library /opt/app/venv/lib/python3.8/site-packages/_jpype.cpython-38-x86_64-linux-gnu.so already loaded in another classloader"