Oracle Message PCC-02407 - Object and REF types do not match

ERRORObject and REF types do not match
CAUSEIn an OBJECT CREATE or DEREF statement, the types of the given Object and its associated REF do not match.
ACTIONMake sure that the Object and its REF have the same type. The type information is generated by OTT and should appear in the header file which OTT creates.