Selecting in a lookupField

Hi, I am new with CUBA. I have a issue with this:

    <collection id="sexoDt" class="com.company.operaerp.entity.Catalogos" view="_local">
        <loader id="sexoLc">
            <query><![CDATA[select e from operaerp_Catalogos e where e.catalogo = 'SEXO']]></query>
        </loader>
    </collection>


I GET WHEN SELECT AN OPTION:

IllegalArgumentException: argument type mismatch

Some recomendatións?

<lookupField id="sexoField" caption="Sexo (genero)" dataContainer="clienteDc"
             optionsContainer="sexoDt" property="sexo" captionProperty="claveId"/>

Hi,

Please provide the full exception stack trace and source code of Catalogos and Cliente entities.