In reply to yethishwar:
You are registering an object or component with the incorrect `uvm_xxx_utils() call, and have likely copy/pasted code to cause this error.
Make sure that every component uses uvm_component_utils(class_name) and every object uses
uvm_object_utils(class_name).
DO NOT use the field macros (uvm_object_utils_begin or
uvm_component_utils_begin). See other topics regarding why to not do this.
Make sure that class_name in the `uvm_xxx_utils() matches the actual class name and isn’t duplicated from a different class. It seems like you may have used ‘packet’ twice.