2 Replies Latest reply on Jan 6, 2005 9:58 PM by sys user

    trying to send persistent messages of size 4K to the queue,

    namratha pavar Newbie

      Hi,

      I am getting the following exception when trying to send messages of size 4k or more to a queue. Please let me know if anyone has come across the same problem or if you know why its happening.

      I am using JBOSS version 4.0.2 RC2. Its is configured with Oracle 8.1.7.4.

      following is the exception i get:
      13:42:10,939 WARN [JBossManagedConnectionPool] Exception destroying ManagedConn
      ection org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEven
      tListener@1eb7d25[state=DESTROYED mc=org.jboss.resource.adapter.jdbc.local.Local
      ManagedConnection@10d0630 handles=0 lastUse=1105036926522 permit=false trackByTx
      =false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePo
      ol@114629 context=org.jboss.resource.connectionmanager.InternalManagedConnection
      Pool@154145]
      org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (ja
      va.sql.SQLException: No more data to read from socket)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkExc
      eption(BaseWrapperManagedConnection.java:541)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(
      BaseWrapperManagedConnection.java:255)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.do
      Destroy(InternalManagedConnectionPool.java:539)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.re
      turnConnection(InternalManagedConnectionPool.java:329)
      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BaseP
      ool.returnConnection(JBossManagedConnectionPool.java:552)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.returnMan
      agedConnection(BaseConnectionManager2.java:407)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConne
      ctionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:768)
      at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnection
      EventListener.connectionErrorOccurred(TxConnectionManager.java:550)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.broadcas
      tConnectionError(BaseWrapperManagedConnection.java:327)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.connecti
      onError(BaseWrapperManagedConnection.java:313)
      at org.jboss.resource.adapter.jdbc.WrappedConnection.checkException(Wrap
      pedConnection.java:757)
      at org.jboss.resource.adapter.jdbc.WrappedStatement.checkException(Wrapp
      edStatement.java:768)
      at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdat
      e(WrappedPreparedStatement.java:320)
      at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:
      840)
      at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:
      787)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:3
      8)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:131)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationMa
      nager.java:414)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationMa
      nager.java:390)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerI
      nterceptorSupport.java:136)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecu
      rityInterceptor.java:153)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.
      java:270)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java
      :136)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocke
      tManagerHandler.java:86)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.j
      ava:358)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
      utor.java:748)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.sql.SQLException: No more data to read from socket
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
      at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
      at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
      at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
      at oracle.jdbc.ttc7.Oclose.receive(Oclose.java:101)
      at oracle.jdbc.ttc7.TTC7Protocol.close(TTC7Protocol.java:683)
      at oracle.jdbc.driver.OracleStatement.close(OracleStatement.java:644)
      at oracle.jdbc.driver.OraclePreparedStatement.privateClose(OraclePrepare
      dStatement.java:485)
      at oracle.jdbc.driver.OraclePreparedStatement.close(OraclePreparedStatem
      ent.java:393)
      at oracle.jdbc.driver.OracleConnection.close_statements(OracleConnection
      .java:2333)
      at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1412)

      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(
      BaseWrapperManagedConnection.java:251)
      ... 26 more
      13:42:10,959 ERROR [TxConnectionManager] There is something wrong with the pooli
      ng?
      java.lang.IllegalStateException: afterCompletion called with wrong tx! Expected:
      null, actual: TransactionImpl:XidImpl[FormatId=257, GlobalId=npavar/23, BranchQ
      ual=, localId=23]
      at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnection
      EventListener$TxRemover.afterCompletion(TxConnectionManager.java:589)
      at org.jboss.resource.connectionmanager.TransactionSynchronizer.invokeAf
      ter(TransactionSynchronizer.java:181)
      at org.jboss.resource.connectionmanager.TransactionSynchronizer.afterCom
      pletion(TransactionSynchronizer.java:142)
      at org.jboss.tm.TransactionImpl.doAfterCompletion(TransactionImpl.java:1
      418)
      at org.jboss.tm.TransactionImpl.completeTransaction(TransactionImpl.java
      :1090)
      at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:385)
      at org.jboss.tm.TxManager.rollback(TxManager.java:323)
      at org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionManagerStrategy.e
      ndTX(PersistenceManager.java:176)
      at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:
      813)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:3
      8)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:131)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationMa
      nager.java:414)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationMa
      nager.java:390)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerI
      nterceptorSupport.java:136)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecu
      rityInterceptor.java:153)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.
      java:270)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java
      :136)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocke
      tManagerHandler.java:86)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.j
      ava:358)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
      utor.java:748)
      at java.lang.Thread.run(Thread.java:534)


      Please let me know if you wanna see the code or something.

      Thanks in advance,
      -Namratha