Buggy code:
@ SuppressWarnings ( "restriction" ) public class OneToOneAssociationImpl extends ManageableAssociation { protected static final Logger logger = Logger . getLogger ( OneToOneAssociationImpl . class . getName ( ) ) ; private static final String NAME = "name" ; private static final String SERVER_NAME = "serverName" ; private static final String HOST_ADDRESS = "hostAddress" ; private static final String HOST_PORT = "hostPort" ; private static final String PEER_ADDRESS = "peerAddress" ; private static final String PEER_PORT = "peerPort" ; private static final String ASSOCIATION_TYPE = "assoctype" ; private static final String IPCHANNEL_TYPE = "ipChannelType" ; private static final String EXTRA_HOST_ADDRESS = "extraHostAddress" ; private static final String EXTRA_HOST_ADDRESS_SIZE = "extraHostAddresseSize" ; private AssociationType type ; private AssociationListener associationListener = null ; protected final OneToOneAssociationHandler associationHandler = new OneToOneAssociationHandler ( ) ; private AtomicBoolean started = new AtomicBoolean ( false ) ; protected AtomicBoolean up = new AtomicBoolean ( false ) ; private int [ ] workerThreadTable = null ; private ConcurrentLinkedQueue < PayloadData > txQueue = new ConcurrentLinkedQueue < PayloadData > ( ) ; private SctpChannel socketChannelSctp ; private ByteBuffer rxBuffer = ByteBuffer . allocateDirect ( 8192 ) ; private ByteBuffer txBuffer = ByteBuffer . allocateDirect ( 8192 ) ; private volatile MessageInfo msgInfo ; private OneToManyAssocMultiplexer multiplexer ; private volatile int ioErrors = 0 ; public OneToOneAssociationImpl ( ) { } public OneToOneAssociationImpl ( String hostAddress , int hostPort , String peerAddress , int peerPort , String assocName , String [ ] extraHostAddresses ) throws IOException { } protected void start ( ) throws Exception { } protected void stop ( ) throws Exception { } public IpChannelType getIpChannelType ( ) { } public AssociationListener getAssociationListener ( ) { } public void setAssociationListener ( AssociationListener associationListener ) { } public String getName ( ) { } public AssociationType getAssociationType ( ) { } @ Override public boolean isStarted ( ) { } @ Override public boolean isConnected ( ) { } @ Override public boolean isUp ( ) { } protected void markAssociationUp ( ) { } protected void markAssociationDown ( ) { } public String getHostAddress ( ) { } public int getHostPort ( ) { } public String getPeerAddress ( ) { } public int getPeerPort ( ) { } public String getServerName ( ) { } @ Override public String [ ] getExtraHostAddresses ( ) { } protected void setManagement ( MultiManagementImpl management ) { } protected AbstractSelectableChannel getSocketChannel ( ) { } protected void reconnect ( ) { } protected void setSocketChannel ( AbstractSelectableChannel socketChannel ) { } public void send ( PayloadData payloadData ) throws Exception { } private void checkSocketIsOpen ( ) throws Exception { } protected void read ( ) { } private PayloadData doReadSctp ( ) throws IOException { } protected void write ( SelectionKey key ) { } private int doSend ( ) throws IOException { } protected void close ( ) { } protected void scheduleConnect ( ) { } protected void branch ( SctpChannel sctpChannel , MultiManagementImpl management ) { } private void doInitiateConnectionSctp ( ) throws IOException { } protected void createworkerThreadTable ( int maximumBooundStream ) { } @ Override public String toString ( ) { } protected static final XMLFormat < OneToOneAssociationImpl > ASSOCIATION_XML = new XMLFormat < OneToOneAssociationImpl > ( OneToOneAssociationImpl . class ) { @ Override public void read ( XMLFormat . InputElement xml , OneToOneAssociationImpl association ) throws XMLStreamException { } @ Override public void write ( OneToOneAssociationImpl association , XMLFormat . OutputElement xml ) throws XMLStreamException { } } ; @ Override protected void readPayload ( PayloadData payload ) { } @ Override protected boolean writePayload ( PayloadData payloadData ) { } protected void onSendFailed ( ) { if ( ( started . get ( ) ) && ( ! ( up . get ( ) ) ) ) { OneToOneAssociationImpl . logger . warn ( ( ( "Association=" + ( getName ( ) ) ) + "<seq2seq4repair_space>CANT_START,<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>reconnect..." ) ) ; <START_BUG> reconnect ( ) ; <END_BUG> } } protected void silentlyShutdown ( ) { } @ Override public void acceptAnonymousAssociation ( AssociationListener associationListener ) throws Exception { } @ Override public void rejectAnonymousAssociation ( ) { } @ Override public void stopAnonymousAssociation ( ) throws Exception { } }

Fix:
scheduleConnect ( ) ;