`

java.lang.IllegalArgumentException: No bean specified和javax.servlet.ServletExcep

阅读更多

public class SmUserPagePropBean extends BcmsBean {

    private SmUserPagePropModel smUserPagePropModel;

    省略set和get方法

}

异常:

  

javax.servlet.ServletException: BeanUtils.populate
	org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
	org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.icfcc.core.web.filter.EncodingFilter.doFilter(EncodingFilter.java:35)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
java.lang.IllegalArgumentException: No bean specified
	org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751)
	org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937)
	org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
	org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
	org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
	org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.icfcc.core.web.filter.EncodingFilter.doFilter(EncodingFilter.java:35)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
解决方法:

将private SmUserPagePropModel smUserPagePropModel;

改为
private SmUserPagePropModel smUserPagePropModel=new SmUserPagePropModel();
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics