It's not a case of an unknown reference causing the not serializable exception. I know which object is not serializable and it is the concrete proxy object created by WebLogic for my remote EJB. I ended up checking if I was in development mode and then using a transient variable and then using a another variable which is not transient when the app is running in a production environment. I was hesitant to simply mark the EJB as transient in case it caused issues in the production environment. Thanks all for your replies, they helped confirm that there wasn't a workaround other than marking it transient. Regards
Johan Compagner wrote: > > cant you make the non serializable object transient? > and make sure that you can relookup the object when it is null? > > johan > > On 6/4/07, Saad, Salma <[EMAIL PROTECTED]> wrote: >> >> I have a wicket page (java class) which uses a service locater to >> execute >> messages on a remote EJB. Though there is no direct reference to the EJB >> from my wicket page there is a reference to the service locater which >> uses >> JNDI to get a reference to the remote EJB. I get the following error >> (FYI, >> This error does not happen in wicket 1.2 but happens in wicket 1.2.6). >> >> >> >> WicketMessage: Internal error cloning object. Make sure all dependent >> objects implement Serializable. Class: com.abc.wicket.LoginPage >> >> Root cause: >> >> java.io.NotSerializableException: com. abc.ejb. AFacadeBean. >> AFacadeBean_7gl30w_EOImpl >> >> >> >> The EJB implements javax.ejb.SessionBean which extends the serializable >> interface but the EJB proxy object returned by the WebLogic server does >> NOT >> implement serialzable. Below is the class hierarchy of the object located >> through JNDI. (I printed this using reflectiion) >> >> >> >> com. abc.ejb. AFacadeBean. AFacadeBean _7gl30w_HomeImpl >> >> -weblogic.ejb20.internal.StatelessEJBHome >> >> --weblogic.ejb20.internal.BaseEJBHome >> >> ---java.lang.Object >> >> >> >> So it seems that I cannot use EJB's in wicket pages, (I am doing this >> indirectly through service locaters to decouple the pages from the back >> end). Any advice about what to do in this situation would be appreciated. >> Currently I am running in deployment mode since this avoids the checking. >> I >> have given some thought to marking the EJB transient in my service >> locator >> but would like to hear any insights/design suggestions/advice >> >> >> ------------------------------ >> >> CONFIDENTIAL: This e-mail, including its contents and attachments, if >> any, >> are confidential. It is neither an offer to buy or sell, nor a >> solicitation >> of an offer to buy or sell, any securities or any related financial >> instruments mentioned in it. If you are not the named recipient please >> notify the sender and immediately delete it. You may not disseminate, >> distribute, or forward this e-mail message or disclose its contents to >> anybody else. Unless otherwise indicated, copyright and any other >> intellectual property rights in its contents are the sole property of >> Mizuho >> Securities USA Inc. >> >> E-mail transmission cannot be guaranteed to be secure or error-free. The >> sender therefore does not accept liability for any errors or omissions in >> the contents of this message which arise as a result of e-mail >> transmission. >> If verification is required please request a hard-copy version. >> >> Although we routinely screen for viruses, addressees should check this >> e-mail and any attachments for viruses. We make no representation or >> warranty as to the absence of viruses in this e-mail or any attachments. >> Please note that to ensure regulatory compliance and for the protection >> of >> our customers and business, we may monitor and read e-mails sent to and >> from >> our server(s). >> ------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Wicket-1.2.6-Development-mode-serialization-checks-and-remote-EJB%27s-tf3866878.html#a11008736 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user