Program: 119357
Project: 119357
Buggy source:
/** 
 * Auto generated method signature Describe the Global state
 * @see com.salesforce.soap.partner.SforceService#describeGlobal
 * @param describeGlobal455
 * @param sessionHeader456
 * @param callOptions457
 * @param packageVersionHeader458
 * @throws com.salesforce.soap.partner.UnexpectedErrorFault :
 */
public com.salesforce.soap.partner.DescribeGlobalResponse describeGlobal(com.salesforce.soap.partner.DescribeGlobal describeGlobal455,com.salesforce.soap.partner.SessionHeader sessionHeader456,com.salesforce.soap.partner.CallOptions callOptions457,com.salesforce.soap.partner.PackageVersionHeader packageVersionHeader458) throws java.rmi.RemoteException, com.salesforce.soap.partner.UnexpectedErrorFault {
  org.apache.axis2.context.MessageContext _messageContext=null;
  try {
    org.apache.axis2.client.OperationClient _operationClient=_serviceClient.createClient(_operations[18].getName());
    _operationClient.getOptions().setAction("String_Node_Str");
    _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
    addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"String_Node_Str");
    _messageContext=new org.apache.axis2.context.MessageContext();
    org.apache.axiom.soap.SOAPEnvelope env=null;
    env=toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),describeGlobal455,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")),new javax.xml.namespace.QName("String_Node_Str","String_Node_Str"));
    env.build();
    if (sessionHeader456 != null) {
      org.apache.axiom.om.OMElement omElementsessionHeader456=toOM(sessionHeader456,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementsessionHeader456,env);
    }
    if (callOptions457 != null) {
      org.apache.axiom.om.OMElement omElementcallOptions457=toOM(callOptions457,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementcallOptions457,env);
    }
    if (packageVersionHeader458 != null) {
      org.apache.axiom.om.OMElement omElementpackageVersionHeader458=toOM(packageVersionHeader458,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementpackageVersionHeader458,env);
    }
    _serviceClient.addHeadersToEnvelope(env);
    _messageContext.setEnvelope(env);
    _operationClient.addMessageContext(_messageContext);
    _operationClient.execute(true);
    org.apache.axis2.context.MessageContext _returnMessageContext=_operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
    org.apache.axiom.soap.SOAPEnvelope _returnEnv=_returnMessageContext.getEnvelope();
    java.lang.Object object=fromOM(_returnEnv.getBody().getFirstElement(),com.salesforce.soap.partner.DescribeGlobalResponse.class,getEnvelopeNamespaces(_returnEnv));
    return (com.salesforce.soap.partner.DescribeGlobalResponse)object;
  }
 catch (  org.apache.axis2.AxisFault f) {
    org.apache.axiom.om.OMElement faultElt=f.getDetail();
    if (faultElt != null) {
      if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"))) {
        try {
          java.lang.String exceptionClassName=(java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"));
          java.lang.Class exceptionClass=java.lang.Class.forName(exceptionClassName);
          java.lang.reflect.Constructor constructor=exceptionClass.getConstructor(String.class);
          java.lang.Exception ex=(java.lang.Exception)constructor.newInstance(f.getMessage());
          java.lang.String messageClassName=(java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"));
          java.lang.Class messageClass=java.lang.Class.forName(messageClassName);
          java.lang.Object messageObject=fromOM(faultElt,messageClass,null);
          java.lang.reflect.Method m=exceptionClass.getMethod("String_Node_Str",new java.lang.Class[]{messageClass});
          m.invoke(ex,new java.lang.Object[]{messageObject});
          if (ex instanceof com.salesforce.soap.partner.UnexpectedErrorFault) {
            throw (com.salesforce.soap.partner.UnexpectedErrorFault)ex;
          }
          throw new java.rmi.RemoteException(ex.getMessage(),ex);
        }
 catch (        java.lang.ClassCastException e) {
          throw f;
        }
catch (        java.lang.ClassNotFoundException e) {
          throw f;
        }
catch (        java.lang.NoSuchMethodException e) {
          throw f;
        }
catch (        java.lang.reflect.InvocationTargetException e) {
          throw f;
        }
catch (        java.lang.IllegalAccessException e) {
          throw f;
        }
catch (        java.lang.InstantiationException e) {
          throw f;
        }
      }
 else {
        throw f;
      }
    }
 else {
      throw f;
    }
  }
 finally {
    if (_messageContext.getTransportOut() != null) {
      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
    }
  }
}

Fixed version (ground truth):
/** 
 * Auto generated method signature Describe the Global state
 * @see com.salesforce.soap.partner.SforceService#describeGlobal
 * @param describeGlobal455
 * @param sessionHeader456
 * @param callOptions457
 * @param packageVersionHeader458
 * @throws com.salesforce.soap.partner.UnexpectedErrorFault :
 */
public com.salesforce.soap.partner.DescribeGlobalResponse describeGlobal(com.salesforce.soap.partner.DescribeGlobal describeGlobal455,com.salesforce.soap.partner.SessionHeader sessionHeader456,com.salesforce.soap.partner.CallOptions callOptions457,com.salesforce.soap.partner.PackageVersionHeader packageVersionHeader458) throws java.rmi.RemoteException, com.salesforce.soap.partner.UnexpectedErrorFault {
  org.apache.axis2.context.MessageContext _messageContext=null;
  try {
    org.apache.axis2.client.OperationClient _operationClient=_serviceClient.createClient(_operations[18].getName());
    _operationClient.getOptions().setAction("String_Node_Str");
    _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
{
      _operationClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,"String_Node_Str");
    }
    addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"String_Node_Str");
    _messageContext=new org.apache.axis2.context.MessageContext();
    org.apache.axiom.soap.SOAPEnvelope env=null;
    env=toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),describeGlobal455,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")),new javax.xml.namespace.QName("String_Node_Str","String_Node_Str"));
    env.build();
    if (sessionHeader456 != null) {
      org.apache.axiom.om.OMElement omElementsessionHeader456=toOM(sessionHeader456,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementsessionHeader456,env);
    }
    if (callOptions457 != null) {
      org.apache.axiom.om.OMElement omElementcallOptions457=toOM(callOptions457,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementcallOptions457,env);
    }
    if (packageVersionHeader458 != null) {
      org.apache.axiom.om.OMElement omElementpackageVersionHeader458=toOM(packageVersionHeader458,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementpackageVersionHeader458,env);
    }
    _serviceClient.addHeadersToEnvelope(env);
    _messageContext.setEnvelope(env);
    _operationClient.addMessageContext(_messageContext);
    _operationClient.execute(true);
    org.apache.axis2.context.MessageContext _returnMessageContext=_operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
    org.apache.axiom.soap.SOAPEnvelope _returnEnv=_returnMessageContext.getEnvelope();
    java.lang.Object object=fromOM(_returnEnv.getBody().getFirstElement(),com.salesforce.soap.partner.DescribeGlobalResponse.class,getEnvelopeNamespaces(_returnEnv));
    return (com.salesforce.soap.partner.DescribeGlobalResponse)object;
  }
 catch (  org.apache.axis2.AxisFault f) {
    org.apache.axiom.om.OMElement faultElt=f.getDetail();
    if (faultElt != null) {
      if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"))) {
        try {
          java.lang.String exceptionClassName=(java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"));
          java.lang.Class exceptionClass=java.lang.Class.forName(exceptionClassName);
          java.lang.reflect.Constructor constructor=exceptionClass.getConstructor(String.class);
          java.lang.Exception ex=(java.lang.Exception)constructor.newInstance(f.getMessage());
          java.lang.String messageClassName=(java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"String_Node_Str"));
          java.lang.Class messageClass=java.lang.Class.forName(messageClassName);
          java.lang.Object messageObject=fromOM(faultElt,messageClass,null);
          java.lang.reflect.Method m=exceptionClass.getMethod("String_Node_Str",new java.lang.Class[]{messageClass});
          m.invoke(ex,new java.lang.Object[]{messageObject});
          if (ex instanceof com.salesforce.soap.partner.UnexpectedErrorFault) {
            throw (com.salesforce.soap.partner.UnexpectedErrorFault)ex;
          }
          throw new java.rmi.RemoteException(ex.getMessage(),ex);
        }
 catch (        java.lang.ClassCastException e) {
          throw f;
        }
catch (        java.lang.ClassNotFoundException e) {
          throw f;
        }
catch (        java.lang.NoSuchMethodException e) {
          throw f;
        }
catch (        java.lang.reflect.InvocationTargetException e) {
          throw f;
        }
catch (        java.lang.IllegalAccessException e) {
          throw f;
        }
catch (        java.lang.InstantiationException e) {
          throw f;
        }
      }
 else {
        throw f;
      }
    }
 else {
      throw f;
    }
  }
 finally {
    if (_messageContext.getTransportOut() != null) {
      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
    }
  }
}