This content has been marked as final. Show 6 replies
Post the stack trace. And please edit your post to format the code.
Exception in thread "main" java.lang.NullPointerException
The problem is your Properties setup code. you should be using the "setProperty()" method, not "put()". if you did that, you would realize that you were putting a Boolean value in the properties (instead of a String value), which is causing issues inside the driver.1 person found this helpful
thank's for the reply i changed my code
Properties prop=new Properties();
i get the following error
SSL error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
i think that i have an authentication problem
oky i fix it
edit the pg_hba.conf and allow connections from anywhere
host all all 0.0.0.0/0 trust
Then please mark the thread ANSWERED.