`

org.directwebremoting.extend.MarshallException: Error marshalling

 
阅读更多
POJO类不是一个JavaBean,可能是没有一个无参构造函数

警告: Marshalling exception
org.directwebremoting.extend.MarshallException: Error marshalling com.demo.entity.User: com.demo.entity.User. See the logs for more details.
	at org.directwebremoting.convert.BasicObjectConverter.convertInbound(BasicObjectConverter.java:151)
	at org.directwebremoting.dwrp.DefaultConverterManager.convertInbound(DefaultConverterManager.java:159)
	at org.directwebremoting.dwrp.BaseCallMarshaller.marshallInbound(BaseCallMarshaller.java:155)
	at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:44)
	at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
	at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.InstantiationException: com.demo.entity.User
	at java.lang.Class.newInstance0(Class.java:340)
	at java.lang.Class.newInstance(Class.java:308)
	at org.directwebremoting.convert.BasicObjectConverter.convertInbound(BasicObjectConverter.java:84)
	... 19 more
2012-7-17 10:03:45 org.directwebremoting.util.CommonsLoggingOutput warn
警告: --Erroring: batchId[0] message[org.directwebremoting.extend.MarshallException: Error marshalling com.demo.entity.User: com.demo.entity.User. See the logs for more details.]


分享到:
评论

相关推荐

    xalan.jar dwr使用异常

    2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: DWR Version 2.0.5 starting. 2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info 信息: - Servlet Engine...

    dwr源码包,dwr.jar包下载

    org.directwebremoting.servlet.DwrServlet <init-param> <param-name>debug</param-name> <param-value>true</param-value>//开启调试 </init-param> <servlet-name>dwr-invoker ...

    DWR(Direct Web Remoting)框架jar包.rar

    DWR(Direct Web Remoting)是一个用于改善web页面与Java类交互的远程服务器端Ajax开源框架,可以帮助开发人员开发包含AJAX技术的网站。它可以允许在浏览器里的代码使用行在WEB服务器上的JAVA函数,就像它就在浏览器...

    服务器端ajax框架--------DWR实践总结

    从project中提取的dwr部分实现 博文链接:https://ankor.iteye.com/blog/138778

    dwr所需的jar包及配置

    Direct Web Remoting (DWR) 是一个开源的Java库,它允许在JavaScript和服务器端的Java之间进行安全、简单、异步的通信。这个技术极大地增强了Web应用的交互性,使得开发者可以像操作本地对象一样操作远程服务器上的...

    SSH(Spring Struts Hibernate)所有jar包

    antlr-2.7.7.jar aopalliance-1.0.jar asm-3.3.jar asm-commons-3.3.jar commons-fileupload-1.2.2.jar commons-io-2.4.jar commons-lang3-3.1.jar commons-logging-1.1.1.jar dom4j-1.6.1.jar druid-1.0.1.jar ...

    dwr消息推送功能

    org.directwebremoting.WebContext web = WebContextFactory.get(); // 获取当前页面 String page = web.getPage(); // 创建一个 ScriptBuffer 对象用于封装要执行的 JavaScript 代码 ScriptBuffer script = ...

    dwr源码.rar_DWR源代码

    深入研究这些包,可以了解DWR的模块化设计,例如"org.directwebremoting"是DWR的主要代码库,"org.directwebremoting.extend"包含可扩展的类和接口,"org.directwebremoting.dwrp"则涉及DWR协议的具体实现。...

    Struts、Spring、Hibernate整合开发、DWR集成

    55875 INFO 2008-09-08 16:20:35 343 org.directwebremoting.impl.StartupUtil - Servlet Engine: Apache Tomcat/5.5.12 55875 INFO 2008-09-08 16:20:35 343 org.directwebremoting.impl.StartupUtil - Java ...

    dwr spring服务器主动推送示例代码

    org.directwebremoting.extend.ReverseAjax.reverse(message); } } ``` 4. **配置DWR映射**: 在`dwr-config.properties`或`dwr.xml`中,配置DWR暴露的Java类和方法。 ```xml <param name="class" value="com....

    将dwr集成到spring mvc(dwr的配置是基于xml)

    <bean id="dwrConfiguration" class="org.directwebremoting.spring.DwrSpringConfigurator"> <bean id="dwrServlet" class="org.directwebremoting.spring.DwrController"> <bean class="org.spring...

    springMVC整合DWR3.0 实例

    import org.directwebremoting.WebContextFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class DWRController...

    DWR所需要的包与基本web.xml

    在这里,你需要指定Servlet的类名`org.directwebremoting.servlet.DwrServlet`。 3. **DWR初始化参数**:设置DWR的一些配置参数,例如`init-param`元素可以用来指定允许访问的JavaScript文件路径、安全策略、调试...

    配置整合DWR3.0和Spring2.5使用annotation注解

    import org.directwebremoting.annotations.RemoteMethod; import org.directwebremoting.annotations.RemoteProxy; import org.springframework.stereotype.Controller; import org.springframework.web.bind....

    DWR使用总结

    2. **配置Servlet**:在`web.xml`中配置DWR的Servlet,如`<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>`,并设置`debug`参数为`true`以便于调试。 3. **编写Java类**:创建Java类,...

    dwr+spring集成配置

    <bean id="dwrConfiguration" class="org.directwebremoting.spring.DwrSpringConfigurator"> <value>com.yourpackage</value> ``` 这里的`com.yourpackage`是包含远程方法的Java类所在的包。 3. **...

    ajax dwr

    import org.directwebremoting.annotations.RemoteMethod; import org.directwebremoting.annotations.RemoteProxy; @RemoteProxy(name = "hello") public class HelloWorldService { @RemoteMethod public ...

    dwr.xml配置描述及JSP上的引用_1

    <%@ page import="org.directwebremoting.HttpServletResponse"%> <%@ page import="org.directwebremoting.ScriptTagHelper"%> <script type="text/javascript" src="/dwr/interface/MyService.js"> ...

    ajax--dwr测试

    <listener-class>org.directwebremoting.servlet.EfficientShutdownServletContextAttributeListener <listener-class>org.directwebremoting.servlet.EfficientShutdownServletContextListener ...

Global site tag (gtag.js) - Google Analytics