Buggy code:
private void writeCommandReplyHeader ( DDMWriter writer ) throws Exception { } private void sendOK ( DDMWriter writer ) throws Exception { } private void sendOKInt ( DDMWriter writer , int val ) throws Exception { } private void sendMessage ( DDMWriter writer , int messageType , String message ) throws Exception { } private void sendSQLMessage ( DDMWriter writer , SQLException se , int type ) throws Exception { } private void sendSysInfo ( DDMWriter writer ) throws Exception { } private void sendRuntimeInfo ( DDMWriter writer ) throws Exception { } private void sendPropInfo ( DDMWriter writer ) throws Exception { } private String getNetSysInfo ( ) { } private String getRuntimeInfo ( ) { } private String getCLSSysInfo ( ) throws IOException { } public int parseArgs ( String [ ] args ) throws Exception { } public void executeWork ( int command ) throws Exception { } private void runQueueAdd ( Session clientSession ) { } private int findCommand ( String [ ] args ) throws Exception { } private int processDashArg ( int pos , String [ ] args ) throws Exception { char c = args [ pos ] . charAt ( 1 ) ; if ( ( c >= '0' ) && ( c <= '9' ) ) return pos ; int dashArg = - 1 ; for ( int i = 0 ; i < ( NetworkServerControlImpl . DASHARGS . length ) ; i ++ ) { if ( NetworkServerControlImpl . DASHARGS [ i ] . equals ( args [ pos ] . substring ( 1 ) ) ) { dashArg = i ; if ( dashArg != ( NetworkServerControlImpl . DASHARG_UNSECURE ) ) { pos ++ ; } break ; } } if ( dashArg == ( - 1 ) ) consolePropertyMessage ( "DRDA_UnknownArgument.U" , args [ pos ] ) ; switch ( dashArg ) { case NetworkServerControlImpl . DASHARG_PORT : if ( pos < ( args . length ) ) { try { portNumber = Integer . parseInt ( args [ pos ] ) ; } catch ( NumberFormatException e ) { consolePropertyMessage ( "DRDA_InvalidValue.U" , new String [ ] { args [ pos ] , "DRDA_PortNumber.I" } ) ; } } else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_PortNumber.I" ) ; break ; case NetworkServerControlImpl . DASHARG_HOST : if ( pos < ( args . length ) ) { hostArg = args [ pos ] ; } else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_Host.I" ) ; break ; case NetworkServerControlImpl . DASHARG_DATABASE : if ( pos < ( args . length ) ) databaseArg = args [ pos ] ; else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_DatabaseDirectory.I" ) ; break ; case NetworkServerControlImpl . DASHARG_USER : if ( pos < ( args . length ) ) userArg = args [ pos ] ; else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_User.I" ) ; break ; case NetworkServerControlImpl . DASHARG_PASSWORD : if ( pos < ( args . length ) ) passwordArg = args [ pos ] ; else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_Password.I" ) ; break ; case NetworkServerControlImpl . DASHARG_ENCALG : if ( pos < ( args . length ) ) encAlgArg = args [ pos ] ; else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_EncryptionAlgorithm.I" ) ; break ; case NetworkServerControlImpl . DASHARG_ENCPRV : if ( pos < ( args . length ) ) encPrvArg = args [ pos ] ; else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_EncryptionProvider.I" ) ; break ; case NetworkServerControlImpl . DASHARG_LOADSYSIBM : break ; case NetworkServerControlImpl . DASHARG_SESSION : if ( pos < ( args . length ) ) try { sessionArg = Integer . parseInt ( args [ pos ] ) ; } catch ( NumberFormatException e ) { consolePropertyMessage ( "DRDA_InvalidValue.U" , new String [ ] { args [ pos ] , "DRDA_Session.I" } ) ; } else consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_Session.I" ) ; break ; case NetworkServerControlImpl . DASHARG_UNSECURE : unsecureArg = true ; break ; case NetworkServerControlImpl . DASHARG_SSL : if ( pos < ( args . length ) ) { setSSLMode ( getSSLModeValue ( args [ pos ] ) ) ; } else { <START_BUG> setSSLMode ( NetworkServerControlImpl . SSL_OFF ) ; <END_BUG> } break ; default : } return pos + 1 ; } private boolean isOn ( String arg ) throws Exception { } private void closeSocket ( ) throws IOException { } private void setUpSocket ( ) throws Exception { } private void checkAddressIsLocal ( InetAddress inetAddr ) throws Exception , UnknownHostException { } private void buildLocalAddressList ( InetAddress bindAddr ) { } private void writeCommandHeader ( int command ) throws Exception { } private void writeCommandHeader ( int command , int protocol_version_for_command ) throws Exception { } private void writeLDString ( String msg ) throws Exception { } protected void writeString ( String msg ) throws Exception { } private void writeShort ( int value ) throws Exception { } private void writeByte ( int value ) throws Exception { } private void send ( ) throws Exception { } private void clientSocketError ( IOException e ) throws IOException { } private void readResult ( ) throws Exception { } private void ensureDataInBuffer ( int minimumBytesNeeded ) throws Exception { } private void fillReplyBuffer ( ) throws Exception { } private void readCommandReplyHeader ( ) throws Exception { } private int readShort ( ) throws Exception { } private int readInt ( ) throws Exception { } private String readStringReply ( String msgKey ) throws Exception { } private String readLDString ( ) throws Exception { } private byte [ ] readBytesReply ( String msgKey ) throws Exception { } private byte [ ] readLDBytes ( ) throws Exception { } private void getPropertyInfo ( ) throws Exception { } private int getSecMecValue ( String s ) { } private String getStringValueForSecMec ( int secmecVal ) { } boolean supportsEUSRIDPWD ( ) { } private int getSSLModeValue ( String s ) throws Exception { }

Fix:
consolePropertyMessage ( "DRDA_MissingValue.U" , "DRDA_SslMode.I" ) ;