cause cdi spec says they have to be and ejb one does not? -igor
On Tue, Sep 18, 2012 at 10:56 AM, Bruno Borges <bruno.bor...@gmail.com> wrote: > Why are the CDI proxies serializable and EJB's proxy aren't? Hell... > > *Bruno Borges* > (11) 99564-9058 > *www.brunoborges.com* > > > > On Tue, Sep 18, 2012 at 2:48 PM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote: > >> so join the jsr expert group and emphasize the importance of making >> EJB proxies serializable :) >> >> On Tue, Sep 18, 2012 at 10:45 AM, Bruno Borges <bruno.bor...@gmail.com> >> wrote: >> > Yeah, that workaround that I wanted to not do... :-) >> > >> > But okay, thanks! >> > >> > *Bruno Borges* >> > (11) 99564-9058 >> > *www.brunoborges.com* >> > >> > >> > >> > On Tue, Sep 18, 2012 at 2:26 PM, Igor Vaynberg <igor.vaynb...@gmail.com >> >wrote: >> > >> >> no update. the cdi spec does not require ejbs to be serializable >> >> because they are not in cdi spec. >> >> >> >> if you want to use ejbs inject them into a cdi bean and then inject >> >> that into wicket. >> >> >> >> -igor >> >> >> >> On Tue, Sep 18, 2012 at 9:56 AM, Bruno Borges <bruno.bor...@gmail.com> >> >> wrote: >> >> > Igor, any update on the Serialization issue? >> >> > >> >> > I'm getting the exception again... :-/ >> >> > >> >> > # Running on GlassFish 3.1.2.2 / Wicket 6 + wicket-cdi >> >> > >> >> > SEVERE: Error serializing object class code.webapp.pages.Index >> >> > [object=[Page class = code.webapp.pages.Index, id = 3, render count = >> 1]] >> >> > >> >> >> org.apache.wicket.core.util.io.SerializableChecker$WicketNotSerializableException: >> >> > Unable to serialize class: >> >> > com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate >> >> > Field hierarchy is: >> >> > 3 [class=code.webapp.pages.Index, path=3] >> >> > private code.services.Service code.webapp.pages.Base.service >> >> > >> [class=code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$] >> >> > javassist.util.proxy.MethodHandler >> >> > >> >> >> code.services.ScalaObject$Service$918758560$Proxy$_$$_Weld$Proxy$.methodHandler >> >> > [class=org.jboss.weld.bean.proxy.ProxyMethodHandler] >> >> > private org.jboss.weld.bean.proxy.BeanInstance >> >> > org.jboss.weld.bean.proxy.ProxyMethodHandler.beanInstance >> >> > [class=org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance] >> >> > private final javassist.util.proxy.MethodHandler >> >> > org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.methodHandler >> >> > [class=org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler] >> >> > private final >> org.jboss.weld.ejb.api.SessionObjectReference >> >> > org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.reference >> >> > [class=org.glassfish.weld.ejb.SessionObjectReferenceImpl] >> >> > private java.lang.Object >> >> > org.glassfish.weld.ejb.SessionObjectReferenceImpl.ejbRef >> >> [class=$Proxy149] >> >> > protected java.lang.reflect.InvocationHandler >> >> > java.lang.reflect.Proxy.h >> >> > [class=com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate] >> >> > <----- field that is not serializable >> >> > at >> >> > >> >> >> org.apache.wicket.core.util.io.SerializableChecker.internalCheck(SerializableChecker.java:411) >> >> > at >> >> > >> >> >> org.apache.wicket.core.util.io.SerializableChecker.check(SerializableChecker.java:390) >> >> > >> >> > >> >> > >> >> > *Bruno Borges* >> >> > (11) 99564-9058 >> >> > *www.brunoborges.com* >> >> > >> >> > >> >> > >> >> > On Tue, Sep 18, 2012 at 12:29 AM, Bruno Borges < >> bruno.bor...@gmail.com >> >> >wrote: >> >> > >> >> >> Jeremy, the archetype is already on the Gamboa project repository: >> >> >> >> >> >> http://github.com/brunoborges/gamboa-project :-) >> >> >> >> >> >> It's just not up to date >> >> >> >> >> >> *Bruno Borges* >> >> >> (11) 99564-9058 >> >> >> *www.brunoborges.com* >> >> >> >> >> >> >> >> >> >> >> >> On Thu, Sep 13, 2012 at 11:39 AM, Jeremy Thomerson < >> >> >> jer...@wickettraining.com> wrote: >> >> >> >> >> >>> On Wed, Sep 12, 2012 at 3:59 PM, Bruno Borges < >> bruno.bor...@gmail.com >> >> >>> >wrote: >> >> >>> >> >> >>> > This is really great Igor, thanks. >> >> >>> > >> >> >>> > I am preparing my slides for my Wicket/Java EE session at JavaOne, >> >> and >> >> >>> this >> >> >>> > just came in perfect time. >> >> >>> > >> >> >>> > I'll update my archetype and some slides to show this and let >> >> everyone >> >> >>> know >> >> >>> > about =) >> >> >>> >> >> >>> >> >> >>> Will you be posting those slides and archetype somewhere >> non-attendees >> >> can >> >> >>> access when done? >> >> >>> >> >> >>> -- >> >> >>> Jeremy Thomerson >> >> >>> http://wickettraining.com >> >> >>> *Need a CMS for Wicket? Use Brix! http://brixcms.org* >> >> >>> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org