0 Replies Latest reply on Jan 2, 2011 1:30 AM by Gianni Doe

    Non serializable field in injected SLSB

    Gianni Doe Newbie

      I'm using weld with Wicket on Glassfish 3.1 and when wicket tries to serialize the page containing the injected proxy I get:



      2011-01-02 06:54:24,804 [http-thread-pool-8080(5)] ERROR o.a.w.util.lang.WicketObjects - Error serializing object class com.myapp.webapp.rides.EntryPage [object=[Page class = com.myapp.webapp.rides.EntryPage, id = 31, render count = 2]]
      org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: com.sun.ejb.containers.EjbContainerServicesImpl
      Field hierarchy is:
       31 [class=com.myapp.webapp.rides.EntryPage, path=31]
         private com.myapp.geocode.GeocodingService com.myapp.webapp.rides.EntryPage.geocodingService [class=com.myapp.geocode.org$jboss$weld$bean-$Applications$glassfish3$glassfish$domains$domain1$applications$myapp$-SessionBean-YahooPlacesGeocodingService_$$_WeldProxy]
           private java.util.ArrayList org.jboss.weld.util.collections.ArraySet.elements[write:1][write:2][write:3][write:4][write:5][write:6][write:7][write:5][write:6] [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 org.glassfish.ejb.api.EjbContainerServices org.glassfish.weld.ejb.SessionObjectReferenceImpl.ejbContainerServices [class=com.sun.ejb.containers.EjbContainerServicesImpl] <----- field that is not serializable