users@glassfish.java.net

Re: create JMS host/can not create/start JMS brokers

From: <forums_at_java.net>
Date: Wed, 17 Aug 2011 11:04:21 -0500 (CDT)

Gavin,

When I start the cluster I get the following errors:
[#|2011-08-16T17:56:36.350+0100|WARNING|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=1;_ThreadName=Thread-1;|RAR8000
: The method setHARequired is not present in the class :
com.sun.messaging.jms.ra.ResourceAdapter|#]
[#|2011-08-16T17:56:36.353+0100|WARNING|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.util|_ThreadID=1;_ThreadName=Thread-1;|RAR7097:
No setter method present for the property HARequired in the class
com.sun.messaging.jms.ra.ResourceAdapter|#]
Hmm. IĀ get that too. I've logged it as a bug
java.net/jira/browse/GLASSFISH-17199 [1]
I think this is harmless (the property in question was removed a long time
ago and is no longer needed)

[#|2011-08-16T17:56:37.718+0100|WARNING|glassfish3.1|javax.jms|_ThreadID=10;_ThreadName=Thread-1;|[C4003]:
Error occurred on connection creation [localhost:27676]. - cause:
java.net.SocketException: Connection reset|#]
The resource adapter (in GlassFish) is trying to connect to a MQ broker which
it thinks is running on localhost:27676. Obviously there is no such broker.
This is explained by the next message:

[#|2011-08-16T17:56:37.719+0100|WARNING|glassfish3.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=17;_ThreadName=Thread-1;|Local
broker: [16/Aug/2011:17:56:37 BST] ERROR [B3168]: Invalid broker address for
this broker to run in cluster: Loopback IP address is not allowed in broker
address
mq://127.0.0.1:27676/?instName=APPAPPDEV1&brokerID=APPAPPDEV1&brokerSessionUID=7786215590325641728&ha=true&storeSessionUID=3694976803348201984
[2] for cluster|#]
That's a message from the broker itself, telling us that it can't start
because it is incorrectly configured with an address of 127:0.0.1. So, as you
already know, there's a problem with the way your cluster has been
configured.

I think it gets this host name from the GlassFish "node". When you created
the node, what hostname did you give?

a) why this is the case when the type is set to local and I set the
clustertype to enhanced with the configure-jms-cluster? Should it not of
created me the correct default host?
As I said, i think it gets this from the "node".

b) will creating a new jms host with a host of 0.0.0.0 using create-jms-host
be of any use?
Probably no. You ought to be able to resolve this without resorting to that.
Can I suggest you supply the complete set of commands you ran, starting with
"create-cluster"?

Nigel


[1] http://java.net/jira/browse/GLASSFISH-17199
[2]
http://www.java.net//127.0.0.1:27676/?instName=APPAPPDEV1&amp;brokerID=APPAPPDEV1&amp;brokerSessionUID=7786215590325641728&amp;ha=true&amp;storeSessionUID=3694976803348201984

--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/834173