Buggy code:
} else { host = sa . getAddress ( ) . getHostAddress ( ) ; } } else { port = binding . getDestinationPort ( ) ; if ( binding . getDestinationAddress ( ) . isLoopbackAddress ( ) ) { host = binding . getDestinationAddress ( ) . getHostName ( ) ; } else { host = binding . getDestinationAddress ( ) . getHostAddress ( ) ; } } tc . getParams ( ) . put ( HornetQService . HOST , host ) ; tc . getParams ( ) . put ( HornetQService . PORT , String . valueOf ( port ) ) ; } } } if ( acceptors != null ) { for ( TransportConfiguration tc : acceptors ) { Object socketRef = tc . getParams ( ) . remove ( HornetQService . SOCKET_REF ) ; if ( socketRef != null ) { String name = socketRef . toString ( ) ; SocketBinding binding = socketBindings . get ( name ) ; if ( binding == null ) { throw MessagingMessages . MESSAGES . failedToFindConnectorSocketBinding ( tc . getName ( ) ) ; } InetSocketAddress socketAddress = binding . getSocketAddress ( ) ; tc . getParams ( ) . put ( HornetQService . HOST , socketAddress . getAddress ( ) . getHostAddress ( ) ) ; tc . getParams ( ) . put ( HornetQService . PORT , ( "" + ( socketAddress . getPort ( ) ) ) ) ; } } } if ( broadcastGroups != null ) { final List < BroadcastGroupConfiguration > newConfigs = new ArrayList < BroadcastGroupConfiguration > ( ) ; for ( final BroadcastGroupConfiguration config : broadcastGroups ) { final String name = config . getName ( ) ; final String key = "broadcast" + name ; if ( jgroupFactories . containsKey ( key ) ) { ChannelFactory channelFactory = jgroupFactories . get ( key ) ; String channelName = jgroupsChannels . get ( key ) ; JChannel channel = ( ( JChannel ) ( channelFactory . createChannel ( channelName ) ) ) ; channels . put ( channelName , channel ) ; newConfigs . add ( BroadcastGroupAdd . createBroadcastGroupConfiguration ( name , config , channel , channelName ) ) ; } else { final SocketBinding binding = groupBindings . get ( key ) ; if ( binding == null ) { throw MessagingMessages . MESSAGES . failedToFindBroadcastSocketBinding ( name ) ; } newConfigs . add ( BroadcastGroupAdd . createBroadcastGroupConfiguration ( name , config , binding ) ) ; } } configuration . getBroadcastGroupConfigurations ( ) . clear ( ) ; configuration . getBroadcastGroupConfigurations ( ) . addAll ( newConfigs ) ; } if ( discoveryGroups != null ) { configuration . setDiscoveryGroupConfigurations ( new HashMap < String , DiscoveryGroupConfiguration > ( ) ) ; for ( final Map . Entry < String , DiscoveryGroupConfiguration > entry : discoveryGroups . entrySet ( ) ) { final String name = entry . getKey ( ) ; final String key = "discovery" + name ; DiscoveryGroupConfiguration config = null ; if ( jgroupFactories . containsKey ( key ) ) { ChannelFactory channelFactory = jgroupFactories . get ( key ) ; String channelName = jgroupsChannels . get ( key ) ; JChannel channel = channels . get ( channelName ) ; if ( channel == null ) { channel = ( ( JChannel ) ( channelFactory . createChannel ( key ) ) ) ; channels . put ( channelName , channel ) ; } config = DiscoveryGroupAdd . createDiscoveryGroupConfiguration ( name , entry . getValue ( ) , channel , channelName ) ; } else { final SocketBinding binding = groupBindings . get ( key ) ; if ( binding == null ) { throw MessagingMessages . MESSAGES . failedToFindDiscoverySocketBinding ( name ) ; } config = DiscoveryGroupAdd . createDiscoveryGroupConfiguration ( name , entry . getValue ( ) , binding ) ; } configuration . getDiscoveryGroupConfigurations ( ) . put ( name , config ) ; } } HornetQSecurityManagerAS7 hornetQSecurityManagerAS7 = new HornetQSecurityManagerAS7 ( securityDomainContextValue . getValue ( ) ) ; server = new org . hornetq . core . server . impl . HornetQServerImpl ( configuration , mbeanServer . getOptionalValue ( ) , hornetQSecurityManagerAS7 ) ; <START_BUG> if ( DEFAULT_CLUSTER_PASSWORD . equals ( server . getConfiguration ( ) . getClusterPassword ( ) ) ) { <END_BUG> server . getConfiguration ( ) . setClusterPassword ( UUID . randomUUID ( ) . toString ( ) ) ; } } catch ( Exception e ) { throw MessagingMessages . MESSAGES . failedToStartService ( e ) ; } finally { SecurityActions . setContextClassLoader ( origTCCL ) ; } } public synchronized void stop ( final StopContext context ) { } public synchronized HornetQServer getValue ( ) throws IllegalStateException { } public Injector < SecurityDomainContext > getSecurityDomainContextInjector ( ) { } public Map < String , String > getJGroupsChannels ( ) { } static boolean isHornetQServiceInstalled ( final OperationContext context , final ModelNode operation ) { } static class PathConfig { private final String bindingsPath ; private final String bindingsRelativeToPath ; private final String journalPath ; private final String journalRelativeToPath ; private final String largeMessagePath ; private final String largeMessageRelativeToPath ; private final String pagingPath ; private final String pagingRelativeToPath ; private final List < PathManager . Callback . Handle > callbackHandles = new ArrayList < PathManager . Callback . Handle > ( ) ; public PathConfig ( String bindingsPath , String bindingsRelativeToPath , String journalPath , String journalRelativeToPath , String largeMessagePath , String largeMessageRelativeToPath , String pagingPath , String pagingRelativeToPath ) { } String resolveBindingsPath ( PathManager pathManager ) { } String resolveJournalPath ( PathManager pathManager ) { } String resolveLargeMessagePath ( PathManager pathManager ) { } String resolvePagingPath ( PathManager pathManager ) { } String resolve ( PathManager pathManager , String path , String relativeToPath ) { } synchronized void registerCallbacks ( PathManager pathManager ) { } synchronized void closeCallbacks ( PathManager pathManager ) { } } }

Fix:
if ( HornetQDefaultConfiguration . getDefaultClusterPassword ( ) . equals ( server . getConfiguration ( ) . getClusterPassword ( ) ) ) {