Great! Could you give a bit more information on how serialization is
going to work in 1.5.7? Are you going to make Factory serializable,
thereby making everyting that's derived from it serializable? For
example, are things like individual result records and composed (but
unexecuted) queryies going to be serializable? This would really make
things a lot easier in web environments like Wicket.

thanks

Sander

On Apr 6, 11:26 pm, Lukas Eder <[email protected]> wrote:
> Hi Sander,
>
> You're right, Factory was intentionally left "unserialisable" in the
> first versions of jOOQ. Today, however, this is wrong. Serialisability
> is being re-worked for jOOQ 1.5.7. I'll add some additional
> integration tests to ensure your use case is working correctly.
>
> Thanks for your feedback.
> Lukas
>
> 2011/4/6 Sander Plas <[email protected]>:
>
>
>
>
>
>
>
> > Hello,
>
> > I'm trying to use jOOQ 1.5.6 together with Wicket.
>
> > I get the impression that although 'Result' implements 'Serializable',
> > it can not really be serialized because it has a reference to
> > org.jooq.impl.Factory?
>
> > When Wicket tries to serialize a Result i obtained with a selectFrom()
> > query, i get:
>
> > ------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > SEVERE: Error serializing object class my.prog.app.HomePage
> > [object=[Page class = my.prog.app.HomePage, id = 12, version = 0]]
> > org.apache.wicket.util.io.SerializableChecker
> > $WicketNotSerializableException: Unable to serialize class:
> > org.jooq.impl.Factory
> > Field hierarchy is:
> >  12 [class=my.prog.app.HomePage, path=12]
> >    org.jooq.Result my.prog.app.HomePage.res
> > [class=org.jooq.impl.ResultImpl]
> >      private final org.jooq.FieldProvider
> > org.jooq.impl.ResultImpl.fields [class=org.jooq.impl.FieldList]
> >        private final org.jooq.Configuration
> > org.jooq.impl.AbstractQueryPart.configuration
> > [class=org.jooq.impl.Factory] <----- field that is not serializable
> >        at
> > org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:
> > 346)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:
> > 615)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:
> > 538)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:
> > 615)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:
> > 538)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:
> > 615)
> >        at
> > org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:
> > 538)
> > ------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> > Am i doing something wrong?

Reply via email to