jaydebeapi icon indicating copy to clipboard operation
jaydebeapi copied to clipboard

Improve documentation for novices

Open baztian opened this issue 7 years ago • 3 comments

(See post on stackoverflow and Issue #67) As stated in the REAMDE JayDeBeApi implements Python DB-API v2.0. Basically you have to call the execute on a cursor and pass the insert statement.

But you are right. Some more guidance for novices would be nice. Mybe the Python Wiki or the docs for the sqlite implementation give you some guidance.

baztian avatar Mar 08 '18 09:03 baztian

I would also like to see improved documentation around what can be passed to the connect(). I'm running into this problem:

  • jpype._jexception.TeiidSQLExceptionPyRaisable: org.teiid.jdbc.TeiidSQLException: TEIID20020 Error establishing socket to host and port: [url]:[port]. Reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Seems like this problem could be resolved by explicitly passing the path to the Java keystore, but I can't find any documentation about what arguments I can pass to the connect() and I'm not sure where jpype is looking for the key store.

swardlincoln avatar May 09 '18 19:05 swardlincoln

Authenticating with Java is a pain. I couldn't pass the keystore to the JVM. I solved this with https://keystore-explorer.org/ adding the cert to the cacerts. To open cacerts you need to run keystore-explorer as root.

kafran avatar Jul 09 '19 20:07 kafran

@swardlincoln - Even I am facing this exact issue. I tried adding certificates to the cacerts, it just works fine with other applications but I am also confused about the path that jPype is looking for the key store. Were you able to figure out any solution for it ?

mitaliich avatar Apr 21 '20 13:04 mitaliich