Program: 176713
Project: 176713
Buggy source:
private byte[] getBytes(String jpaFieldName,EntityMetadata m,Object value){
  Attribute idCol=m.getIdAttribute();
  MetamodelImpl metaModel=(MetamodelImpl)KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());
  EntityType entity=metaModel.entity(m.getEntityClazz());
  Class fieldClazz=null;
  boolean isId=false;
  if (idCol.getName().equals(jpaFieldName)) {
    Field f=(Field)idCol.getJavaMember();
    fieldClazz=f.getType();
    isId=true;
  }
 else {
    StringTokenizer tokenizer=new StringTokenizer(jpaFieldName,"String_Node_Str");
    String embeddedFieldName=null;
    if (tokenizer.countTokens() > 1) {
      embeddedFieldName=tokenizer.nextToken();
      String fieldName=tokenizer.nextToken();
      Attribute embeddableAttribute=entity.getAttribute(embeddedFieldName);
      EmbeddableType embeddableType=metaModel.embeddable(embeddableAttribute.getJavaType());
      Attribute embeddedAttribute=embeddableType.getAttribute(fieldName);
      jpaFieldName=((AbstractAttribute)embeddedAttribute).getJPAColumnName();
      fieldClazz=((AbstractAttribute)embeddedAttribute).getBindableJavaType();
    }
 else {
      String fieldName=m.getFieldName(jpaFieldName);
      Attribute col=entity.getAttribute(fieldName);
      if (col == null) {
        throw new QueryHandlerException("String_Node_Str" + jpaFieldName);
      }
      fieldClazz=((AbstractAttribute)col).getBindableJavaType();
    }
  }
  if (fieldClazz != null) {
    return HBaseUtils.getBytes(value,fieldClazz);
  }
 else {
    log.error("String_Node_Str" + jpaFieldName);
    throw new QueryHandlerException("String_Node_Str" + jpaFieldName);
  }
}

Fixed version (ground truth):
private byte[] getBytes(String jpaFieldName,EntityMetadata m,Object value){
  Attribute idCol=m.getIdAttribute();
  MetamodelImpl metaModel=(MetamodelImpl)KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());
  EntityType entity=metaModel.entity(m.getEntityClazz());
  Class fieldClazz=null;
  boolean isId=false;
  if (idCol.getName().equals(jpaFieldName)) {
    Field f=(Field)idCol.getJavaMember();
    fieldClazz=f.getType();
    isId=true;
  }
 else {
    StringTokenizer tokenizer=new StringTokenizer(jpaFieldName,"String_Node_Str");
    String embeddedFieldName=null;
    if (tokenizer.countTokens() > 1) {
      embeddedFieldName=tokenizer.nextToken();
      String fieldName=tokenizer.nextToken();
      Attribute embeddableAttribute=entity.getAttribute(embeddedFieldName);
      EmbeddableType embeddableType=metaModel.embeddable(embeddableAttribute.getJavaType());
      Attribute embeddedAttribute=embeddableType.getAttribute(fieldName);
      jpaFieldName=((AbstractAttribute)embeddedAttribute).getJPAColumnName();
      fieldClazz=((AbstractAttribute)embeddedAttribute).getBindableJavaType();
    }
 else {
      String fieldName=m.getFieldName(jpaFieldName);
      Attribute col=entity.getAttribute(fieldName);
      fieldClazz=((AbstractAttribute)col).getBindableJavaType();
    }
  }
  if (fieldClazz != null) {
    return HBaseUtils.getBytes(value,fieldClazz);
  }
 else {
    log.error("String_Node_Str" + jpaFieldName);
    throw new QueryHandlerException("String_Node_Str" + jpaFieldName);
  }
}