Java: NoSuchMethodException when method clearly exists May 5, 2023 by Tarik Your method is private but getMethod() only returns public method. You need to use getDeclaredMethod().