java.net.SocketTimeoutException: connect timed out


#1

I am getting below issue,when i am connected to VPN and trying to connect twitter.Here OC4j shutting down,before connection get created to twitter.
Can you please provide any alternative solution for same,code can from firewall.

Using program i am trying to get twitter Usertimeline

Error
TwitterException{exceptionCode=[7defbde2-2bb3b67a e6d0ba7e-4ac3148d], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.1}
14/07/23 23:42:36 at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:179)
14/07/23 23:42:36 at twitter4j.HttpClientBase.request(HttpClientBase.java:53)
14/07/23 23:42:36 at twitter4j.HttpClientBase.get(HttpClientBase.java:71)
14/07/23 23:42:36 at twitter4j.TwitterImpl.get(TwitterImpl.java:1968)
14/07/23 23:42:36 at twitter4j.TwitterImpl.getUserTimeline(TwitterImpl.java:142)
14/07/23 23:42:36 at twitter4j.TwitterImpl.getUserTimeline(TwitterImpl.java:169)
14/07/23 23:42:36 at oracle.apps.ar.hz.components.webui.HzPuiTwitterCO.processFormRequest(HzPuiTwitterCO.java:73)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:854)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1319)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1066)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1032)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:887)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:407)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3169)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1924)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)
14/07/23 23:42:36 at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)
14/07/23 23:42:36 at _OA._jspService(_OA.java:72)
14/07/23 23:42:36 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
14/07/23 23:42:36 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
14/07/23 23:42:36 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
14/07/23 23:42:36 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
14/07/23 23:42:36 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
14/07/23 23:42:36 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
14/07/23 23:42:36 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
14/07/23 23:42:36 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
14/07/23 23:42:36 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
14/07/23 23:42:36 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
14/07/23 23:42:36 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
14/07/23 23:42:36 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
14/07/23 23:42:36 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
14/07/23 23:42:36 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
14/07/23 23:42:36 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
14/07/23 23:42:36 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
14/07/23 23:42:36 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
14/07/23 23:42:36 at java.lang.Thread.run(Thread.java:662)
14/07/23 23:42:36 Caused by: java.net.SocketTimeoutException: connect timed out
14/07/23 23:42:36 at java.net.PlainSocketImpl.socketConnect(Native Method)
14/07/23 23:42:36 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
14/07/23 23:42:36 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
14/07/23 23:42:36 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
14/07/23 23:42:36 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
14/07/23 23:42:36 at java.net.Socket.connect(Socket.java:529)
14/07/23 23:42:36 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:564)
14/07/23 23:42:36 at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
14/07/23 23:42:36 at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
14/07/23 23:42:36 at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
14/07/23 23:42:36 at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:272)
14/07/23 23:42:36 at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
14/07/23 23:42:36 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
14/07/23 23:42:36 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
14/07/23 23:42:36 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
14/07/23 23:42:36 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
14/07/23 23:42:36 at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
14/07/23 23:42:36 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
14/07/23 23:42:36 at twitter4j.HttpResponseImpl.(HttpResponseImpl.java:35)
14/07/23 23:42:36 at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:143)
14/07/23 23:42:36 … 43 more
14/07/23 23:42:36 Failed to get timeline: connect timed out
14/07/23 23:42:36 Shutting down OC4J…
14/07/23 23:42:42 Exception in thread “shutdownHookThread” java.lang.NullPointerException
14/07/23 23:42:42 at com.evermind.server.ObjectReferenceCleaner.resetApplicationLogger(ObjectReferenceCleaner.java:260)
14/07/23 23:42:42 at com.evermind.server.ObjectReferenceCleaner.cleanupApplicationLogger(ObjectReferenceCleaner.java:167)
14/07/23 23:42:42 at com.evermind.server.ObjectReferenceCleaner.loaderDestroyed(ObjectReferenceCleaner.java:94)
14/07/23 23:42:42 at oracle.classloader.EventDispatcher.loaderDestroyed(EventDispatcher.java:254)
14/07/23 23:42:42 at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1187)
14/07/23 23:42:42 at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1126)
14/07/23 23:42:42 at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1069)
14/07/23 23:42:42 at com.evermind.server.ApplicationStateRunning.destroyClassLoaders(ApplicationStateRunning.java:1201)
14/07/23 23:42:42 at com.evermind.server.Application.stateCleanUp(Application.java:3766)
14/07/23 23:42:42 at com.evermind.server.Application.destroy(Application.java:802)
14/07/23 23:42:42 at com.evermind.server.ApplicationServer.destroyApplications(ApplicationServer.java:2337)
14/07/23 23:42:42 at com.evermind.server.ApplicationServer.destroy(ApplicationServer.java:2124)
14/07/23 23:42:42 at com.evermind.server.ApplicationServerShutdownHandler.run(ApplicationServerShutdownHandler.java:93)
14/07/23 23:42:42 at java.lang.Thread.run(Thread.java:662)
Process exited.
Debugger disconnected from local process.