You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openwebbeans.apache.org by James Carman <ja...@carmanconsulting.com> on 2009/06/15 21:29:17 UTC

Proxies are not serializable...

While playing around with Wicket and OWB, I saw this little error in
my log files (Wicket requires that anything you put on your page is
serializable):

private java.lang.Object
org.apache.wicket.model.AbstractPropertyModel.target
[class=org.wicketstuff.TestBean_$$_javassist_0]
          private javassist.util.proxy.MethodHandler
javassist.util.proxy.SerializedProxy.handler
[class=org.apache.webbeans.intercept.InterceptorHandler]
            private org.apache.webbeans.component.AbstractComponent
org.apache.webbeans.intercept.InterceptorHandler.component
[class=org.apache.webbeans.component.ComponentImpl] <----- field that
is not serializable

So, basically, the proxy for the bean I'm using isn't serializable
because ComponentImpl isn't serializable.

Re: Proxies are not serializable...

Posted by James Carman <jc...@carmanconsulting.com>.
I'm looking at it now.  I need to re-read the spec. :)

On Mon, Jun 15, 2009 at 4:24 PM, Gurkan Erdogdu<gu...@yahoo.com> wrote:
> Yes, we will not correctly handle the serialization issues. Its our task
> list.
>
> Actually spec has changed lots after the last draft. We are currently
> working on refactoring the API to reflect last draft that was published a
> couple of days ago. We will rework and reimplement some of the current code
> base.
>
> Help and contribution will be really great :)
>
> Thanks;
>
> --Gurkan
>
> ________________________________
> From: James Carman <ja...@carmanconsulting.com>
> To: openwebbeans-user@incubator.apache.org
> Sent: Monday, June 15, 2009 10:29:17 PM
> Subject: Proxies are not serializable...
>
> While playing around with Wicket and OWB, I saw this little error in
> my log files (Wicket requires that anything you put on your page is
> serializable):
>
> private java.lang.Object
> org.apache.wicket.model.AbstractPropertyModel.target
> [class=org.wicketstuff.TestBean_$$_javassist_0]
>           private javassist.util.proxy.MethodHandler
> javassist.util.proxy.SerializedProxy.handler
> [class=org.apache.webbeans.intercept.InterceptorHandler]
>             private org.apache.webbeans.component.AbstractComponent
> org.apache.webbeans.intercept.InterceptorHandler.component
> [class=org.apache.webbeans.component.ComponentImpl] <----- field that
> is not serializable
>
> So, basically, the proxy for the bean I'm using isn't serializable
> because ComponentImpl isn't serializable.
>
>

Re: Proxies are not serializable...

Posted by Gurkan Erdogdu <gu...@yahoo.com>.
Yes, we will not correctly handle the serialization issues. Its our task list.

Actually spec has changed lots after the last draft. We are currently working on refactoring the API to reflect last draft that was published a couple of days ago. We will rework and reimplement some of the current code base.

Help and contribution will be really great :)

Thanks;

--Gurkan




________________________________
From: James Carman <ja...@carmanconsulting.com>
To: openwebbeans-user@incubator.apache.org
Sent: Monday, June 15, 2009 10:29:17 PM
Subject: Proxies are not serializable...

While playing around with Wicket and OWB, I saw this little error in
my log files (Wicket requires that anything you put on your page is
serializable):

private java.lang.Object
org.apache.wicket.model.AbstractPropertyModel.target
[class=org.wicketstuff.TestBean_$$_javassist_0]
          private javassist.util.proxy.MethodHandler
javassist.util.proxy.SerializedProxy.handler
[class=org.apache.webbeans.intercept.InterceptorHandler]
            private org.apache.webbeans.component.AbstractComponent
org.apache.webbeans.intercept.InterceptorHandler.component
[class=org.apache.webbeans.component.ComponentImpl] <----- field that
is not serializable

So, basically, the proxy for the bean I'm using isn't serializable
because ComponentImpl isn't serializable.