Hi all, we received the following exception within a WebPage using an injected SpringBean - HibernateSessionFactory via sublassed LocalSessionFactoryBean :
ERROR - Objects : Error serializing object class de.ponton.box.core.ui.detail.Detail [object=[Page class = de.ponton.box.core.ui.detail.Detail, id = 0, version = 0]] wicket.util.io.WicketSerializeableException: Error writing fields for wicket.proxy.$Proxy7 de.ponton.box.core.ui.detail.Detail->sessionFactory NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:806) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) at wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:860) at wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387) at wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) at wicket.util.lang.Objects.objectToByteArray(Objects.java:1102) at wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:408) at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java:49) at wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:705) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:397) at wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) ... 10 more ERROR - FilePageStore$PageSerializingThread : Error in page save thread java.lang.NullPointerException at wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:413) at wicket.protocol.http.FilePageStore.access$1500(FilePageStore.java:49) at wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:705) at java.lang.Thread.run(Thread.java:595) shouldn't happen Here is the applicationContextSnippet: ... <bean id="mergedSessionFactory" class="de.ponton.box.core.bootstrap.DynamicSessionFactoryBean" singleton="true"> <property name="dataSource"> <ref bean="dataSource" /> </property> .... we are subclassing LocalSessionFactoryBean from spring: ... public class DynamicSessionFactoryBean extends LocalSessionFactoryBean { ... and here is the code snippet: .... @SpringBean SessionFactory sessionFactory; .... This has worked with Wicket 1.2.5... Any ideas? -- Best regards / Mit freundlichen Grüßen Michel Wichers _____________________________________________________________________ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax: +49.40.69213-355 Dorotheenstrasse 60 mobile: +49.175.566 9970 D-22301 Hamburg mailto:[EMAIL PROTECTED] _____________________________________________________________________ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group (www.c1-group.com) _____________________________________________________________________ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user