Buggy code:
public class BrokerView implements BrokerViewMBean { private static final Logger LOG = LoggerFactory . getLogger ( BrokerView . class ) ; ManagedRegionBroker broker ; private final BrokerService brokerService ; private final AtomicInteger sessionIdCounter = new AtomicInteger ( 0 ) ; private ObjectName jmsJobScheduler ; public BrokerView ( BrokerService brokerService , ManagedRegionBroker managedBroker ) throws Exception { } public ManagedRegionBroker getBroker ( ) { } public void setBroker ( ManagedRegionBroker broker ) { } @ Override public String getBrokerId ( ) { } @ Override public String getBrokerName ( ) { } @ Override public String getBrokerVersion ( ) { } @ Override public String getUptime ( ) { } @ Override public int getCurrentConnectionsCount ( ) { } @ Override public long getTotalConnectionsCount ( ) { } @ Override public void gc ( ) throws Exception { } @ Override public void start ( ) throws Exception { } @ Override public void stop ( ) throws Exception { } @ Override public void restart ( ) throws Exception { } @ Override public void stopGracefully ( String connectorName , String queueName , long timeout , long pollInterval ) throws Exception { } @ Override public long getTotalEnqueueCount ( ) { } @ Override public long getTotalDequeueCount ( ) { } @ Override public long getTotalConsumerCount ( ) { } @ Override public long getTotalProducerCount ( ) { } @ Override public long getTotalMessageCount ( ) { } @ Override public long getAverageMessageSize ( ) { } @ Override public long getMaxMessageSize ( ) { } @ Override public long getMinMessageSize ( ) { } public long getTotalMessagesCached ( ) { } @ Override public int getMemoryPercentUsage ( ) { } @ Override public long getMemoryLimit ( ) { } @ Override public void setMemoryLimit ( long limit ) { } @ Override public long getStoreLimit ( ) { } @ Override public int getStorePercentUsage ( ) { } @ Override public long getTempLimit ( ) { } @ Override public int getTempPercentUsage ( ) { } @ Override public long getJobSchedulerStoreLimit ( ) { } @ Override public int getJobSchedulerStorePercentUsage ( ) { } @ Override public void setStoreLimit ( long limit ) { } @ Override public void setTempLimit ( long limit ) { } @ Override public void setJobSchedulerStoreLimit ( long limit ) { } @ Override public void resetStatistics ( ) { } @ Override public void enableStatistics ( ) { } @ Override public void disableStatistics ( ) { } @ Override public boolean isStatisticsEnabled ( ) { } @ Override public boolean isPersistent ( ) { } @ Override public void terminateJVM ( int exitCode ) { } @ Override public ObjectName [ ] getTopics ( ) { } @ Override public ObjectName [ ] getQueues ( ) { } @ Override public ObjectName [ ] getTemporaryTopics ( ) { } @ Override public ObjectName [ ] getTemporaryQueues ( ) { } @ Override public ObjectName [ ] getTopicSubscribers ( ) { } @ Override public ObjectName [ ] getDurableTopicSubscribers ( ) { } @ Override public ObjectName [ ] getQueueSubscribers ( ) { } @ Override public ObjectName [ ] getTemporaryTopicSubscribers ( ) { } @ Override public ObjectName [ ] getTemporaryQueueSubscribers ( ) { } @ Override public ObjectName [ ] getInactiveDurableTopicSubscribers ( ) { } @ Override public ObjectName [ ] getTopicProducers ( ) { } @ Override public ObjectName [ ] getQueueProducers ( ) { } @ Override public ObjectName [ ] getTemporaryTopicProducers ( ) { } @ Override public ObjectName [ ] getTemporaryQueueProducers ( ) { } @ Override public ObjectName [ ] getDynamicDestinationProducers ( ) { } @ Override public String addConnector ( String discoveryAddress ) throws Exception { TransportConnector connector = brokerService . addConnector ( discoveryAddress ) ; if ( connector == null ) { throw new NoSuchElementException ( ( "Not<seq2seq4repair_space>connector<seq2seq4repair_space>matched<seq2seq4repair_space>the<seq2seq4repair_space>given<seq2seq4repair_space>name:<seq2seq4repair_space>" + discoveryAddress ) ) ; } <START_BUG> connector . start ( ) ; <END_BUG> return connector . getName ( ) ; } @ Override public String addNetworkConnector ( String discoveryAddress ) throws Exception { } @ Override public boolean removeConnector ( String connectorName ) throws Exception { } @ Override public boolean removeNetworkConnector ( String connectorName ) throws Exception { } @ Override public void addTopic ( String name ) throws Exception { } @ Override public void addQueue ( String name ) throws Exception { } @ Override public void removeTopic ( String name ) throws Exception { } @ Override public void removeQueue ( String name ) throws Exception { } @ Override public ObjectName createDurableSubscriber ( String clientId , String subscriberName , String topicName , String selector ) throws Exception { } @ Override public void destroyDurableSubscriber ( String clientId , String subscriberName ) throws Exception { } @ Override public void reloadLog4jProperties ( ) throws Throwable { } @ Override public Map < String , String > getTransportConnectors ( ) { } @ Override public String getTransportConnectorByType ( String type ) { } @ Override @ Deprecated public String getOpenWireURL ( ) { } @ Override @ Deprecated public String getStompURL ( ) { } @ Override @ Deprecated public String getSslURL ( ) { } @ Override @ Deprecated public String getStompSslURL ( ) { } @ Override public String getVMURL ( ) { } @ Override public String getDataDirectory ( ) { } @ Override public ObjectName getJMSJobScheduler ( ) { } public void setJMSJobScheduler ( ObjectName name ) { } @ Override public boolean isSlave ( ) { } private ManagedRegionBroker safeGetBroker ( ) { } }

Fix:
brokerService . startTransportConnector ( connector ) ;