java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public"

Spring JIRA | Andreas Schildbach | 1 decade 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

    I've got a problem with AbstractWizardFormController. Every now and then, sometimes on the first invokation (like in this example), sometimes after flipping some pages forward and back again, I get an IllegalAccessException wrapped into an InvalidPropertyException. Have a look at the message text: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" Why is it not possible to access a public method? Should be accessible from anywhere, does it? (I'm not using any SecurityManagers) Why is it only happening now and then? How would you suggest me to debug? --- 04.03.2005 22:56:17 org.springframework.web.servlet.mvc.AbstractFormController showNewForm FEIN: Displaying new form 04.03.2005 22:56:17 org.springframework.web.servlet.mvc.AbstractWizardFormController showPage FEIN: Showing wizard page 0 for form bean 'command' 04.03.2005 22:56:20 org.springframework.beans.BeanWrapperImpl getPropertyValue FEIN: About to invoke read method [public de.schildbach.game.business.bo.CreateGameCommand de.schildbach.game.presentation.forming.CreateGameController$Command.getRemote()] on object of class [de.schildbach.game.presentation.forming.CreateGameController$Command] 04.03.2005 22:56:20 org.springframework.web.servlet.tags.RequestContextAwareTag doStartTag SCHWERWIEGEND: Exception in RequestContextAwareTag org.springframework.beans.InvalidPropertyException: Invalid property 'remote' of bean class [de.schildbach.game.presentation.forming.CreateGameController$Command]: Illegal attempt to get property 'remote' threw exception; nested exception is java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) at java.lang.reflect.Method.invoke(Method.java:578) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:601) at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:496) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:474) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:585) at org.springframework.validation.BindException.getFieldValue(BindException.java:309) at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:114) at org.springframework.web.servlet.tags.BindStatus.<init>(BindStatus.java:38) at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:105) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:70) at org.apache.jsp.game.forming.create_005fgame_005fform_005fbasic_jspx._jspService(create_005fgame_005fform_005fbasic_jspx.java:126)

    Spring JIRA | 1 decade ago | Andreas Schildbach
    java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public"
  2. 0

    I've got a problem with AbstractWizardFormController. Every now and then, sometimes on the first invokation (like in this example), sometimes after flipping some pages forward and back again, I get an IllegalAccessException wrapped into an InvalidPropertyException. Have a look at the message text: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" Why is it not possible to access a public method? Should be accessible from anywhere, does it? (I'm not using any SecurityManagers) Why is it only happening now and then? How would you suggest me to debug? --- 04.03.2005 22:56:17 org.springframework.web.servlet.mvc.AbstractFormController showNewForm FEIN: Displaying new form 04.03.2005 22:56:17 org.springframework.web.servlet.mvc.AbstractWizardFormController showPage FEIN: Showing wizard page 0 for form bean 'command' 04.03.2005 22:56:20 org.springframework.beans.BeanWrapperImpl getPropertyValue FEIN: About to invoke read method [public de.schildbach.game.business.bo.CreateGameCommand de.schildbach.game.presentation.forming.CreateGameController$Command.getRemote()] on object of class [de.schildbach.game.presentation.forming.CreateGameController$Command] 04.03.2005 22:56:20 org.springframework.web.servlet.tags.RequestContextAwareTag doStartTag SCHWERWIEGEND: Exception in RequestContextAwareTag org.springframework.beans.InvalidPropertyException: Invalid property 'remote' of bean class [de.schildbach.game.presentation.forming.CreateGameController$Command]: Illegal attempt to get property 'remote' threw exception; nested exception is java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) at java.lang.reflect.Method.invoke(Method.java:578) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:601) at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:496) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:474) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:585) at org.springframework.validation.BindException.getFieldValue(BindException.java:309) at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:114) at org.springframework.web.servlet.tags.BindStatus.<init>(BindStatus.java:38) at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:105) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:70) at org.apache.jsp.game.forming.create_005fgame_005fform_005fbasic_jspx._jspService(create_005fgame_005fform_005fbasic_jspx.java:126)

    Spring JIRA | 1 decade ago | Andreas Schildbach
    java.lang.IllegalAccessException: Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public"
  3. 0

    JUnit Testing: invoking parent class protected method

    Stack Overflow | 4 years ago
    java.lang.IllegalAccessException: Class test.package.subpackage.ATest can not access a member of class package.subpackage.A with modifiers "protected"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Web service client problems | Java.net

    java.net | 2 years ago
    java.lang.IllegalAccessException: Class com.sun.enterprise.util.Utility can not access a member of class ws.ClientDriver with modifiers "public static"
  6. 0

    3.2.2.2. IllegalAccessException - Doing what you should not

    jboss.org | 2 years ago
    java.lang.IllegalAccessException: Class org.jboss.book.jmx.ex0.ExIAEd can not access a member of class org.jboss.book.jmx.ex0.ExCtx with modifiers ""

  1. musketyr 2 times, last 1 month ago
  2. Handemelindo 1 times, last 2 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalAccessException

    Class org.springframework.beans.BeanWrapperImpl can not access a member of class de.schildbach.game.presentation.forming.CreateGameController$Command with modifiers "public"

    at sun.reflect.Reflection.ensureMemberAccess()
  2. Java RT
    Method.invoke
    1. sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
    2. java.lang.reflect.Method.invoke(Method.java:578)
    2 frames
  3. Spring Beans
    BeanWrapperImpl.getPropertyValue
    1. org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:601)
    2. org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:496)
    3. org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:474)
    4. org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:585)
    4 frames
  4. Spring Context
    BindException.getFieldValue
    1. org.springframework.validation.BindException.getFieldValue(BindException.java:309)
    1 frame
  5. Spring MVC
    RequestContextAwareTag.doStartTag
    1. org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:114)
    2. org.springframework.web.servlet.tags.BindStatus.<init>(BindStatus.java:38)
    3. org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:105)
    4. org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:70)
    4 frames
  6. org.apache.jsp
    create_005fgame_005fform_005fbasic_jspx._jspService
    1. org.apache.jsp.game.forming.create_005fgame_005fform_005fbasic_jspx._jspService(create_005fgame_005fform_005fbasic_jspx.java:126)
    1 frame