function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
neshnesh 

SALESFORCE Error java.lang.reflect.InvocationTargetException -Give your knowledge

Hi

 when i save the test class IN SFDC.i got error name:java.lang.reflect.InvocationTargetException . already i file the case..how to overcome thi issue. please help me.

mauro_offermannmauro_offermann

Try adding a constructor without parameters...
additionaly post the Exception stacktrace.

Satish_SFDCSatish_SFDC
Is this issue resolved?

Regards,
Satish Kumar
VishalKdnVishalKdn

There are various steps to be followed to overcome this error:

1. Disable Paralell Apex Testing from Apex Test Execution(By clicking options...).

2. Clear previous Test results.

 

After following these steps try saving the test class.

 

Thank You and If this post helps you, Mark it as solution and please throw a Kudos by clicking Star ***
Vishal Singh | Technical Associate | Make Positive India Pvt. Ltd.