In reply to shanthi:
I think the connection is not done between port & export. Show the code where you are connecting port & export.
Hello Shanthi
I have connected port and export in the environment. Here is a snippet of it
function void connect_phase(uvm_phase phase);
comp_a.trans_out.connect(comp_b.trans_in);
endfunction : connect_phase