Buggy code:
public class NetscalerResource implements ServerResource { public static final int DEFAULT_SNMP_PORT = 161 ; private String _name ; private String _zoneId ; private String _physicalNetworkId ; private String _ip ; private String _username ; private String _password ; private String _publicInterface ; private String _privateInterface ; private Integer _numRetries ; private String _guid ; private boolean _inline ; private boolean _isSdx ; private boolean _cloudManaged ; private String _deviceName ; private String _publicIP ; private String _publicIPNetmask ; private String _publicIPGateway ; private String _publicIPVlan ; private static final Logger s_logger = Logger . getLogger ( NetscalerResource . class ) ; protected Gson _gson ; private final String _objectNamePathSep = "-" ; nitro_service _netscalerService ; nitro_service _netscalerSdxService ; base_response apiCallResult ; public NetscalerResource ( ) { } @ Override public boolean configure ( String name , Map < String , Object > params ) throws ConfigurationException { } private void logout ( ) throws ExecutionException { } private void login ( ) throws ExecutionException { } private void enableLoadBalancingFeature ( ) throws ExecutionException { } private void validateInterfaces ( String publicInterface , String privateInterface ) throws ExecutionException { } private void validateDeviceType ( String deviceType ) throws ExecutionException { } @ Override public StartupCommand [ ] initialize ( ) { } @ Override public Answer executeRequest ( Command cmd ) { } private Answer executeRequest ( Command cmd , int numRetries ) { } private Answer execute ( ReadyCommand cmd ) { } protected Answer execute ( MaintainCommand cmd ) { } private synchronized Answer execute ( IpAssocCommand cmd , int numRetries ) { if ( _isSdx ) { return Answer . createUnsupportedCommandAnswer ( cmd ) ; } String [ ] results = new String [ cmd . getIpAddresses ( ) . length ] ; int i = 0 ; try { IpAddressTO [ ] ips = cmd . getIpAddresses ( ) ; for ( IpAddressTO ip : ips ) { <START_BUG> long guestVlanTag = Long . valueOf ( ip . getBroadcastUri ( ) ) ; <END_BUG> String vlanSelfIp = ip . getVlanGateway ( ) ; String vlanNetmask = ip . getVlanNetmask ( ) ; if ( ip . isAdd ( ) ) { addGuestVlanAndSubnet ( guestVlanTag , vlanSelfIp , vlanNetmask , true ) ; } else { deleteGuestVlan ( guestVlanTag , vlanSelfIp , vlanNetmask ) ; } saveConfiguration ( ) ; results [ ( i ++ ) ] = ( ip . getPublicIp ( ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>success" ; String action = ( ip . isAdd ( ) ) ? "associate" : "remove" ; if ( NetscalerResource . s_logger . isDebugEnabled ( ) ) { NetscalerResource . s_logger . debug ( ( ( ( ( ( "Netscaler<seq2seq4repair_space>load<seq2seq4repair_space>balancer<seq2seq4repair_space>" + ( _ip ) ) + "<seq2seq4repair_space>successfully<seq2seq4repair_space>executed<seq2seq4repair_space>IPAssocCommand<seq2seq4repair_space>to<seq2seq4repair_space>" ) + action ) + "<seq2seq4repair_space>IP<seq2seq4repair_space>" ) + ip ) ) ; } } } catch ( ExecutionException e ) { NetscalerResource . s_logger . error ( ( ( ( "Netscaler<seq2seq4repair_space>loadbalancer<seq2seq4repair_space>" + ( _ip ) ) + "<seq2seq4repair_space>failed<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>IPAssocCommand<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ; if ( shouldRetry ( numRetries ) ) { return retry ( cmd , numRetries ) ; } else { results [ ( i ++ ) ] = IpAssocAnswer . errorResult ; } } return new IpAssocAnswer ( cmd , results ) ; } private Answer execute ( HealthCheckLBConfigCommand cmd , int numRetries ) { } private synchronized Answer execute ( LoadBalancerConfigCommand cmd , int numRetries ) { } private synchronized Answer execute ( CreateLoadBalancerApplianceCommand cmd , int numRetries ) { } private Answer execute ( GlobalLoadBalancerConfigCommand gslbCmd , int numRetries ) { } private static class GSLB { private static void createSite ( nitro_service client , String siteName , String siteType , String siteIP , String sitePublicIP ) throws ExecutionException { } private static void deleteSite ( nitro_service client , String siteName ) throws ExecutionException { } private static void updateSite ( nitro_service client , String siteType , String siteName , String siteIP , String sitePublicIP ) throws ExecutionException { } private static void createVirtualServer ( nitro_service client , String vserverName , String lbMethod , String persistenceType , long persistenceId , String serviceType ) throws ExecutionException { } private static void deleteVirtualServer ( nitro_service client , String vserverName ) throws ExecutionException { } private static void enableVirtualServer ( nitro_service client , String vserverName ) throws ExecutionException { } private static void disableVirtualServer ( nitro_service client , String vserverName ) throws ExecutionException { } private static void updateVirtualServer ( nitro_service client , String vserverName , String lbMethod , String persistenceType , String serviceType ) throws ExecutionException { } private static void createService ( nitro_service client , String serviceName , String serviceType , String serviceIp , String servicePort , String siteName ) throws ExecutionException { } private static void deleteService ( nitro_service client , String serviceName ) throws ExecutionException { } private static void updateService ( nitro_service client , String serviceName , String serviceType , String publicIp , String publicPort , String siteName ) throws ExecutionException { } private static void createVserverServiceBinding ( nitro_service client , String serviceName , String vserverName , long weight ) throws ExecutionException { } private static void deleteVserverServiceBinding ( nitro_service client , String serviceName , String vserverName ) throws ExecutionException { } private static void createVserverDomainBinding ( nitro_service client , String vserverName , String domainName ) throws ExecutionException { } private static void deleteVserverDomainBinding ( nitro_service client , String vserverName , String domainName ) throws ExecutionException { } private static void createGslbServiceMonitor ( nitro_service nsService , String servicePublicIp , String serviceName ) throws ExecutionException { } private static void deleteGslbServiceMonitor ( nitro_service nsService , String monitorName ) throws ExecutionException { } private static void createGslbServiceGslbMonitorBinding ( nitro_service nsService , String monitorName , String serviceName ) { } private static void deleteGslbServiceGslbMonitorBinding ( nitro_service nsService , String monitorName , String serviceName ) { } private static gslbsite getSiteObject ( nitro_service client , String siteName ) { } private static gslbvserver getVserverObject ( nitro_service client , String vserverName ) { }

Fix:
long guestVlanTag = Long . parseLong ( ip . getBroadcastUri ( ) ) ;