Yet another Oracle error.  However, in this case it is accurately described.

Ran into this with HQL where clause something like:

where entity1.id = entity2.id

One of the id’s was numeric, the other was a string.  Had made the silly assumption that PK’s would all be nice integers.