Program: 29103
Project: 29103
Buggy source:
public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
  res.setContentType("String_Node_Str");
  res.setHeader("String_Node_Str","String_Node_Str");
  PrintWriter out=res.getWriter();
  String requestURL=req.getRequestURL().toString();
  out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",Locale.getDefault().getLanguage()));
  String operationName=req.getParameter("String_Node_Str");
  try {
    Endpoint myEndpoint;
    if (svcEP.implementedByWebComponent()) {
      myEndpoint=WebServiceEngineImpl.getInstance().getEndpoint(req.getServletPath());
    }
 else {
      myEndpoint=WebServiceEngineImpl.getInstance().getEndpoint(req.getRequestURI());
    }
    Class clientSEI=gsiClasses.get(requestURL);
    if (clientSEI == null) {
      initializePort(req,res);
      clientSEI=gsiClasses.get(requestURL);
    }
    Object port=ports.get(requestURL);
    Method[] methods=clientSEI.getMethods();
    Method toInvoke=null;
    for (    Method m : methods) {
      if (String.valueOf(m.getName()).equals(operationName)) {
        toInvoke=m;
      }
    }
    if (toInvoke == null) {
      out.print("String_Node_Str");
    }
 else {
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",new Object[]{toInvoke.getName()}));
      myEndpoint.addListener(this);
      Class[] parameterTypes=toInvoke.getParameterTypes();
      Object[] parameterValues=new Object[parameterTypes.length];
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      for (int i=0; i < parameterTypes.length; i++) {
        out.print("String_Node_Str");
        String webValue=req.getParameter("String_Node_Str" + toInvoke.getName() + i);
        out.print("String_Node_Str" + parameterTypes[i].getName() + "String_Node_Str");
        out.print("String_Node_Str" + webValue + "String_Node_Str");
        parameterValues[i]=convertWebParam(parameterTypes[i],webValue);
        out.print("String_Node_Str");
      }
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str") + toInvoke.getReturnType().getName() + "String_Node_Str"+ toInvoke.invoke(port,parameterValues)+ "String_Node_Str");
      out.print("String_Node_Str");
      if (request != null) {
        out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
        dumpMessage(request,out);
      }
      if (toInvoke.getAnnotation(javax.jws.Oneway.class) == null && response != null) {
        out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
        dumpMessage(response,out);
      }
      myEndpoint.removeListener(this);
    }
  }
 catch (  Throwable e) {
    out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",new Object[]{e.getMessage()}));
    throw new ServletException(e);
  }
  out.print("String_Node_Str");
  out.close();
}

Fixed version (ground truth):
public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException {
  res.setContentType("String_Node_Str");
  res.setHeader("String_Node_Str","String_Node_Str");
  PrintWriter out=res.getWriter();
  String requestURL=req.getRequestURL().toString();
  out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",Locale.getDefault().getLanguage()));
  String operationName=req.getParameter("String_Node_Str");
  try {
    Endpoint myEndpoint;
    if (svcEP.implementedByWebComponent()) {
      myEndpoint=WebServiceEngineImpl.getInstance().getEndpoint(req.getServletPath());
    }
 else {
      myEndpoint=WebServiceEngineImpl.getInstance().getEndpoint(req.getRequestURI());
    }
    Class clientSEI=gsiClasses.get(requestURL);
    if (clientSEI == null) {
      initializePort(req,res);
      clientSEI=gsiClasses.get(requestURL);
    }
    Object port=ports.get(requestURL);
    Method[] methods=clientSEI.getMethods();
    Method toInvoke=null;
    for (    Method m : methods) {
      if (String.valueOf(m.getName()).equals(operationName)) {
        toInvoke=m;
      }
    }
    if (toInvoke == null) {
      out.print("String_Node_Str");
    }
 else {
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",new Object[]{toInvoke.getName()}));
      myEndpoint.addListener(this);
      Class[] parameterTypes=toInvoke.getParameterTypes();
      Object[] parameterValues=new Object[parameterTypes.length];
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      for (int i=0; i < parameterTypes.length; i++) {
        out.print("String_Node_Str");
        String webValue=req.getParameter("String_Node_Str" + toInvoke.getName() + i);
        out.print("String_Node_Str" + parameterTypes[i].getName() + "String_Node_Str");
        out.print("String_Node_Str" + encodeHTML(webValue) + "String_Node_Str");
        parameterValues[i]=convertWebParam(parameterTypes[i],webValue);
        out.print("String_Node_Str");
      }
      out.print("String_Node_Str");
      out.print("String_Node_Str");
      out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str") + toInvoke.getReturnType().getName() + "String_Node_Str"+ encodeHTML(toInvoke.invoke(port,parameterValues).toString())+ "String_Node_Str");
      out.print("String_Node_Str");
      if (request != null) {
        out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
        dumpMessage(request,out);
      }
      if (toInvoke.getAnnotation(javax.jws.Oneway.class) == null && response != null) {
        out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str"));
        dumpMessage(response,out);
      }
      myEndpoint.removeListener(this);
    }
  }
 catch (  Throwable e) {
    out.print(localStrings.getLocalString("String_Node_Str","String_Node_Str",new Object[]{e.getMessage()}));
    throw new ServletException(e);
  }
  out.print("String_Node_Str");
  out.close();
}