javax.el.PropertyNotFoundException: The class ' does not have a readable property 'preference'

你离开我真会死。 提交于 2019-12-02 10:09:10

It been a long time for this question but posting this answer just to mention the cause and close the issue.

It was glassfish not picking up the changes and restarting it resolved the issue. So, if you are sure about your changes and still getting an error, I guess its ok to doubt the server too :)

This is an old question but this may help somebody. I had a similar problem with Boolean. Changing the getter method from isXxx to getXxx solved it. For instance:

public boolean getPreference() {
    return preference;
}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!