Buggy code:
public class RMIClientConnectorImpl implements RMIClientConnectorImplMBean , JMXConnectorMBean { private RMIConnector mRemoteConnector ; private Object mServer = "" ; private Hashtable mHandbackPool = new Hashtable ( ) ; private Vector mListeners = new Vector ( ) ; public RMIClientConnectorImpl ( String pServerName ) { } public void start ( Object pServer ) throws IllegalArgumentException { if ( pServer == null ) { throw new IllegalArgumentException ( ( "Server<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null.<seq2seq4repair_space>" + "To<seq2seq4repair_space>close<seq2seq4repair_space>the<seq2seq4repair_space>connection<seq2seq4repair_space>use<seq2seq4repair_space>stop()" ) ) ; } try { InitialContext lNamingContext = new InitialContext ( ) ; System . out . println ( ( ( ( ( ( "RMIClientConnectorImp.start(),<seq2seq4repair_space>got<seq2seq4repair_space>Naming<seq2seq4repair_space>Context:<seq2seq4repair_space>" + lNamingContext ) + ",<seq2seq4repair_space>environment:<seq2seq4repair_space>" ) + ( lNamingContext . getEnvironment ( ) ) ) + ",<seq2seq4repair_space>name<seq2seq4repair_space>in<seq2seq4repair_space>namespace:<seq2seq4repair_space>" ) + ( lNamingContext . getNameInNamespace ( ) ) ) ) ; <START_BUG> mRemoteConnector = ( ( RMIConnector ) ( new InitialContext ( ) . lookup ( "jmx:rmi" ) ) ) ; <END_BUG> System . err . println ( ( "RMIClientConnectorImpl.start(),<seq2seq4repair_space>got<seq2seq4repair_space>remote<seq2seq4repair_space>connector:<seq2seq4repair_space>" + ( mRemoteConnector ) ) ) ; mServer = pServer ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } public void stop ( ) { } public boolean isAlive ( ) { } public String getServerDescription ( ) { } public Object instantiate ( String pClassName ) throws MBeanException , ReflectionException { } public Object instantiate ( String pClassName , ObjectName pLoaderName ) throws InstanceNotFoundException , MBeanException , ReflectionException { } public Object instantiate ( String pClassName , String [ ] pParams , String [ ] pSignature ) throws MBeanException , ReflectionException { } public Object instantiate ( String pClassName , ObjectName pLoaderName , String [ ] pParams , String [ ] pSignature ) throws InstanceNotFoundException , MBeanException , ReflectionException { } public ObjectInstance createMBean ( String pClassName , ObjectName pName ) throws InstanceAlreadyExistsException , MBeanException , MBeanRegistrationException , NotCompliantMBeanException , ReflectionException { } public ObjectInstance createMBean ( String pClassName , ObjectName pName , ObjectName pLoaderName ) throws InstanceAlreadyExistsException , InstanceNotFoundException , MBeanException , MBeanRegistrationException , NotCompliantMBeanException , ReflectionException { } public ObjectInstance createMBean ( String pClassName , ObjectName pName , String [ ] pParams , String [ ] pSignature ) throws InstanceAlreadyExistsException , MBeanException , MBeanRegistrationException , NotCompliantMBeanException , ReflectionException { } public ObjectInstance createMBean ( String pClassName , ObjectName pName , ObjectName pLoaderName , String [ ] pParams , String [ ] pSignature ) throws InstanceAlreadyExistsException , InstanceNotFoundException , MBeanException , MBeanRegistrationException , NotCompliantMBeanException , ReflectionException { } public ObjectInstance registerMBean ( Object pObject , ObjectName pName ) throws InstanceAlreadyExistsException , MBeanRegistrationException , NotCompliantMBeanException { } public void unregisterMBean ( ObjectName pName ) throws InstanceNotFoundException , MBeanRegistrationException { } public ObjectInstance getObjectInstance ( ObjectName pName ) throws InstanceNotFoundException { } public Set queryMBeans ( ObjectName pName , QueryExp pQuery ) { } public Set queryNames ( ObjectName pName , QueryExp pQuery ) { } public boolean isRegistered ( ObjectName pName ) { } public Integer getMBeanCount ( ) { } public Object getAttribute ( ObjectName pName , String pAttribute ) throws AttributeNotFoundException , InstanceNotFoundException , MBeanException , ReflectionException { } public AttributeList getAttributes ( ObjectName pName , String [ ] pAttributes ) throws InstanceNotFoundException , ReflectionException { } public void setAttribute ( ObjectName pName , Attribute pAttribute ) throws AttributeNotFoundException , InstanceNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException { } public void setAttributes ( ObjectName pName , AttributeList pAttributes ) throws InstanceNotFoundException , ReflectionException { } public Object invoke ( ObjectName pName , String pActionName , Object [ ] pParams , String [ ] pSignature ) throws InstanceNotFoundException , MBeanException , ReflectionException { } public String getDefaultDomain ( ) { } public void addNotificationListener ( ObjectName pName , NotificationListener pListener , NotificationFilter pFilter , Object pHandback ) throws InstanceNotFoundException { } public void addNotificationListener ( ObjectName pName , ObjectName pListener , NotificationFilter pFilter , Object pHandback ) throws UnsupportedOperationException , InstanceNotFoundException { } public void removeNotificationListener ( ObjectName pName , NotificationListener pListener ) throws InstanceNotFoundException , ListenerNotFoundException { } public void removeNotificationListener ( ObjectName pName , ObjectName pListener ) throws UnsupportedOperationException , InstanceNotFoundException , ListenerNotFoundException { } public MBeanInfo getMBeanInfo ( ObjectName pName ) throws InstanceNotFoundException , IntrospectionException , ReflectionException { } public ObjectInputStream deserialize ( ObjectName pName , byte [ ] pData ) throws UnsupportedOperationException , InstanceNotFoundException , OperationsException { } public ObjectInputStream deserialize ( String pClassName , byte [ ] pData ) throws UnsupportedOperationException , OperationsException , ReflectionException { } public ObjectInputStream deserialize ( String pClassName , ObjectName pLoaderName , byte [ ] pData ) throws UnsupportedOperationException , InstanceNotFoundException , OperationsException , ReflectionException { } public class Listener implements RMINotificationListener { private NotificationListener mLocalListener ; private ObjectHandler mHandbackHandler ; private Object mHandback ; private ObjectName mObjectName ; public Listener ( NotificationListener pLocalListener , Object pHandback , ObjectName pName ) { } public void handleNotification ( Notification pNotification , Object pHandback ) throws RemoteException { } public ObjectHandler getHandback ( ) { } public ObjectName getObjectName ( ) { } public NotificationListener getLocalListener ( ) { } public boolean equals ( Object pTest ) { } public int hashCode ( ) { } } }

Fix:
mRemoteConnector = ( ( RMIConnector ) ( new InitialContext ( ) . lookup ( ( ( "jmx:" + pServer ) + ":rmi" ) ) ) ) ;