0

我正在 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

需要帮助......

4

1 回答 1

2

java.io.NotSerializableException: org.apache.catalina.core.ApplicationContextFacade是线索。您在对象图中的某个地方引用了ApplicationContextFacade不可序列化的引用,因此您应该尝试摆脱它。

(基于这个https://community.jboss.org/message/210557,也许你有参考ServletContext

于 2013-04-09T09:39:33.507 回答