Hi, Thanks for your information. I will implements Detachable Models in my code.
Thanks and Regards Mohan P -----Original Message----- From: Gwyn Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 12:56 PM To: [email protected]; P, Mohan Subject: Re: [Wicket-user] java.io.NotSerializableException: org.apache.tomcat.dbcp.dbcp.Poo lingDataSource$PoolGuardConnectionWrapper Hi, I think you'll need to use a DetachableModel and load & unload your datasource to stop it being serialized - http://www.wicket-wiki.org.uk/wiki/index.php/Models#Detachable_Models should get you started. /Gwyn On 24/05/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I am new for Wicket framework. > > I am developing a web application using Wicket. My problem is when I fetch > the data from data base by using data source in Tomcat5.x, I got all data > from data base. after that the display page its throwing an exception. > > > > Please reply to me. > > > Wicket Message: Internal error cloning object. Make sure all dependent > objects implement Serializable. Class: > com.tsystems.bamview.web.report.CallsTotal > > Root cause: > > java.io.NotSerializableException: > org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper > 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.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.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:56) > at wicket.Session.setAttribute(Session.java:914) > at wicket.PageMap.put(PageMap.java:519) > at wicket.Session.touch(Session.java:720) > at wicket.Page.renderPage(Page.java:422) > at > wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:224) > at > wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) > at > wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) > 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:689) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > > Complete stack: > > wicket.WicketRuntimeException: Internal error cloning object. Make sure all > dependent objects implement Serializable. Class: > com.tsystems.bamview.web.report.CallsTotal > at > wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:62) > at wicket.Session.setAttribute(Session.java:914) > at wicket.PageMap.put(PageMap.java:519) > at wicket.Session.touch(Session.java:720) > at wicket.Page.renderPage(Page.java:422) > at > wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:224) > at > wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) > at > wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) > 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) > > > > > > > > Thanks and Regards > > Mohan P ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
