javax.servlet.ServletException: BeanUtils.populate

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javax.servlet.ServletException: BeanUtils.populate相关的知识,希望对你有一定的参考价值。

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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)
org.linkage.idc.IDCFilter.doFilter(IDCFilter.java:28)
com.linkage.bss.commons.web.filter.CharsetEncodeFilter.doFilterInternal(CharsetEncodeFilter.java:41)
com.linkage.bss.commons.web.filter.OnceRequestFilter.doFilter(OnceRequestFilter.java:45)

root cause

java.lang.IllegalArgumentException: argument type mismatch
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
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: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)
org.linkage.idc.IDCFilter.doFilter(IDCFilter.java:28)
com.linkage.bss.commons.web.filter.CharsetEncodeFilter.doFilterInternal(CharsetEncodeFilter.java:41)
com.linkage.bss.commons.web.filter.OnceRequestFilter.doFilter(OnceRequestFilter.java:45)

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

你好,错误信息已经很明确了:
com.linkage.bss.commons.web.filter.CharsetEncodeFilter.doFilterInternal(CharsetEncodeFilter.java:41)
com.linkage.bss.commons.web.filter.OnceRequestFilter.doFilter(OnceRequestFilter.java:45)
就在这两句里面,参数类型不匹配,忘仔细检查。
参考技术A 把你这个文件代码com.linkage.bss.commons.web.filter.CharsetEncodeFilter发下

以上是关于javax.servlet.ServletException: BeanUtils.populate的主要内容,如果未能解决你的问题,请参考以下文章