Issue Details (XML | Word | Printable)

Key: GLASSFISH-18819
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: David Zhao
Reporter: Jeremy_Lv
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

Glassfish/mq dosen't work normally after setting the port of mq broker into "0"

Created: 22/Jun/12 11:57 AM   Updated: 09/Jul/13 03:11 AM   Resolved: 09/Jul/13 03:11 AM
Component/s: jms
Affects Version/s: 4.0_b41
Fix Version/s: 4.0.1

Time Tracking:
Not Specified

File Attachments: 1. Java Source File Broker.java (102 kB) 22/Jun/12 12:30 PM - Jeremy_Lv

Environment:

Windows Xp


Tags:
Participants: David Zhao, Jeremy_Lv and TangYong


 Description  « Hide

[Bug Description]
Glassfish/mq dosen't work normally after setting the port of mq broker into "0"

[Operations]
1、Setting the port of mq broker by executing "%GF_HOME%\mq\bin\imqbrokerd -port 0"
Note:%GF_HOME% is Glassfish v4 Install Directory.

2、After executing "%GF_HOME%\mq\bin\imqcmd list svc -b localhost:0", the following error
message appeared.

----------------------------------------------------------------------------
Warming: [C4003]: Error occurred on connection creation [localhost:0]. - cause: jav
a.net.ConnectException: connect: Address is invalid on local machine, or port is
not valid on remote machine
Error while connecting to the broker on host 'localhost' and port '0'.
com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creati
on [localhost:0]. - cause: java.net.ConnectException: connect: Address is invali
d on local machine, or port is not valid on remote machine
Please verify that there is a broker running on the specified host and port or
use the '-b' option to specify the correct broker host and port.
----------------------------------------------------------------------------

[My Suggestion]
I think that firstly, mq should not allow setting the port of mq broker as "0", secondly,when user
sets the port of mq broker as "0", mq should give a error message, for example,

"[B4027]: Invalid property value: port=0" in the admin-console

[Affected versions ]
1 4.0_b42
2 gf's trunk until 2012/06/21



No work has yet been logged on this issue.