Re: @SpringBean and serialization

2008-09-26 Thread James Carman
Serialization/deserialization is handled for you automatically. On Thu, Sep 25, 2008 at 9:33 PM, Ari M <[EMAIL PROTECTED]> wrote: > > I see nothing on the wiki page under Annotation-based Approach concerning > serialization. The other approaches discuss serialization issues, but not > this one.

Re: @SpringBean and serialization

2008-09-26 Thread Ari M
Yes, of course, but I'm in the same position as the one who posed the question: looking for the answer. I inferred from what was written that de-/serialization was handled by @SpringBean, but since I haven't had time to do a full code review, I don't know the details of how it all works, and ther

Re: @SpringBean and serialization

2008-09-25 Thread Igor Vaynberg
its a wiki, you can always update it... -igor On Thu, Sep 25, 2008 at 6:38 PM, Ari M <[EMAIL PROTECTED]> wrote: > > BTW, I did note that it said "It's possible to have your annotated > dependencies automatically injected on construction." By this I inferred > that de-/serialization was handled,

Re: @SpringBean and serialization

2008-09-25 Thread Ari M
BTW, I did note that it said "It's possible to have your annotated dependencies automatically injected on construction." By this I inferred that de-/serialization was handled, but it could be made more explicit, as it is for the other approaches. Ari Ari M wrote: > > I see nothing on the wiki

Re: @SpringBean and serialization

2008-09-25 Thread Ari M
I see nothing on the wiki page under Annotation-based Approach concerning serialization. The other approaches discuss serialization issues, but not this one. Am I missing something? If it said something like "serialization/de-serialization handled automatically", that would be clear. Thanks, A

Re: @SpringBean and serialization

2008-07-29 Thread lars vonk
Hi Gerald, Don't forget Findbugs is a static code analysis tool, so it can't figure out everything. To get rid of these (false) warnings you could for instance disable these specific warnings in FindBugs for wicket classes that are injected by Spring using FindBugs filters. See http://findbugs.sou

Re: @SpringBean and serialization

2008-07-29 Thread Igor Vaynberg
so you decrease the efficiency of your application so that your static analysis tool stops reporting false positives? -igor On Tue, Jul 29, 2008 at 8:10 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote: > > We use Findbugs on our build process, with this > > @SpringBean(name = "mySpringBean") > p

Re: @SpringBean and serialization

2008-07-29 Thread Gerald Reinhart
We use Findbugs on our build process, with this @SpringBean(name = "mySpringBean") private MyPOJO config; Findbugs Warning : Class com...MyPage defines non-transient non-serializable instance field config Bug type SE_BAD_FIELD (click for details) In class com...MyPage Field com

Re: @SpringBean and serialization

2008-07-29 Thread Igor Vaynberg
On Tue, Jul 29, 2008 at 1:11 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote: > > > jwcarman wrote: >> >> Why are you doing this again? @SpringBean already takes care of >> re-establishing the connection upon deserialization. >> > > Are you sure ? read the spring page on the wiki -igor > > > Seba

Re: @SpringBean and serialization

2008-07-29 Thread James Carman
You don't have to mark your field as transient. The proxy is indeed serializable (at least the object that it writeReplaces itself with is) and will re-establish itself upon deserialization. On Tue, Jul 29, 2008 at 4:11 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote: > > > jwcarman wrote: >> >> Wh

Re: @SpringBean and serialization

2008-07-29 Thread Gerald Reinhart
jwcarman wrote: > > Why are you doing this again? @SpringBean already takes care of > re-establishing the connection upon deserialization. > Are you sure ? Sebastiaan van Erk wrote: > > The myService field is filled with a proxy to the service which is > serializable and can look up > the

Re: @SpringBean and serialization

2008-07-28 Thread James Carman
Why are you doing this again? @SpringBean already takes care of re-establishing the connection upon deserialization. On Mon, Jul 28, 2008 at 11:49 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote: > > I've implemented a little solution to inject SpringBean of Wicket Pages on > the un-serialization

Re: @SpringBean and serialization

2008-07-28 Thread Gerald Reinhart
I've implemented a little solution to inject SpringBean of Wicket Pages on the un-serialization event : 1 - Make the SpringContext available in a static way : public class MyWebApplication extends SpringWebApplication { private static ApplicationContext springApplicationContext = null ;

Re: @SpringBean and serialization

2008-02-07 Thread Igor Vaynberg
correct -igor On Feb 7, 2008 4:43 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > dfernandez wrote: > > Hello everyone, > > > > I have a question regarding the relation between the @SpringBean annotation > > and the serialization of objects being referenced in a Page. If I have: > > > > @Spr

Re: @SpringBean and serialization

2008-02-07 Thread Sebastiaan van Erk
dfernandez wrote: Hello everyone, I have a question regarding the relation between the @SpringBean annotation and the serialization of objects being referenced in a Page. If I have: @SpringBean(name="myBean") protected MyService myService; May I suppose that the proxy object that @SpringBean w

Re: @SpringBean and serialization

2008-02-07 Thread Michael Sparer
hi daniel, "May I suppose that the proxy object that @SpringBean will create for "myService" will handle serialization properly? (this is, forgetting about the reference to the Spring object when serializing, and retrieving it again when de-serializing...)" that's how it works AFAIK, so marking

Re: @SpringBean and serialization

2008-02-07 Thread Nino Saturnino Martinez Vazquez Wael
Hi Daniel I've marked it transient, so looking forward to the replies you get.. regards Nino dfernandez wrote: Hello everyone, I have a question regarding the relation between the @SpringBean annotation and the serialization of objects being referenced in a Page. If I have: @SpringBean(name

@SpringBean and serialization

2008-02-07 Thread dfernandez
Hello everyone, I have a question regarding the relation between the @SpringBean annotation and the serialization of objects being referenced in a Page. If I have: @SpringBean(name="myBean") protected MyService myService; May I suppose that the proxy object that @SpringBean will create for "myS

Re: @SpringBean and serialization checker

2007-09-06 Thread Johan Compagner
the custom serialization is already off by default for quite some time the org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: only kicks in (so also for the default) when an IOException happens with writeObject So that you get a nice trace which field it exactly is of wha

Re: @SpringBean and serialization checker

2007-09-06 Thread Igor Vaynberg
i dont think our custom serialization works right with proxies yet is the thing -igor On 9/6/07, leok <[EMAIL PROTECTED]> wrote: > > > It's a little hard for me to tear out all the @SpringBean declarations in > my > webapp. I could try using the standard serialization method you speak of > and >

Re: @SpringBean and serialization checker

2007-09-06 Thread leok
It's a little hard for me to tear out all the @SpringBean declarations in my webapp. I could try using the standard serialization method you speak of and monitor the behavior. It seemed a little strange that this Exception would pop up with such a basic config so I figured that I was missing somet

Re: @SpringBean and serialization checker

2007-09-06 Thread Igor Vaynberg
so if you remove @SpringBean dao the errors go away? it def shouldnt be happening, maybe its a problem in wicket's custom serialization. there is a way to make wicket use standard serialization...cant remember off the top of my head right now... -igor On 9/6/07, leok <[EMAIL PROTECTED]> wrote: >

@SpringBean and serialization checker

2007-09-06 Thread leok
Hi, I'm using the @SpringBean + SpringComponentInjector to inject daos in my Wicket web pages. With Wicket 1.3b3, I'm noticing the following exception in my Tomcat (v6.0.13) logs: org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.