You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Michel Wichers (JIRA)" <ji...@apache.org> on 2007/03/07 10:47:24 UTC
[jira] Created: (WICKET-367) Exception in
"wicket.util.io.WicketObjectOutputStream" when using an injected
@SpringBean via sublassed LocalSessionFactoryBean
Exception in "wicket.util.io.WicketObjectOutputStream" when using an injected @SpringBean via sublassed LocalSessionFactoryBean
-------------------------------------------------------------------------------------------------------------------------------
Key: WICKET-367
URL: https://issues.apache.org/jira/browse/WICKET-367
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3
Environment: JDK 1.5, Win XP, Jetty
Reporter: Michel Wichers
Priority: Minor
Hi all,
we received the following exception within a WebPage using an injected
SpringBean - Hibernate SessionFactory 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;
....
Thanks in advance!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-367) Exception in
"wicket.util.io.WicketObjectOutputStream" when using an injected
@SpringBean via subclassed LocalSessionFactoryBean
Posted by "Michel Wichers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michel Wichers updated WICKET-367:
----------------------------------
Description:
Hi all,
we received the following exception within a WebPage using an injected
SpringBean - Hibernate SessionFactory via subclassed 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;
....
Thanks in advance!
was:
Hi all,
we received the following exception within a WebPage using an injected
SpringBean - Hibernate SessionFactory 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;
....
Thanks in advance!
Summary: Exception in "wicket.util.io.WicketObjectOutputStream" when using an injected @SpringBean via subclassed LocalSessionFactoryBean (was: Exception in "wicket.util.io.WicketObjectOutputStream" when using an injected @SpringBean via sublassed LocalSessionFactoryBean)
> Exception in "wicket.util.io.WicketObjectOutputStream" when using an injected @SpringBean via subclassed LocalSessionFactoryBean
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-367
> URL: https://issues.apache.org/jira/browse/WICKET-367
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Environment: JDK 1.5, Win XP, Jetty
> Reporter: Michel Wichers
> Priority: Minor
>
> Hi all,
> we received the following exception within a WebPage using an injected
> SpringBean - Hibernate SessionFactory via subclassed 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;
> ....
> Thanks in advance!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WICKET-367) Exception in
"wicket.util.io.WicketObjectOutputStream" when using an injected
@SpringBean via subclassed LocalSessionFactoryBean
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg reassigned WICKET-367:
------------------------------------
Assignee: Johan Compagner
> Exception in "wicket.util.io.WicketObjectOutputStream" when using an injected @SpringBean via subclassed LocalSessionFactoryBean
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-367
> URL: https://issues.apache.org/jira/browse/WICKET-367
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Environment: JDK 1.5, Win XP, Jetty
> Reporter: Michel Wichers
> Assigned To: Johan Compagner
> Priority: Minor
>
> Hi all,
> we received the following exception within a WebPage using an injected
> SpringBean - Hibernate SessionFactory via subclassed 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;
> ....
> Thanks in advance!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.