0 Replies Latest reply on Sep 18, 2014 1:45 AM by Fakaruddin Ali

    Unable to fill pool: javax.resource.ResourceException: Could not create connection

    Fakaruddin Ali Newbie

      Hi All,

      I am using jboss7.1.1 , Hibernate 4.3.5, EJB3.1 in my application.

      In my application I need to upload files  , my application reading those file and putting those in DB.

      in standlone.xml, I am using the following confuguration

       

      <datasources>

                      <datasource jndi-name="java:/myDS" pool-name="myDS" enabled="true" use-java-context="true">

                          <connection-url><@DB.CONNECTIONURL@></connection-url>

                          <driver>oracle</driver>

                          <security>

                              <security-domain>myRealm</security-domain>

                          </security>

                <pool>

           <min-pool-size>25</min-pool-size>

              <max-pool-size>100</max-pool-size>             

             <prefill>true</prefill>

          </pool>

           

                      </datasource>

       

      <datasources>

       

      If multiple files are uploading together getting the following exception

       

      2014-09-11 20:36:43,518 ERROR [jacorb.giop.conn] (ServerMessageReceptor0) Failed to read GIOP message in ServerGIOPConnection to 10.204.132.74:59741 (8ecd32), incorrect magic number --> connection closed
      2014-09-11 20:36:44,025 ERROR [jacorb.giop.conn] (ServerMessageReceptor0) Failed to read GIOP message in ServerGIOPConnection to 10.204.132.74:59762 (1a2ed3b), incorrect magic number --> connection closed
      2014-09-11 20:36:44,591 ERROR [jacorb.giop.conn] (ServerMessageReceptor0) Failed to read GIOP message in ServerGIOPConnection to 10.204.132.74:59786 (157dd3b), incorrect magic number --> connection closed
      2014-09-11 20:39:45,791 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 455421233
      2014-09-11 20:39:51,531 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 455421233
      2014-09-11 20:39:57,625 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 455421233
      2014-09-11 20:40:03,533 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 455421233
      2014-09-11 20:40:08,813 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 455421233
      2014-09-11 20:40:09,369 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725919
      2014-09-11 20:40:19,875 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of -2139750141
      2014-09-11 20:40:24,783 ERROR [org.jboss.remoting.remote.connection] (Remoting "slct7ietvmg104:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 369295616
      2014-09-11 22:06:26,909 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:706)
      at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:517)
      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:557)
      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:233)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:556)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
      ... 5 more
      Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:389)
      at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:431)
      at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:882)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:267)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1625)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:365)
      ... 10 more
      Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:147)
      at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:367)
      ... 15 more

      2014-09-11 22:51:28,896 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.PoolBySubject] (JCA PoolFiller) IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761)
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:706)
      at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
      at java.lang.Thread.run(Thread.java:744)
      Caused by: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:517)
      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:557)
      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:233)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:29)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:556)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
      ... 5 more
      Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:389)
      at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:431)
      at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:882)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:267)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1625)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:365)
      ... 10 more
      Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      at java.net.Socket.connect(Socket.java:579)
      at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:147)
      at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
      at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:367)

       

       

       

      Please help to resolve the issue.
      Is this issue is their in jboss 7.1.1?