Empty ArrayList in DataManger with LoadContext.Query

Can some one help me solve this problem:
I want to get all operations where meltType is less than 2.
I only get Array Empty exception.

LoadContext loadContext = LoadContext.create(Operasjoner.class)
                .setQuery(LoadContext.createQuery("select o from prodstyring$Operasjoner o where o.ao.id = :aoId AND o.meldeType = 2")
                        .setParameter("aoId", aoId))

        return dataManager.loadList(loadContext);

If you need less than 2, why do you use “o.meldeType = 2”?
And when asking about exceptions, please provide the stack trace.

I solved this by using Enum values.