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

Reply via email to