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

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


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


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

Is this issue resolved?

Satish Kumar

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.