Buggy code:
protected static final String SWITCH_TABLE_NAME = "controller_switch" ; protected static final String SWITCH_DATAPATH_ID = "dpid" ; protected static final String SWITCH_SOCKET_ADDRESS = "socket_address" ; protected static final String SWITCH_IP = "ip" ; protected static final String SWITCH_CONTROLLER_ID = "controller_id" ; protected static final String SWITCH_ACTIVE = "active" ; protected static final String SWITCH_CORE_SWITCH = "core_switch" ; protected static final String SWITCH_CONNECTED_SINCE = "connected_since" ; protected static final String SWITCH_CAPABILITIES = "capabilities" ; protected static final String SWITCH_BUFFERS = "buffers" ; protected static final String SWITCH_TABLES = "tables" ; protected static final String SWITCH_ACTIONS = "actions" ; protected static final String PORT_TABLE_NAME = "controller_port" ; protected static final String PORT_ID = "id" ; protected static final String PORT_SWITCH = "switch_id" ; protected static final String PORT_NUMBER = "number" ; protected static final String PORT_HARDWARE_ADDRESS = "hardware_address" ; protected static final String PORT_NAME = "name" ; protected static final String PORT_CONFIG = "config" ; protected static final String PORT_STATE = "state" ; protected static final String PORT_CURRENT_FEATURES = "current_features" ; protected static final String PORT_ADVERTISED_FEATURES = "advertised_features" ; protected static final String PORT_SUPPORTED_FEATURES = "supported_features" ; protected static final String PORT_PEER_FEATURES = "peer_features" ; protected class Update { public IOFSwitch sw ; public boolean added ; public Update ( IOFSwitch sw , boolean added ) { } } public Controller ( ) { } protected ChannelUpstreamHandler getChannelHandler ( OFChannelState state ) { } protected class OFChannelHandler extends IdleStateAwareChannelUpstreamHandler { protected OFSwitchImpl sw ; protected OFChannelState state ; public OFChannelHandler ( OFChannelState state ) { } @ Override public void channelConnected ( ChannelHandlerContext ctx , ChannelStateEvent e ) throws Exception { } @ Override public void channelDisconnected ( ChannelHandlerContext ctx , ChannelStateEvent e ) throws Exception { } @ Override public void exceptionCaught ( ChannelHandlerContext ctx , ExceptionEvent e ) throws Exception { } @ Override public void channelIdle ( ChannelHandlerContext ctx , IdleStateEvent e ) throws Exception { } @ Override public void messageReceived ( ChannelHandlerContext ctx , MessageEvent e ) throws Exception { } void processSwitchDescReply ( ) { } void sendHelloConfiguration ( ) throws IOException { } void sendFeatureReplyConfiguration ( ) throws IOException { } protected void processOFMessage ( OFMessage m ) throws IOException , SwitchStateException { } } protected void handlePortStatusMessage ( IOFSwitch sw , OFPortStatus m , boolean updateStorage ) { } protected void updateCounters ( IOFSwitch sw , OFMessage m , Ethernet eth ) { } protected void handleMessage ( IOFSwitch sw , OFMessage m , FloodlightContext bContext ) throws IOException { } protected void logError ( IOFSwitch sw , OFError error ) { } protected void addSwitch ( IOFSwitch sw ) { } protected void removeSwitch ( IOFSwitch sw ) { } @ Override public synchronized void addOFMessageListener ( OFType type , IOFMessageListener listener ) { } @ Override public synchronized void removeOFMessageListener ( OFType type , IOFMessageListener listener ) { } public void removeOFMessageListeners ( OFType type ) { } @ Override public Map < Long , IOFSwitch > getSwitches ( ) { } @ Override public void addOFSwitchListener ( IOFSwitchListener listener ) { } @ Override public void removeOFSwitchListener ( IOFSwitchListener listener ) { } @ Override public Map < OFType , List < IOFMessageListener > > getListeners ( ) { } @ Override public boolean injectOfMessage ( IOFSwitch sw , OFMessage msg , FloodlightContext bc ) { } @ Override public ScheduledExecutorService getScheduledExecutor ( ) { } @ Override public synchronized void terminate ( ) { } @ Override public boolean injectOfMessage ( IOFSwitch sw , OFMessage msg ) { } @ Override public void handleOutgoingMessage ( IOFSwitch sw , OFMessage m , FloodlightContext bc ) { } @ Override public BasicFactory getOFMessageFactory ( ) { } @ Override public String getControllerId ( ) { } @ Override public Restlet createInboundRoot ( ) { } protected void startUp ( ) throws IOException { } protected void shutDown ( ) { } protected void setStorageSource ( IStorageSource storageSource ) { } protected void updateAllInactiveSwitchInfo ( ) { } protected void updateControllerInfo ( ) { } protected void removeControllerInfo ( ) { } protected void updateActiveSwitchInfo ( IOFSwitch sw ) { } protected void updateInactiveSwitchInfo ( IOFSwitch sw ) { } protected void updatePortInfo ( IOFSwitch sw , OFPhysicalPort port ) { } protected void removePortInfo ( IOFSwitch sw , short portNumber ) { } protected void run ( ) { } protected void init ( ) { topology = new TopologyImpl ( ) ; deviceManager = new DeviceManagerImpl ( ) ; storageSource = new MemoryStorageSource ( ) ; learningSwitch = new LearningSwitch ( ) ; counterStore = new CounterStore ( ) ; messageFilterManager = new OFMessageFilterManager ( ) ; pktinProcTime = new PktinProcessingTime ( ) ; topology . setFloodlightProvider ( this ) ; topology . setStorageSource ( storageSource ) ; deviceManager . setFloodlightProvider ( this ) ; deviceManager . setStorageSource ( storageSource ) ; deviceManager . setTopology ( topology ) ; messageFilterManager . init ( this ) ; staticFlowEntryPusher = new StaticFlowEntryPusher ( ) ; staticFlowEntryPusher . setFloodlightProvider ( this ) ; learningSwitch . setFloodlightProvider ( this ) ; learningSwitch . setCounterStore ( counterStore ) ; this . setStorageSource ( storageSource ) ; HashSet < ITopologyAware > topologyAware = new HashSet < ITopologyAware > ( ) ; topologyAware . add ( deviceManager ) ; topology . setTopologyAware ( topologyAware ) ; restlets . add ( new CoreWebRoutable ( ) ) ; restlets . add ( new StorageWebRoutable ( ) ) ; JacksonCustomConverter . replaceConverter ( ) ; <START_BUG> ptWarningThresholdInNano = ( Long . parseLong ( System . getProperty ( "net.floodlightcontroller.core.PTWarningThreholdInMilli" , "0" ) ) ) * 1000000 ; <END_BUG> if ( ( ptWarningThresholdInNano ) > 0 ) { Controller . log . info ( "Packet<seq2seq4repair_space>processing<seq2seq4repair_space>time<seq2seq4repair_space>threshold<seq2seq4repair_space>for<seq2seq4repair_space>warning<seq2seq4repair_space>set<seq2seq4repair_space>to<seq2seq4repair_space>{}<seq2seq4repair_space>ms." , ( ( ptWarningThresholdInNano ) // 1000000 ) ) ; } } protected void initRestContext ( Context context ) { } protected void startupComponents ( ) { } public static void main ( String [ ] args ) throws Exception { } }

Fix:
ptWarningThresholdInNano = ( Long . parseLong ( System . getProperty ( "net.floodlightcontroller.core.PTWarningThresholdInMilli" , "0" ) ) ) * 1000000 ;