nio - Azure notification hub java.net.ConnectException: Connection timed out: no further information -


am trying use azure notification hub, via java. when trying create registration, java.net.connectexception: connection timed out: no further information. can me understand why issue may come? pls let me know if need more information. thanks.

am using code found https://github.com/azure/azure-notificationhubs-java-backend/blob/master/notificationhubs.

jar file versions below:

httpclient - 4.3.1 httpcore - 4.3.1 httpcore-nio - 4.3.1 

error happens in synccallback class, method - "failed". exception trace below.

java.lang.runtimeexception: java.net.connectexception: connection timed out: no further information     @ com.org.utils.notifications.synccallback.failed(synccallback.java:41)     @ org.apache.http.concurrent.basicfuture.failed(basicfuture.java:130)     @ org.apache.http.impl.nio.client.defaultclientexchangehandlerimpl.connectionrequestfailed(defaultclientexchangehandlerimpl.java:318)     @ org.apache.http.impl.nio.client.defaultclientexchangehandlerimpl.access$100(defaultclientexchangehandlerimpl.java:63)     @ org.apache.http.impl.nio.client.defaultclientexchangehandlerimpl$1.failed(defaultclientexchangehandlerimpl.java:364)     @ org.apache.http.concurrent.basicfuture.failed(basicfuture.java:130)     @ org.apache.http.impl.nio.conn.poolingnhttpclientconnectionmanager$internalpoolentrycallback.failed(poolingnhttpclientconnectionmanager.java:474)     @ org.apache.http.concurrent.basicfuture.failed(basicfuture.java:130)     @ org.apache.http.nio.pool.routespecificpool.failed(routespecificpool.java:165)     @ org.apache.http.nio.pool.abstractnioconnpool.requestfailed(abstractnioconnpool.java:530)     @ org.apache.http.nio.pool.abstractnioconnpool$internalsessionrequestcallback.failed(abstractnioconnpool.java:778)     @ org.apache.http.impl.nio.reactor.sessionrequestimpl.failed(sessionrequestimpl.java:154)     @ org.apache.http.impl.nio.reactor.defaultconnectingioreactor.processevent(defaultconnectingioreactor.java:175)     @ org.apache.http.impl.nio.reactor.defaultconnectingioreactor.processevents(defaultconnectingioreactor.java:147)     @ org.apache.http.impl.nio.reactor.abstractmultiworkerioreactor.execute(abstractmultiworkerioreactor.java:349)     @ org.apache.http.impl.nio.conn.poolingnhttpclientconnectionmanager.execute(poolingnhttpclientconnectionmanager.java:189)     @ org.apache.http.impl.nio.client.closeablehttpasyncclientbase.doexecute(closeablehttpasyncclientbase.java:67)     @ org.apache.http.impl.nio.client.closeablehttpasyncclientbase.access$000(closeablehttpasyncclientbase.java:38)     @ org.apache.http.impl.nio.client.closeablehttpasyncclientbase$1.run(closeablehttpasyncclientbase.java:57)     @ java.lang.thread.run(unknown source) caused by: java.net.connectexception: connection timed out: no further information     @ sun.nio.ch.socketchannelimpl.checkconnect(native method)     @ sun.nio.ch.socketchannelimpl.finishconnect(unknown source)     @ org.apache.http.impl.nio.reactor.defaultconnectingioreactor.processevent(defaultconnectingioreactor.java:173)     ... 7 more 

you can find resone of java.net.connectexception: connection timed out exception.

  1. firewall of system port rang using project. check filewale setting , unblock port.

  2. ip/domain or port incorrect. try ping or telnet command check connectivity.

  3. may due slow internet or havy process server not processes request in time period, or may b connection issue.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -