Connection by SSL (HTTPS) fail - Host not found

30 views
Skip to first unread message

Daniel Carvalho

unread,
May 15, 2015, 12:07:01 AM5/15/15
to light...@googlegroups.com
My connection fail when trying by HTTPS but it works with simple HTTP.

CouchDB 1.5.0 - remote server
Tomcat 8.0.9
Java 1.8.0_25

.properties

### Required
couchdb.name=db001
couchdb.createdb.if-not-exist=false
# The protocol: http | https
couchdb.protocol=https
couchdb.host=remotedomain.com
# The port e.g: 5984 | 6984 -> ssl 443 http 80
couchdb.port=443
# Blank username/password for no login
couchdb.username=user
couchdb.password=pwd

### Optional
# Timeout to wait for a response, in milliseconds. Defaults to 0 (no timeout).
couchdb.http.socket.timeout=0
# Timeout to establish a connection, in milliseconds. Defaults to 0 (no timeout).
couchdb.http.connection.timeout=0


-> trying to set properties directly in the code get the same behaviour...


org.lightcouch.NoDocumentException: Host not found
    at org.lightcouch.CouchDbClientBase.validate(CouchDbClientBase.java:641)
    at org.lightcouch.CouchDbClient$3.process(CouchDbClient.java:222)
    at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:141)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:189)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.lightcouch.CouchDbClientBase.executeRequest(CouchDbClientBase.java:469)
    at org.lightcouch.CouchDbClientBase.get(CouchDbClientBase.java:519)
    at org.lightcouch.CouchDbClientBase.get(CouchDbClientBase.java:530)
    at org.lightcouch.CouchDbContext.serverVersion(CouchDbContext.java:121)
    at org.lightcouch.CouchDbContext.<init>(CouchDbContext.java:56)
    at org.lightcouch.CouchDbClientBase.<init>(CouchDbClientBase.java:98)
    at org.lightcouch.CouchDbClient.<init>(CouchDbClient.java:127)
    at w1.rest.DbInfo.getDbInfo(DbInfo.java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)
    at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)

Daniel Carvalho

unread,
May 15, 2015, 12:12:05 AM5/15/15
to light...@googlegroups.com
working with:

lightcouch version 0.1.8
Reply all
Reply to author
Forward
0 new messages