Program: 148246
Project: 148246
Buggy source:
public Object doDeserialize(XMLReader reader,SOAPDeserializationContext context) throws Exception {
  com.amalto.workbench.webservices.WSUpdateMetadataItem instance=new com.amalto.workbench.webservices.WSUpdateMetadataItem();
  Object member=null;
  QName elementName;
  List values;
  Object value;
  reader.nextElementContent();
  elementName=reader.getName();
  if (reader.getState() == XMLReader.START) {
    if (elementName.equals(ns1_wsItemPK_QNAME)) {
      member=ns2_myWSItemPK_LiteralSerializer.deserialize(ns1_wsItemPK_QNAME,reader,context);
      if (member == null) {
        throw new DeserializationException("String_Node_Str");
      }
      instance.setWsItemPK((com.amalto.workbench.webservices.WSItemPK)member);
      reader.nextElementContent();
    }
 else {
      throw new DeserializationException("String_Node_Str",new Object[]{ns1_wsItemPK_QNAME,reader.getName()});
    }
  }
 else {
    throw new DeserializationException("String_Node_Str",reader.getName().toString());
  }
  elementName=reader.getName();
  if (reader.getState() == XMLReader.START) {
    if (elementName.equals(ns1_taskId_QNAME)) {
      member=ns3_myns3_string__java_lang_String_String_Serializer.deserialize(ns1_taskId_QNAME,reader,context);
      if (member == null) {
        throw new DeserializationException("String_Node_Str");
      }
      instance.setTaskId((java.lang.String)member);
      reader.nextElementContent();
    }
 else {
      throw new DeserializationException("String_Node_Str",new Object[]{ns1_taskId_QNAME,reader.getName()});
    }
  }
 else {
    throw new DeserializationException("String_Node_Str",reader.getName().toString());
  }
  XMLReaderUtil.verifyReaderState(reader,XMLReader.END);
  return (Object)instance;
}

Fixed version (ground truth):
public Object doDeserialize(XMLReader reader,SOAPDeserializationContext context) throws Exception {
  com.amalto.workbench.webservices.WSUpdateMetadataItem instance=new com.amalto.workbench.webservices.WSUpdateMetadataItem();
  Object member=null;
  QName elementName;
  List values;
  Object value;
  reader.nextElementContent();
  elementName=reader.getName();
  if (reader.getState() == XMLReader.START) {
    if (elementName.equals(ns1_wsItemPK_QNAME)) {
      member=ns2_myWSItemPK_LiteralSerializer.deserialize(ns1_wsItemPK_QNAME,reader,context);
      if (member == null) {
        throw new DeserializationException("String_Node_Str");
      }
      instance.setWsItemPK((com.amalto.workbench.webservices.WSItemPK)member);
      reader.nextElementContent();
    }
 else {
      throw new DeserializationException("String_Node_Str",new Object[]{ns1_wsItemPK_QNAME,reader.getName()});
    }
  }
 else {
    throw new DeserializationException("String_Node_Str",reader.getName().toString());
  }
  elementName=reader.getName();
  if (reader.getState() == XMLReader.START) {
    if (elementName.equals(ns1_taskId_QNAME)) {
      member=ns3_myns3_string__java_lang_String_String_Serializer.deserialize(ns1_taskId_QNAME,reader,context);
      instance.setTaskId((java.lang.String)member);
      reader.nextElementContent();
    }
  }
  XMLReaderUtil.verifyReaderState(reader,XMLReader.END);
  return (Object)instance;
}