Unable to connect to PostgreSQL database in PyCharm: "java.lang.ClassNotFoundException: org.jetbrains.dekaf.jdbc.UnknownDatabaseIntermediateFacade"

Answered

I am getting some odd issues.  Using `psycopg2`, I am able to interact with the database server with correct credentials.  Adding the database to pyCharm as a datasource, however, results in the system throwing this error when attempting to connect, despite correct credentials and databases being entered:

[2016-08-29 10:21:25] java.lang.ClassNotFoundException: org.jetbrains.dekaf.jdbc.UnknownDatabaseIntermediateFacade
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.intellij.database.remote.jdbc.impl.RemoteDriverImpl.connect(RemoteDriverImpl.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

 

I'm not sure how to troubleshoot/debug this, any ideas?

2 comments
Comment actions Permalink
Please re-download from https://www.jetbrains.com/pycharm/download/ and install from scratch (if you are on linux unpack it to a new directory). Does it help?
1
Comment actions Permalink

Anna,

Thank you for your response.

I normally nuke and redo the `pycharm` directory where I put it on my Linux system, so I'm unsure what prompted this "upgrade" (remove old folder, untar completely, launch again from that folder) to fail.  Nuking the pycharm folder and starting from yet another tarball extraction seems to have fixed it.

What's odd is that this is what I do every time a new release comes out, yet it didn't work the first time.  It's fixed, anyways, but strange it failed with this process already executed for an update/upgrade installation.

0

Please sign in to leave a comment.