`
gg19861207
  • 浏览: 183276 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

java.lang.IllegalArgumentException: argument type mismatch

阅读更多

1:MyEclipse控制台:

java.lang.IllegalArgumentException: argument type mismatch

 

 

2:浏览器页面:

 

javax.servlet.ServletException: BeanUtils.populate
	org.apache.struts.util.RequestUtils.populate(RequestUtils.java:469)
	org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:818)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:194)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	com.itcast.filter.SetCodeFilter.doFilter(SetCodeFilter.java:22)

 

root cause

java.lang.IllegalArgumentException: argument type mismatch
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)
	org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
	org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
	org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
	org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
	org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
	org.apache.struts.util.RequestUtils.populate(RequestUtils.java:467)
	org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:818)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:194)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	com.itcast.filter.SetCodeFilter.doFilter(SetCodeFilter.java:22)

 

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.

 

 

 

解决方案:

修改前:<html:form action="/control/product/style/manage" method="post"   onsubmit="return checkfm(this)">

修改后:<html:form action="/control/product/style/manage" method="post" enctype="multipart/form-data"  onsubmit="return checkfm(this)">

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics