5 Replies Latest reply on Oct 18, 2010 12:26 PM by Wolf-Dieter Fink

    Jboss throws the error - unable to create connection

    gopal siva Newbie

      Hi ,

       

      I am running a java package deployed in jboss. It has a resource adapter and it will create a connection with another program running in the same port.

       

      But randomly at some point of time i am getting the below error

       

      16:32:52,660 WARN  [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null

      javax.resource.ResourceException: Could not connect to remote jBASE instance - Failed to connect to host [10.10.10.188], port [6003]

                      at com.jbase.jremote.jca.JRemoteManagedConnectionFactory.connect(Unknown Source)

                      at com.jbase.jremote.jca.JRemoteManagedConnectionFactory.createConnection(Unknown Source)

                      at com.jbase.jremote.jca.JRemoteManagedConnectionFactory.createManagedConnection(Unknown Source)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)

                      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)

                      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)

                      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)

                      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)

                      at com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(Unknown Source)

                      at com.jbase.jremote.jca.JRemoteConnectionFactoryImpl.getConnection(Unknown Source)

                      at com.temenos.t24browser.comms.AgentConnector.sendMessage(AgentConnector.java:157)

                      at com.temenos.t24browser.comms.AgentConnector.talkToServer(AgentConnector.java:92)

                      at com.temenos.t24browser.beans.TemenosBean.sendOfsRequestToServer(TemenosBean.java:930)

                      at com.temenos.t24browser.beans.BrowserBean.processCommand(BrowserBean.java:1000)

                      at com.temenos.t24browser.beans.BrowserBean.doLogin(BrowserBean.java:690)

                      at com.temenos.t24browser.beans.BrowserBean.processLoginCommand(BrowserBean.java:663)

                      at com.temenos.t24browser.beans.BrowserBean.processRequest(BrowserBean.java:237)

                      at com.temenos.t24browser.servlets.BrowserServlet.doPost(BrowserServlet.java:385)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at com.temenos.t24browser.security.BrowserFilter.doFilter(BrowserFilter.java:97)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at com.temenos.t24browser.servlets.ObfuscationServletFilter.doFilter(ObfuscationServletFilter.java:57)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at com.temenos.t24browser.servlets.EncodingFilter.doFilter(EncodingFilter.java:58)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

                      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

                      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

                      at java.lang.Thread.run(Thread.java:595)

      Caused by: com.jbase.jremote.JRemoteException: Failed to connect to host [10.10.10.188], port [6003]

                      at com.jbase.jremote.io.JRemoteSocketConnection.connect(Unknown Source)

                      at com.jbase.jremote.io.JRemoteSocketConnection.<init>(Unknown Source)

                      ... 49 more

      16:32:52,663 INFO  [STDOUT] 2010-10-16 16:32:52,661 [http-10.10.10.190-8080-1] ERROR com.temenos.t24browser.comms.AgentConnector  - Could not connect to remote jBASE instance - Failed to connect to host [10.10.10.188], port [6003]

       

       

      I have issued a netstat command and checked the port 6003 is avialble.

       

      TCP: IPv4

         Local Address        Remote Address    Swind Send-Q Rwind Recv-Q    State

      -------------------- -------------------- ----- ------ ----- ------ -----------

      app01.6003           web01.33017          49640      0 49640      0 ESTABLISHED

      app01.6003           web01.33012          49640      0 49640      0 ESTABLISHED

      app01.6003           web01.33013          49640      0 49640      0 ESTABLISHED

       

      Please let me know how to aviod the error couldn't create connection.

       

      What is the root cause of the issue.

       

      Is it a setup problem - Please let me know how can i correct this