java.lang.IllegalStateException: Could not access method: Class org.springframework.util.ReflectionUtils can not access a member of class com.example.MyEventHandler with modifiers "public"

Spring JIRA | Chris Beams | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The Network Adapter could not establish the connection - Spring Forum

    spring.io | 10 months ago
    java.lang.IllegalStateException: Unexpected exception thrown by method - java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionDSRA0010E: SQL State = null, Error Code = 17,002
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Dunmer 2 times, last 3 weeks ago

Root Cause Analysis

  1. java.lang.IllegalStateException

    Could not access method: Class org.springframework.util.ReflectionUtils can not access a member of class com.example.MyEventHandler with modifiers "public"

    at org.springframework.util.ReflectionUtils.handleReflectionException()
  2. Spring Core
    ReflectionUtils.invokeMethod
    1. org.springframework.util.ReflectionUtils.handleReflectionException(ReflectionUtils.java:271)
    2. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:214)
    2 frames
  3. Spring Data REST - Core
    AnnotatedEventHandlerInvoker.onApplicationEvent
    1. org.springframework.data.rest.core.event.AnnotatedEventHandlerInvoker.onApplicationEvent(AnnotatedEventHandlerInvoker.java:92)
    1 frame