Wicket:克隆对象中的内部错误

时间:2013-04-09 09:38:06

标签: java object wicket cloning

我正在wicket编程。我正在尝试在我的服务器上传文件。但是当我这样做时,我在上传“错误克隆对象”时收到错误是我得到的细节错误

Page [Page class = com.pcmc.theka.pages.TrnThUploadTenderDocument, id = 3] couldn't be cloned to move to another pagemap
wicket.WicketRuntimeException: Internal error cloning object
    at wicket.util.lang.Objects.cloneObject(Objects.java:362)
    at wicket.markup.html.WebPage.onNewBrowserWindow(WebPage.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
    at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
    at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
    at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:846)
    at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879)
    at wicket.RequestCycle.step(RequestCycle.java:960)
    at wicket.RequestCycle.steps(RequestCycle.java:1034)
    at wicket.RequestCycle.request(RequestCycle.java:453)
    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
 Caused by: java.io.NotSerializableException: org.apache.catalina.core.ApplicationContextFacade
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at wicket.util.lang.Objects.cloneObject(Objects.java:351)
    ... 33 more

需要帮助......

1 个答案:

答案 0 :(得分:3)

java.io.NotSerializableException: org.apache.catalina.core.ApplicationContextFacade是线索。你在对象图中的某个地方引用了ApplicationContextFacade,这是不可序列化的,所以你应该试着去除它。

(根据此https://community.jboss.org/message/210557,您可能会引用ServletContext