{"action":"created","issue":{"url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/168","labels_url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/168/comments","events_url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/168/events","html_url":"https://github.com/impossibl/pgjdbc-ng/issues/168","id":82759298,"number":168,"title":"SSL connection problem","user":{"login":"speedymrk9","id":8821783,"avatar_url":"https://avatars.githubusercontent.com/u/8821783?v=3","gravatar_id":"","url":"https://api.github.com/users/speedymrk9","html_url":"https://github.com/speedymrk9","followers_url":"https://api.github.com/users/speedymrk9/followers","following_url":"https://api.github.com/users/speedymrk9/following{/other_user}","gists_url":"https://api.github.com/users/speedymrk9/gists{/gist_id}","starred_url":"https://api.github.com/users/speedymrk9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speedymrk9/subscriptions","organizations_url":"https://api.github.com/users/speedymrk9/orgs","repos_url":"https://api.github.com/users/speedymrk9/repos","events_url":"https://api.github.com/users/speedymrk9/events{/privacy}","received_events_url":"https://api.github.com/users/speedymrk9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-30T09:13:38Z","updated_at":"2015-05-31T16:31:57Z","closed_at":null,"body":"Hello,\r\n\r\nI'm facing big problem while trying to connect to a DB using SSL and your library... \r\nI've tried many connection strings, but none works.\r\nDo you know what can I do? In fact, I'm getting this exception:\r\n\r\n`java.sql.SQLException: Connection Error: java.lang.IllegalStateException\r\n at com.impossibl.postgres.jdbc.ConnectionUtil.createConnection(ConnectionUtil.java:189)\r\n at com.impossibl.postgres.jdbc.PGDriver.connect(PGDriver.java:77)\r\n at com.impossibl.postgres.jdbc.PGDriver.connect(PGDriver.java:52)\r\n at java.sql.DriverManager.getConnection(DriverManager.java:179)\r\n at it.polito.mobile.testpostgres.MainActivity$1.doInBackground(MainActivity.java:60)\r\n at it.polito.mobile.testpostgres.MainActivity$1.doInBackground(MainActivity.java:35)\r\n at android.os.AsyncTask$2.call(AsyncTask.java:288)\r\n at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)\r\n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n at java.lang.Thread.run(Thread.java:818)\r\n Caused by: java.io.IOException: java.lang.IllegalStateException\r\n at com.impossibl.postgres.protocol.v30.ProtocolFactoryImpl.translateConnectionException(ProtocolFactoryImpl.java:285)\r\n at com.impossibl.postgres.protocol.v30.ProtocolFactoryImpl.connect(ProtocolFactoryImpl.java:199)\r\n at com.impossibl.postgres.protocol.v30.ProtocolFactoryImpl.connect(ProtocolFactoryImpl.java:90)\r\n at com.impossibl.postgres.system.BasicContext.<init>(BasicContext.java:130)\r\n at com.impossibl.postgres.jdbc.PGConnectionImpl.<init>(PGConnectionImpl.java:185)\r\n at com.impossibl.postgres.jdbc.ConnectionUtil.createConnection(ConnectionUtil.java:180)\r\n ... 11 more\r\n Caused by: java.lang.IllegalStateException\r\n at io.netty.handler.ssl.SslHandler$LazyChannelPromise.executor(SslHandler.java:1491)\r\n at io.netty.util.concurrent.DefaultPromise.checkDeadLock(DefaultPromise.java:388)\r\n at io.netty.util.concurrent.DefaultPromise.awaitUninterruptibly(DefaultPromise.java:283)\r\n at io.netty.util.concurrent.DefaultPromise.syncUninterruptibly(DefaultPromise.java:225)\r\n at io.netty.util.concurrent.DefaultPromise.syncUninterruptibly(DefaultPromise.java:32)\r\n at com.impossibl.postgres.protocol.v30.ProtocolFactoryImpl.connect(ProtocolFactoryImpl.java:132)\r\n ... 15 more`"},"comment":{"url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/comments/107219253","html_url":"https://github.com/impossibl/pgjdbc-ng/issues/168#issuecomment-107219253","issue_url":"https://api.github.com/repos/impossibl/pgjdbc-ng/issues/168","id":107219253,"user":{"login":"kdubb","id":787655,"avatar_url":"https://avatars.githubusercontent.com/u/787655?v=3","gravatar_id":"","url":"https://api.github.com/users/kdubb","html_url":"https://github.com/kdubb","followers_url":"https://api.github.com/users/kdubb/followers","following_url":"https://api.github.com/users/kdubb/following{/other_user}","gists_url":"https://api.github.com/users/kdubb/gists{/gist_id}","starred_url":"https://api.github.com/users/kdubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdubb/subscriptions","organizations_url":"https://api.github.com/users/kdubb/orgs","repos_url":"https://api.github.com/users/kdubb/repos","events_url":"https://api.github.com/users/kdubb/events{/privacy}","received_events_url":"https://api.github.com/users/kdubb/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T16:31:57Z","updated_at":"2015-05-31T16:31:57Z","body":"@normanmaurer  is @harbulot issue a Netty problem or are we initializing it incorrectly?"}}