[GLASSFISH-19020] When invalid min and max threads are specified for imqbrokerd, it does not accept a message. Created: 20/Aug/12  Updated: 01/Jul/13  Resolved: 01/Jul/13

Status: Resolved
Project: glassfish
Component/s: jms
Affects Version/s: 4.0_b45
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: tak09 Assignee: David Zhao
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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.
|#]


 Comments   
Comment by David Zhao [ 01/Jul/13 ]

This is MQ issue. Created MQ-314 for tracking.

Generated at Sat Apr 25 23:19:59 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.