Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-688

ActiveMQActivationSpec default maxSessions value reset to 0 by Geronimo

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-M4
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      Description

      The org.activemq.ra.ActiveMQActivationSpec sets its maxSessions property to the 10 by default, but during application deployment if maxSessions is not set manually, Geronimo GBeans runtime resets this value to the 0, making MDB beans not working.

      Here is the exception thrown during sending message to the topic:

      13:24:04,749 WARN [TransportChannelSupport] No Packet found to match Receipt correlationId: 9
      java.util.NoSuchElementException
      at java.util.LinkedList.remove(LinkedList.java:579)
      at java.util.LinkedList.removeFirst(LinkedList.java:131)
      at org.activemq.ra.ServerSessionPoolImpl.getExistingServerSession(ServerSessionPoolImpl.java
      :116)
      at org.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerSessionPoolImpl.java:98)
      at org.activemq.ActiveMQConnectionConsumer.dispatchToSession(ActiveMQConnectionConsumer.java
      :154)
      at org.activemq.ActiveMQConnectionConsumer.dispatch(ActiveMQConnectionConsumer.java:116)
      at org.activemq.ActiveMQConnection.consume(ActiveMQConnection.java:937)
      at org.activemq.transport.TransportChannelSupport.doConsumePacket(TransportChannelSupport.ja
      va:374)
      at org.activemq.transport.TransportChannelSupport.doConsumePacket(TransportChannelSupport.ja
      va:368)
      at org.activemq.transport.tcp.TcpTransportChannel.run(TcpTransportChannel.java:310)
      at java.lang.Thread.run(Thread.java:534)

      The reason is that maxSessions = 0, and sessions list size = 0 too, so it tries to get existent session (as maximum size is reached) from the empty list.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wfrag Ivan Dubrov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: