Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Novice
Description
If for some reason the method cannot be invoked, you may get a caused exception
Caused by: java.lang.IllegalAccessException: Class org.apache.camel.component.bean.MethodInfo can not access a member of class com.sonatype.overlord.xpi.AsyncProxyBeanCamelTest$1 with modifiers "public" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:329) at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:231) at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:169)
We should catch this and provide a wrapped exception with a more descriptive error message, about the bean and method attempted to invoke.