Program: 64924
Project: 64924
Buggy source:
public static void main(String[] args) throws SOAPException, TransformerException, IOException {
  if (args.length != 2) {
    System.out.println("String_Node_Str");
    System.exit(-1);
  }
  String hostname=args[0];
  String port=args[1];
  QName qname=new QName("String_Node_Str","String_Node_Str");
  Service service=Service.create(new QName("String_Node_Str","String_Node_Str"));
  service.addPort(qname,SOAPBinding.SOAP12HTTP_MTOM_BINDING,"String_Node_Str" + hostname + "String_Node_Str"+ port+ "String_Node_Str");
  Dispatch<SOAPMessage> sourceDispatch=service.createDispatch(qname,SOAPMessage.class,Service.Mode.MESSAGE);
  SOAPMessage request=createSOAPMessage(SOAP_FINDALL_REQUEST);
  SOAPMessage response=sourceDispatch.invoke(request);
  if (response.countAttachments() != 3) {
    System.out.println("String_Node_Str" + response.countAttachments() + "String_Node_Str");
    System.exit(-1);
  }
  for (@SuppressWarnings("String_Node_Str") Iterator<AttachmentPart> attachmentsIterator=(Iterator<AttachmentPart>)response.getAttachments(); attachmentsIterator.hasNext(); ) {
    AttachmentPart ap=attachmentsIterator.next();
    SOAPElement elt=SOAPFactory.newInstance().createElement(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
    String contentId=ap.getContentId();
    contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
    contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
    elt.addAttribute(new QName("String_Node_Str"),"String_Node_Str" + contentId);
    ap=response.getAttachment(elt);
    if (ap == null) {
      System.out.println("String_Node_Str" + contentId + "String_Node_Str");
      System.exit(-1);
    }
    byte[] rawBytes=ap.getRawContentBytes();
    if (rawBytes.length != 15) {
      System.out.println("String_Node_Str" + rawBytes.length + "String_Node_Str");
      System.exit(-1);
    }
    byte b=rawBytes[0];
    if (b == 1 || b == 2 || b == 3) {
      compareBytes(b,rawBytes,"String_Node_Str");
    }
 else {
      System.out.println("String_Node_Str" + b + "String_Node_Str");
      System.exit(-1);
    }
    elt.removeContents();
  }
  request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
  response=sourceDispatch.invoke(request);
  if (response.countAttachments() != 1) {
    System.out.println("String_Node_Str" + response.countAttachments() + "String_Node_Str");
    System.exit(-1);
  }
  AttachmentPart ap=(AttachmentPart)((Iterator)response.getAttachments()).next();
  SOAPElement elt=SOAPFactory.newInstance().createElement(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  String contentId=ap.getContentId();
  contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
  contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
  elt.addAttribute(new QName("String_Node_Str"),"String_Node_Str" + contentId);
  ap=response.getAttachment(elt);
  if (ap == null) {
    System.out.println("String_Node_Str" + contentId + "String_Node_Str");
    System.exit(-1);
  }
  byte[] rawBytes=ap.getRawContentBytes();
  if (rawBytes.length != 15) {
    System.out.println("String_Node_Str" + rawBytes.length + "String_Node_Str");
    System.exit(-1);
  }
  compareBytes(3,rawBytes,"String_Node_Str");
}

Fixed version (ground truth):
public static void main(String[] args) throws SOAPException, TransformerException, IOException {
  if (args.length != 2) {
    System.out.println("String_Node_Str");
    System.exit(-1);
  }
  String hostname=args[0];
  String port=args[1];
  QName qname=new QName("String_Node_Str","String_Node_Str");
  Service service=Service.create(new QName("String_Node_Str","String_Node_Str"));
  service.addPort(qname,SOAPBinding.SOAP12HTTP_MTOM_BINDING,"String_Node_Str" + hostname + "String_Node_Str"+ port+ "String_Node_Str");
  Dispatch<SOAPMessage> sourceDispatch=service.createDispatch(qname,SOAPMessage.class,Service.Mode.MESSAGE);
  SOAPMessage request=createSOAPMessage(SOAP_FINDALL_REQUEST);
  SOAPMessage response=sourceDispatch.invoke(request);
  if (response.countAttachments() != 3) {
    System.out.println("String_Node_Str" + response.countAttachments() + "String_Node_Str");
    System.exit(-1);
  }
  for (@SuppressWarnings("String_Node_Str") Iterator<AttachmentPart> attachmentsIterator=(Iterator<AttachmentPart>)response.getAttachments(); attachmentsIterator.hasNext(); ) {
    AttachmentPart ap=attachmentsIterator.next();
    SOAPElement elt=SOAPFactory.newInstance().createElement(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
    String contentId=ap.getContentId();
    contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
    contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
    elt.addAttribute(new QName("String_Node_Str"),"String_Node_Str" + contentId);
    ap=response.getAttachment(elt);
    if (ap == null) {
      System.out.println("String_Node_Str" + contentId + "String_Node_Str");
      System.exit(-1);
    }
    byte[] rawBytes=ap.getRawContentBytes();
    if (rawBytes.length != 15) {
      System.out.println("String_Node_Str" + rawBytes.length + "String_Node_Str");
      System.exit(-1);
    }
    byte b=rawBytes[0];
    if (b == 1 || b == 2 || b == 3) {
      compareBytes(b,rawBytes,"String_Node_Str");
    }
 else {
      System.out.println("String_Node_Str" + b + "String_Node_Str");
      System.exit(-1);
    }
    elt.removeContents();
  }
  request=createSOAPMessage(SOAP_FINDBYPK_REQUEST);
  response=sourceDispatch.invoke(request);
  if (response.countAttachments() != 1) {
    System.out.println("String_Node_Str" + response.countAttachments() + "String_Node_Str");
    System.exit(-1);
  }
  @SuppressWarnings("String_Node_Str") AttachmentPart ap=(AttachmentPart)((Iterator)response.getAttachments()).next();
  SOAPElement elt=SOAPFactory.newInstance().createElement(new QName("String_Node_Str","String_Node_Str","String_Node_Str"));
  String contentId=ap.getContentId();
  contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
  contentId=contentId.replaceFirst("String_Node_Str","String_Node_Str");
  elt.addAttribute(new QName("String_Node_Str"),"String_Node_Str" + contentId);
  ap=response.getAttachment(elt);
  if (ap == null) {
    System.out.println("String_Node_Str" + contentId + "String_Node_Str");
    System.exit(-1);
  }
  byte[] rawBytes=ap.getRawContentBytes();
  if (rawBytes.length != 15) {
    System.out.println("String_Node_Str" + rawBytes.length + "String_Node_Str");
    System.exit(-1);
  }
  compareBytes(3,rawBytes,"String_Node_Str");
}