Error When Adding Record in Repository for a Created or an Upgraded Enterprise

What should I do if I get java.sql.SQLSyntaxErrorException: ORA-00902: invalid datatype error when adding record in repository for a created or an upgraded enterprise?

Above error occurs if Type Object is corrupted. Run the following command to recreate it:

CREATE OR REPLACE TYPE INSTRTBL
AS TABLE OF VARCHAR2 (255)
/