Program: 43887
Project: 43887
Buggy source:
public CDMIConnection(Credentials creds,URL endpoint) throws CertificateException, NoSuchAlgorithmException, KeyManagementException, IOException, KeyStoreException, UnrecoverableKeyException {
  DefaultHttpClient httpclient=new DefaultHttpClient();
  System.setProperty("String_Node_Str","String_Node_Str");
  Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
  TrustManager[] trustManagers=new TrustManager[]{new FakeX509TrustManager()};
  SSLContext context=SSLContext.getInstance("String_Node_Str");
  context.init(null,trustManagers,new SecureRandom());
  SSLSocketFactory sf=new SSLSocketFactory(context);
  SchemeRegistry schemeRegistry=new SchemeRegistry();
  schemeRegistry.register(new Scheme("String_Node_Str",80,PlainSocketFactory.getSocketFactory()));
  schemeRegistry.register(new Scheme("String_Node_Str",443,sf.getSocketFactory()));
  ThreadSafeClientConnManager conMg=new ThreadSafeClientConnManager(schemeRegistry);
  conMg.setMaxTotal(200);
  conMg.setDefaultMaxPerRoute(20);
  HttpHost host=new HttpHost(endpoint.getHost(),80);
  conMg.setMaxForRoute(new HttpRoute(host),50);
  httpclient=new DefaultHttpClient(conMg);
  httpclient.getCredentialsProvider().setCredentials(new AuthScope(endpoint.getHost(),endpoint.getPort()),creds);
  this.endpoint=endpoint;
  this.blobProxy=new BlobOperations(endpoint,httpclient);
  this.containerProxy=new ContainerOperations(endpoint,httpclient);
  this.nonCdmiContainerProxy=new NonCDMIContainerOperations(endpoint,httpclient);
  this.nonCdmiBlobProxy=new NonCDMIBlobOperations(endpoint,httpclient);
}

Fixed version (ground truth):
public CDMIConnection(Credentials credentials,URL endpoint) throws CertificateException, NoSuchAlgorithmException, KeyManagementException, IOException, KeyStoreException, UnrecoverableKeyException {
  KeyStore trustStore=KeyStore.getInstance(KeyStore.getDefaultType());
  trustStore.load(null,null);
  SSLSocketFactory factory=new CustomSSLSocketFactory(trustStore);
  factory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
  HttpParams params=new BasicHttpParams();
  HttpProtocolParams.setVersion(params,HttpVersion.HTTP_1_1);
  HttpProtocolParams.setContentCharset(params,HTTP.UTF_8);
  SchemeRegistry schemeRegistry=new SchemeRegistry();
  schemeRegistry.register(new Scheme("String_Node_Str",PlainSocketFactory.getSocketFactory(),80));
  schemeRegistry.register(new Scheme("String_Node_Str",factory,443));
  ThreadSafeClientConnManager conMg=new ThreadSafeClientConnManager(schemeRegistry);
  conMg.setMaxTotal(200);
  conMg.setDefaultMaxPerRoute(20);
  HttpHost host=new HttpHost(endpoint.getHost(),80);
  conMg.setMaxForRoute(new HttpRoute(host),50);
  httpclient=new DefaultHttpClient(conMg);
  httpclient.getCredentialsProvider().setCredentials(new AuthScope(endpoint.getHost(),endpoint.getPort()),credentials);
  this.endpoint=endpoint;
  this.blobProxy=new BlobOperations(endpoint,httpclient);
  this.containerProxy=new ContainerOperations(endpoint,httpclient);
  this.nonCdmiContainerProxy=new NonCDMIContainerOperations(endpoint,httpclient);
  this.nonCdmiBlobProxy=new NonCDMIBlobOperations(endpoint,httpclient);
}