日期:2014-05-16  浏览次数:20671 次

求助DWR中返回Bean中含有List泛型时转换器报错的问题,急
项目使用的是SSH框架,版本为struts2,hibernate3,spring3,整合DWR后,新建了一个bean,用于封装分页的相关内容,bean中含有一个List<T>,用于接收查询的数据,现在配置好之后调用返回时出现Conversion error for java.util.ArrayList.错误.

详细错误信息
10:16:10,750 WARN org.directwebremoting.convert.CollectionConverter:218 - Conversion error for java.util.ArrayList.
org.directwebremoting.ConversionException: Error marshalling data. See the logs for more details.
at org.directwebremoting.extend.PropertyDescriptorProperty.getValue(PropertyDescriptorProperty.java:76)
at org.directwebremoting.convert.BasicObjectConverter.convertOutbound(BasicObjectConverter.java:285)
at org.directwebremoting.impl.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:403)
at org.directwebremoting.convert.BasicObjectConverter.convertOutbound(BasicObjectConverter.java:286)
at org.directwebremoting.impl.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:403)
at org.directwebremoting.convert.CollectionConverter.convertOutbound(CollectionConverter.java:213)
at org.directwebremoting.impl.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:403)
at org.directwebremoting.convert.BasicObjectConverter.convertOutbound(BasicObjectConverter.java:286)
at org.directwebremoting.impl.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:403)
at org.directwebremoting.extend.ScriptBufferUtil.createOutput(ScriptBufferUtil.java:67)
at org.directwebremoting.dwrp.BaseCallHandler$CallScriptConduit.addScript(BaseCallHandler.java:472)
at org.directwebremoting.dwrp.BaseCallHandler.marshallOutbound(BaseCallHandler.java:329)
at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:91)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)
at com.payment.filter.StrutsFilter.doFilter(StrutsFilter.java:23)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:369)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:381)
at org.sp