Program: 119356
Project: 119356
Buggy source:
/** 
 * Auto generated method signature Describe an sObject
 * @see com.salesforce.soap.partner.SforceService#describeSObject
 * @param describeSObject483
 * @param sessionHeader484
 * @param callOptions485
 * @param packageVersionHeader486
 * @param localeOptions487
 * @throws com.salesforce.soap.partner.InvalidSObjectFault :
 * @throws com.salesforce.soap.partner.UnexpectedErrorFault :
 */
public com.salesforce.soap.partner.DescribeSObjectResponse describeSObject(com.salesforce.soap.partner.DescribeSObject describeSObject483,com.salesforce.soap.partner.SessionHeader sessionHeader484,com.salesforce.soap.partner.CallOptions callOptions485,com.salesforce.soap.partner.PackageVersionHeader packageVersionHeader486,com.salesforce.soap.partner.LocaleOptions localeOptions487) throws java.rmi.RemoteException, com.salesforce.soap.partner.InvalidSObjectFault, com.salesforce.soap.partner.UnexpectedErrorFault {
  org.apache.axis2.context.MessageContext _messageContext=null;
  try {
    org.apache.axis2.client.OperationClient _operationClient=_serviceClient.createClient(_operations[24].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()),describeSObject483,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 (sessionHeader484 != null) {
      org.apache.axiom.om.OMElement omElementsessionHeader484=toOM(sessionHeader484,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementsessionHeader484,env);
    }
    if (callOptions485 != null) {
      org.apache.axiom.om.OMElement omElementcallOptions485=toOM(callOptions485,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementcallOptions485,env);
    }
    if (packageVersionHeader486 != null) {
      org.apache.axiom.om.OMElement omElementpackageVersionHeader486=toOM(packageVersionHeader486,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementpackageVersionHeader486,env);
    }
    if (localeOptions487 != null) {
      org.apache.axiom.om.OMElement omElementlocaleOptions487=toOM(localeOptions487,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementlocaleOptions487,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.DescribeSObjectResponse.class,getEnvelopeNamespaces(_returnEnv));
    return (com.salesforce.soap.partner.DescribeSObjectResponse)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.InvalidSObjectFault) {
            throw (com.salesforce.soap.partner.InvalidSObjectFault)ex;
          }
          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 an sObject
 * @see com.salesforce.soap.partner.SforceService#describeSObject
 * @param describeSObject483
 * @param sessionHeader484
 * @param callOptions485
 * @param packageVersionHeader486
 * @param localeOptions487
 * @throws com.salesforce.soap.partner.InvalidSObjectFault :
 * @throws com.salesforce.soap.partner.UnexpectedErrorFault :
 */
public com.salesforce.soap.partner.DescribeSObjectResponse describeSObject(com.salesforce.soap.partner.DescribeSObject describeSObject483,com.salesforce.soap.partner.SessionHeader sessionHeader484,com.salesforce.soap.partner.CallOptions callOptions485,com.salesforce.soap.partner.PackageVersionHeader packageVersionHeader486,com.salesforce.soap.partner.LocaleOptions localeOptions487) throws java.rmi.RemoteException, com.salesforce.soap.partner.InvalidSObjectFault, com.salesforce.soap.partner.UnexpectedErrorFault {
  org.apache.axis2.context.MessageContext _messageContext=null;
  try {
    org.apache.axis2.client.OperationClient _operationClient=_serviceClient.createClient(_operations[24].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()),describeSObject483,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 (sessionHeader484 != null) {
      org.apache.axiom.om.OMElement omElementsessionHeader484=toOM(sessionHeader484,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementsessionHeader484,env);
    }
    if (callOptions485 != null) {
      org.apache.axiom.om.OMElement omElementcallOptions485=toOM(callOptions485,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementcallOptions485,env);
    }
    if (packageVersionHeader486 != null) {
      org.apache.axiom.om.OMElement omElementpackageVersionHeader486=toOM(packageVersionHeader486,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementpackageVersionHeader486,env);
    }
    if (localeOptions487 != null) {
      org.apache.axiom.om.OMElement omElementlocaleOptions487=toOM(localeOptions487,optimizeContent(new javax.xml.namespace.QName("String_Node_Str","String_Node_Str")));
      addHeader(omElementlocaleOptions487,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.DescribeSObjectResponse.class,getEnvelopeNamespaces(_returnEnv));
    return (com.salesforce.soap.partner.DescribeSObjectResponse)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.InvalidSObjectFault) {
            throw (com.salesforce.soap.partner.InvalidSObjectFault)ex;
          }
          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);
    }
  }
}