glassfish
  1. glassfish
  2. GLASSFISH-19020

When invalid min and max threads are specified for imqbrokerd, it does not accept a message.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.0_b45
    • Fix Version/s: None
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Windows

      Description

      When invalid min and max threads are specified for imqbrokerd, it does not work.

      To reproduce this:
      1. Start imqbrokerd
      imqbrokerd -Dimq.jms.min_threads=10 -Dimq.jms.max_threads=4

      2. Send some messages.
      Error running programjavax.jms.JMSException: [C4090]: Invalid port number. Broker is not available or may be paused: [localhost,-1]

      at com.sun.messaging.jmq.jmsclient.ConnectionImpl.checkHostPort(ConnectionImpl.java:543)
      at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:136)
      at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:136)

      C:\glassfish\glassfish-4.0-b45\glassfish3\mq\bin>imqbrokerd -Dimq.jms.min_threads=10 -Dimq.jms.max_t
      hreads=4
      [#|2012-08-20T17:57:40.393+1000|WARNING|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|[S2004]: L
      og output channel com.sun.messaging.jmq.util.log.SysLogHandler is disabled: no imqutil in java.libra
      ry.path|#]
      
      
      [#|2012-08-20T17:57:40.406+1000|FORCE|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|
      ================================================================================
      Message Queue 5.0
      Oracle
      Version:  5.0  (Build 2-c)
      Compile:  May 23 2012 1653
      
      Copyright (c) 2012, Oracle and/or its affiliates.  All rights reserved.
      ================================================================================
      Java Runtime: 1.6.0_32 Sun Microsystems Inc. C:\Program Files\Java\jdk1.6.0_32\jre
      |#]
      
      
      (Message Omitted)
      
      
      [#|2012-08-20T17:57:41.203+1000|SEVERE|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|ERROR [B300
      9]: Unable to start service jms: [B4115]: Unable to set thread values to min=10 max=4: [B4110]: Mini
      mum threads 10 greater than maximum threads 4
      |#]
      
      
      [#|2012-08-20T17:57:41.211+1000|INFO|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|[B1004]: Star
      ting the cluster service using tcp [ 0.0.0.0/0.0.0.0:56735 ] with min threads 1 and max threads of 1
      
      |#]
      
      
      [#|2012-08-20T17:57:41.212+1000|INFO|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|[B1228]: Clus
      ter ping interval is 60 seconds
      |#]
      
      
      [#|2012-08-20T17:57:41.216+1000|FORCE|5.0|imq.log.Logger|_ThreadID=10;_ThreadName=main;|[B1039]: Bro
      ker "imqbroker@hostname:7676" ready.
      |#]
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            David Zhao
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: