You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Roman Ilin <ro...@gmail.com> on 2011/01/03 23:50:41 UTC
Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Hi *,
in wicket 1.4.15
spring 3.0.5
hibernate 3.6
application
if defined springs PersistenceExceptionTranslationPostProcessor bean I
get Unserializable exceptions in
different spring classes (PersistenceExceptionTranslationInterceptor,
ChainedPersistenceExceptionTranslator, ...)
After looking into spring sources I see that they are really unserializable.
Is there some workaround to use
PersistenceExceptionTranslationPostProcessor without redefinition of
all unserializable classes?
Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
Regards
Roman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Igor Vaynberg <ig...@gmail.com>.
looks like spring aop is processing the proxy wicket generates? weird.
-igor
On Tue, Jan 4, 2011 at 10:20 AM, Roman Ilin <ro...@gmail.com> wrote:
> @Martin: UserDao is an Interface.
>
> @Igor: thank you for good advice, I will use it ofter from now :)
> but I know that problem is the classes I mentioned erlier, because if
> I copy them into my project and add Serializable interface to them,
> exception desappears.
>
> But anyway here is error dump:
>
> Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
> Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
> user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
> user0_.password as password0_, user0_.username as username0_ from User
> user0_
> WARN - AutoLinkResolver - Did not find corresponding java
> class: net.smart4life.school.web.page.user.IndexPage
> INFO - RequestLogger -
> time=253,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5603,sessionstart=Tue
> Jan 04 19:10:55 CET
> 2011,requests=3,totaltime=798,activerequests=0,maxmem=467M,total=133M,used=113M
> ERROR - Objects - Error serializing object class
> net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
> = net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
> = 0]]
> java.io.NotSerializableException:
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
> - field (class
> "org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
> name: "advice", type: "class
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor")
> - object (class
> "org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
> org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e)
> - element of array (index: 1)
> - array (class "[Lorg.springframework.aop.Advisor;", size: 2)
> - field (class "org.springframework.aop.framework.AdvisedSupport",
> name: "advisorArray", type: "class
> [Lorg.springframework.aop.Advisor;")
> - object (class "org.springframework.aop.framework.ProxyFactory",
> org.springframework.aop.framework.ProxyFactory: 2 interfaces
> [net.smart4life.school.dao.Dao, java.io.Serializable]; 2 advisors
> [org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor:
> advice bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0',
> org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e];
> targetSource [SingletonTargetSource for target object
> [net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6]];
> proxyTargetClass=false; optimize=false; opaque=false;
> exposeProxy=false; frozen=false)
> - field (class
> "org.springframework.aop.framework.JdkDynamicAopProxy", name:
> "advised", type: "class
> org.springframework.aop.framework.AdvisedSupport")
> - object (class
> "org.springframework.aop.framework.JdkDynamicAopProxy",
> org.springframework.aop.framework.JdkDynamicAopProxy@1202965a)
> - field (class "java.lang.reflect.Proxy", name: "h", type: "interface
> java.lang.reflect.InvocationHandler")
> - object (class "$Proxy23",
> net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6)
> - field (class "net.smart4life.school.web.model.DomainObjectModel",
> name: "service", type: "interface net.smart4life.school.dao.Dao")
> - object (class "net.smart4life.school.web.model.DomainObjectModel",
> net.smart4life.school.web.model.DomainObjectModel@1e2e8cc:attached=false:tempModelObject=[null])
> - field (class "org.apache.wicket.Component", name: "data", type:
> "class java.lang.Object")
> - custom writeObject data (class "org.apache.wicket.Component")
> - object (class "org.apache.wicket.markup.repeater.OddEvenItem",
> [MarkupContainer [Component id = 1]])
> - element of array (index: 0)
> - array (class "[Ljava.lang.Object;", size: 2)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class
> "org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$1",
> [MarkupContainer [Component id = rows]])
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class "org.apache.wicket.markup.html.WebMarkupContainer",
> [MarkupContainer [Component id = body]])
> - element of array (index: 0)
> - array (class "[Ljava.lang.Object;", size: 3)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class "net.smart4life.school.web.component.BetterTable",
> [MarkupContainer [Component id = table]])
> - element of array (index: 1)
> - array (class "[Ljava.lang.Object;", size: 2)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - root object (class
> "net.smart4life.school.web.page.user.SuUserListPage", [Page class =
> net.smart4life.school.web.page.user.SuUserListPage, id = 1, version =
> 0])
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Roman Ilin <ro...@gmail.com>.
Thank you Igor one more time.
I found place where I load springs bean without @SpringBean.
So exception gone away.
No other web framework has such PREMIUM SUPPORT as wicket!!!
On Tue, Jan 4, 2011 at 7:20 PM, Roman Ilin <ro...@gmail.com> wrote:
> @Martin: UserDao is an Interface.
>
> @Igor: thank you for good advice, I will use it ofter from now :)
> but I know that problem is the classes I mentioned erlier, because if
> I copy them into my project and add Serializable interface to them,
> exception desappears.
>
> But anyway here is error dump:
>
> Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
> Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
> user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
> user0_.password as password0_, user0_.username as username0_ from User
> user0_
> WARN - AutoLinkResolver - Did not find corresponding java
> class: net.smart4life.school.web.page.user.IndexPage
> INFO - RequestLogger -
> time=253,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5603,sessionstart=Tue
> Jan 04 19:10:55 CET
> 2011,requests=3,totaltime=798,activerequests=0,maxmem=467M,total=133M,used=113M
> ERROR - Objects - Error serializing object class
> net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
> = net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
> = 0]]
> java.io.NotSerializableException:
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
> - field (class
> "org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
> name: "advice", type: "class
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor")
> - object (class
> "org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
> org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e)
> - element of array (index: 1)
> - array (class "[Lorg.springframework.aop.Advisor;", size: 2)
> - field (class "org.springframework.aop.framework.AdvisedSupport",
> name: "advisorArray", type: "class
> [Lorg.springframework.aop.Advisor;")
> - object (class "org.springframework.aop.framework.ProxyFactory",
> org.springframework.aop.framework.ProxyFactory: 2 interfaces
> [net.smart4life.school.dao.Dao, java.io.Serializable]; 2 advisors
> [org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor:
> advice bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0',
> org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e];
> targetSource [SingletonTargetSource for target object
> [net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6]];
> proxyTargetClass=false; optimize=false; opaque=false;
> exposeProxy=false; frozen=false)
> - field (class
> "org.springframework.aop.framework.JdkDynamicAopProxy", name:
> "advised", type: "class
> org.springframework.aop.framework.AdvisedSupport")
> - object (class
> "org.springframework.aop.framework.JdkDynamicAopProxy",
> org.springframework.aop.framework.JdkDynamicAopProxy@1202965a)
> - field (class "java.lang.reflect.Proxy", name: "h", type: "interface
> java.lang.reflect.InvocationHandler")
> - object (class "$Proxy23",
> net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6)
> - field (class "net.smart4life.school.web.model.DomainObjectModel",
> name: "service", type: "interface net.smart4life.school.dao.Dao")
> - object (class "net.smart4life.school.web.model.DomainObjectModel",
> net.smart4life.school.web.model.DomainObjectModel@1e2e8cc:attached=false:tempModelObject=[null])
> - field (class "org.apache.wicket.Component", name: "data", type:
> "class java.lang.Object")
> - custom writeObject data (class "org.apache.wicket.Component")
> - object (class "org.apache.wicket.markup.repeater.OddEvenItem",
> [MarkupContainer [Component id = 1]])
> - element of array (index: 0)
> - array (class "[Ljava.lang.Object;", size: 2)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class
> "org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$1",
> [MarkupContainer [Component id = rows]])
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class "org.apache.wicket.markup.html.WebMarkupContainer",
> [MarkupContainer [Component id = body]])
> - element of array (index: 0)
> - array (class "[Ljava.lang.Object;", size: 3)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - object (class "net.smart4life.school.web.component.BetterTable",
> [MarkupContainer [Component id = table]])
> - element of array (index: 1)
> - array (class "[Ljava.lang.Object;", size: 2)
> - field (class "org.apache.wicket.MarkupContainer", name: "children",
> type: "class java.lang.Object")
> - root object (class
> "net.smart4life.school.web.page.user.SuUserListPage", [Page class =
> net.smart4life.school.web.page.user.SuUserListPage, id = 1, version =
> 0])
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Roman Ilin <ro...@gmail.com>.
@Martin: UserDao is an Interface.
@Igor: thank you for good advice, I will use it ofter from now :)
but I know that problem is the classes I mentioned erlier, because if
I copy them into my project and add Serializable interface to them,
exception desappears.
But anyway here is error dump:
Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
user0_.password as password0_, user0_.username as username0_ from User
user0_
WARN - AutoLinkResolver - Did not find corresponding java
class: net.smart4life.school.web.page.user.IndexPage
INFO - RequestLogger -
time=253,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5603,sessionstart=Tue
Jan 04 19:10:55 CET
2011,requests=3,totaltime=798,activerequests=0,maxmem=467M,total=133M,used=113M
ERROR - Objects - Error serializing object class
net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
= net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
= 0]]
java.io.NotSerializableException:
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
- field (class
"org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
name: "advice", type: "class
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor")
- object (class
"org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor",
org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e)
- element of array (index: 1)
- array (class "[Lorg.springframework.aop.Advisor;", size: 2)
- field (class "org.springframework.aop.framework.AdvisedSupport",
name: "advisorArray", type: "class
[Lorg.springframework.aop.Advisor;")
- object (class "org.springframework.aop.framework.ProxyFactory",
org.springframework.aop.framework.ProxyFactory: 2 interfaces
[net.smart4life.school.dao.Dao, java.io.Serializable]; 2 advisors
[org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor:
advice bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0',
org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor@11d221e];
targetSource [SingletonTargetSource for target object
[net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6]];
proxyTargetClass=false; optimize=false; opaque=false;
exposeProxy=false; frozen=false)
- field (class
"org.springframework.aop.framework.JdkDynamicAopProxy", name:
"advised", type: "class
org.springframework.aop.framework.AdvisedSupport")
- object (class
"org.springframework.aop.framework.JdkDynamicAopProxy",
org.springframework.aop.framework.JdkDynamicAopProxy@1202965a)
- field (class "java.lang.reflect.Proxy", name: "h", type: "interface
java.lang.reflect.InvocationHandler")
- object (class "$Proxy23",
net.smart4life.school.dao.jpa.GenericHibernateDao@6382a6)
- field (class "net.smart4life.school.web.model.DomainObjectModel",
name: "service", type: "interface net.smart4life.school.dao.Dao")
- object (class "net.smart4life.school.web.model.DomainObjectModel",
net.smart4life.school.web.model.DomainObjectModel@1e2e8cc:attached=false:tempModelObject=[null])
- field (class "org.apache.wicket.Component", name: "data", type:
"class java.lang.Object")
- custom writeObject data (class "org.apache.wicket.Component")
- object (class "org.apache.wicket.markup.repeater.OddEvenItem",
[MarkupContainer [Component id = 1]])
- element of array (index: 0)
- array (class "[Ljava.lang.Object;", size: 2)
- field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
- object (class
"org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$1",
[MarkupContainer [Component id = rows]])
- field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
- object (class "org.apache.wicket.markup.html.WebMarkupContainer",
[MarkupContainer [Component id = body]])
- element of array (index: 0)
- array (class "[Ljava.lang.Object;", size: 3)
- field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
- object (class "net.smart4life.school.web.component.BetterTable",
[MarkupContainer [Component id = table]])
- element of array (index: 1)
- array (class "[Ljava.lang.Object;", size: 2)
- field (class "org.apache.wicket.MarkupContainer", name: "children",
type: "class java.lang.Object")
- root object (class
"net.smart4life.school.web.page.user.SuUserListPage", [Page class =
net.smart4life.school.web.page.user.SuUserListPage, id = 1, version =
0])
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Igor Vaynberg <ig...@gmail.com>.
try launching your app with:
-Dsun.io.serialization.extendedDebugInfo=true
to see exactly what object is not serializable
-igor
On Tue, Jan 4, 2011 at 9:53 AM, Roman Ilin <ro...@gmail.com> wrote:
> Nobody uses such weird thing?
>
>
>
> On Tue, Jan 4, 2011 at 12:44 AM, Roman Ilin <ro...@gmail.com> wrote:
>> Sorry, I haven't said that I get unserializable exceptions in Provider
>> for my table - list.
>>
>> public class UserDataProvider extends
>> CustomerAwareSortableDataProvider<User> {
>>
>> private final User findByExample;
>> @SpringBean
>> private UserDao userDao;
>>
>> public UserDataProvider(User findByExample) {
>> InjectorHolder.getInjector().inject(this);
>> this.findByExample = findByExample;
>> }
>> ........
>>
>> I think SpringBean annotation injects proxy for my spring bean and not
>> a direct reference.
>>
>>
>> Here is error message:
>>
>>
>> Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
>> Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
>> user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
>> user0_.password as password0_, user0_.username as username0_ from User
>> user0_
>> WARN - AutoLinkResolver - Did not find corresponding java
>> class: net.smart4life.school.web.page.user.IndexPage
>> INFO - RequestLogger -
>> time=247,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5605,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=3,totaltime=715,activerequests=0,maxmem=467M,total=162M,used=124M
>> ERROR - Objects - Error serializing object class
>> net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
>> = net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
>> = 0]]
>> java.io.NotSerializableException:
>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
>> at org.apache.wicket.Component.writeObject(Component.java:4674)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
>> at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
>> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>> at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
>> at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
>> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
>> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
>> at org.apache.wicket.Session.requestDetached(Session.java:1435)
>> at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>> INFO - RequestLogger -
>> time=32,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@1a944b0,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=4,totaltime=747,activerequests=0,maxmem=467M,total=162M,used=131M
>> INFO - RequestLogger -
>> time=8,event=null,response=[ResourceStreamRequestTarget[resourceStream=jar:file:/home/roman/.m2/repository/org/apache/wicket/wicket/1.4.15/wicket-1.4.15.jar!/org/apache/wicket/ajax/indicator.gif,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=5,totaltime=755,activerequests=2,maxmem=467M,total=162M,used=132M
>> INFO - RequestLogger -
>> time=27,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@19bb4bb,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=6,totaltime=782,activerequests=1,maxmem=467M,total=162M,used=132M
>> INFO - RequestLogger -
>> time=29,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@8ca4dd,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=7,totaltime=811,activerequests=0,maxmem=467M,total=162M,used=133M
>>
>>
>>
>>
>>
>> Regards
>>
>> Roman
>>
>> On Tue, Jan 4, 2011 at 12:17 AM, Jeremy Thomerson
>> <je...@wickettraining.com> wrote:
>>> On Mon, Jan 3, 2011 at 4:50 PM, Roman Ilin <ro...@gmail.com> wrote:
>>>> Hi *,
>>>>
>>>> in wicket 1.4.15
>>>> spring 3.0.5
>>>> hibernate 3.6
>>>> application
>>>>
>>>> if defined springs PersistenceExceptionTranslationPostProcessor bean I
>>>> get Unserializable exceptions in
>>>> different spring classes (PersistenceExceptionTranslationInterceptor,
>>>> ChainedPersistenceExceptionTranslator, ...)
>>>> After looking into spring sources I see that they are really unserializable.
>>>>
>>>> Is there some workaround to use
>>>> PersistenceExceptionTranslationPostProcessor without redefinition of
>>>> all unserializable classes?
>>>> Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
>>>
>>> No Wicket components should be directly holding a reference to
>>> anything that contains the application context, or any post
>>> processors. The error is that something is. The unserializable
>>> exception error message is very useful in seeing what is holding on to
>>> a reference that it should not. If you can't figure it out, post the
>>> whole message (including the part where Wicket draws arrows pointing
>>> to the field that isn't serializable) in this thread.
>>>
>>> --
>>> Jeremy Thomerson
>>> http://wickettraining.com
>>> Need a CMS for Wicket? Use Brix! http://brixcms.org
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Martin Sachs <sa...@gmail.com>.
hi,
are u using Interface oder Class for UserDao
i think using Interface could solve this problem.
martin
Am 04.01.2011 18:53, schrieb Roman Ilin:
> Nobody uses such weird thing?
>
>
>
> On Tue, Jan 4, 2011 at 12:44 AM, Roman Ilin <ro...@gmail.com> wrote:
>> Sorry, I haven't said that I get unserializable exceptions in Provider
>> for my table - list.
>>
>> public class UserDataProvider extends
>> CustomerAwareSortableDataProvider<User> {
>>
>> private final User findByExample;
>> @SpringBean
>> private UserDao userDao;
>>
>> public UserDataProvider(User findByExample) {
>> InjectorHolder.getInjector().inject(this);
>> this.findByExample = findByExample;
>> }
>> ........
>>
>> I think SpringBean annotation injects proxy for my spring bean and not
>> a direct reference.
>>
>>
>> Here is error message:
>>
>>
>> Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
>> Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
>> user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
>> user0_.password as password0_, user0_.username as username0_ from User
>> user0_
>> WARN - AutoLinkResolver - Did not find corresponding java
>> class: net.smart4life.school.web.page.user.IndexPage
>> INFO - RequestLogger -
>> time=247,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5605,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=3,totaltime=715,activerequests=0,maxmem=467M,total=162M,used=124M
>> ERROR - Objects - Error serializing object class
>> net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
>> = net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
>> = 0]]
>> java.io.NotSerializableException:
>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
>> at org.apache.wicket.Component.writeObject(Component.java:4674)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
>> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
>> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
>> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
>> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
>> at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
>> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>> at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
>> at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
>> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
>> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
>> at org.apache.wicket.Session.requestDetached(Session.java:1435)
>> at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
>> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
>> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>> INFO - RequestLogger -
>> time=32,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@1a944b0,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=4,totaltime=747,activerequests=0,maxmem=467M,total=162M,used=131M
>> INFO - RequestLogger -
>> time=8,event=null,response=[ResourceStreamRequestTarget[resourceStream=jar:file:/home/roman/.m2/repository/org/apache/wicket/wicket/1.4.15/wicket-1.4.15.jar!/org/apache/wicket/ajax/indicator.gif,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=5,totaltime=755,activerequests=2,maxmem=467M,total=162M,used=132M
>> INFO - RequestLogger -
>> time=27,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@19bb4bb,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=6,totaltime=782,activerequests=1,maxmem=467M,total=162M,used=132M
>> INFO - RequestLogger -
>> time=29,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@8ca4dd,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
>> Jan 04 00:43:00 CET
>> 2011,requests=7,totaltime=811,activerequests=0,maxmem=467M,total=162M,used=133M
>>
>>
>>
>>
>>
>> Regards
>>
>> Roman
>>
>> On Tue, Jan 4, 2011 at 12:17 AM, Jeremy Thomerson
>> <je...@wickettraining.com> wrote:
>>> On Mon, Jan 3, 2011 at 4:50 PM, Roman Ilin <ro...@gmail.com> wrote:
>>>> Hi *,
>>>>
>>>> in wicket 1.4.15
>>>> spring 3.0.5
>>>> hibernate 3.6
>>>> application
>>>>
>>>> if defined springs PersistenceExceptionTranslationPostProcessor bean I
>>>> get Unserializable exceptions in
>>>> different spring classes (PersistenceExceptionTranslationInterceptor,
>>>> ChainedPersistenceExceptionTranslator, ...)
>>>> After looking into spring sources I see that they are really unserializable.
>>>>
>>>> Is there some workaround to use
>>>> PersistenceExceptionTranslationPostProcessor without redefinition of
>>>> all unserializable classes?
>>>> Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
>>> No Wicket components should be directly holding a reference to
>>> anything that contains the application context, or any post
>>> processors. The error is that something is. The unserializable
>>> exception error message is very useful in seeing what is holding on to
>>> a reference that it should not. If you can't figure it out, post the
>>> whole message (including the part where Wicket draws arrows pointing
>>> to the field that isn't serializable) in this thread.
>>>
>>> --
>>> Jeremy Thomerson
>>> http://wickettraining.com
>>> Need a CMS for Wicket? Use Brix! http://brixcms.org
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Roman Ilin <ro...@gmail.com>.
Nobody uses such weird thing?
On Tue, Jan 4, 2011 at 12:44 AM, Roman Ilin <ro...@gmail.com> wrote:
> Sorry, I haven't said that I get unserializable exceptions in Provider
> for my table - list.
>
> public class UserDataProvider extends
> CustomerAwareSortableDataProvider<User> {
>
> private final User findByExample;
> @SpringBean
> private UserDao userDao;
>
> public UserDataProvider(User findByExample) {
> InjectorHolder.getInjector().inject(this);
> this.findByExample = findByExample;
> }
> ........
>
> I think SpringBean annotation injects proxy for my spring bean and not
> a direct reference.
>
>
> Here is error message:
>
>
> Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
> Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
> user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
> user0_.password as password0_, user0_.username as username0_ from User
> user0_
> WARN - AutoLinkResolver - Did not find corresponding java
> class: net.smart4life.school.web.page.user.IndexPage
> INFO - RequestLogger -
> time=247,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5605,sessionstart=Tue
> Jan 04 00:43:00 CET
> 2011,requests=3,totaltime=715,activerequests=0,maxmem=467M,total=162M,used=124M
> ERROR - Objects - Error serializing object class
> net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
> = net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
> = 0]]
> java.io.NotSerializableException:
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
> at org.apache.wicket.Component.writeObject(Component.java:4674)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
> at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
> at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
> at org.apache.wicket.Session.requestDetached(Session.java:1435)
> at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> INFO - RequestLogger -
> time=32,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@1a944b0,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
> Jan 04 00:43:00 CET
> 2011,requests=4,totaltime=747,activerequests=0,maxmem=467M,total=162M,used=131M
> INFO - RequestLogger -
> time=8,event=null,response=[ResourceStreamRequestTarget[resourceStream=jar:file:/home/roman/.m2/repository/org/apache/wicket/wicket/1.4.15/wicket-1.4.15.jar!/org/apache/wicket/ajax/indicator.gif,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
> Jan 04 00:43:00 CET
> 2011,requests=5,totaltime=755,activerequests=2,maxmem=467M,total=162M,used=132M
> INFO - RequestLogger -
> time=27,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@19bb4bb,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
> Jan 04 00:43:00 CET
> 2011,requests=6,totaltime=782,activerequests=1,maxmem=467M,total=162M,used=132M
> INFO - RequestLogger -
> time=29,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@8ca4dd,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
> Jan 04 00:43:00 CET
> 2011,requests=7,totaltime=811,activerequests=0,maxmem=467M,total=162M,used=133M
>
>
>
>
>
> Regards
>
> Roman
>
> On Tue, Jan 4, 2011 at 12:17 AM, Jeremy Thomerson
> <je...@wickettraining.com> wrote:
>> On Mon, Jan 3, 2011 at 4:50 PM, Roman Ilin <ro...@gmail.com> wrote:
>>> Hi *,
>>>
>>> in wicket 1.4.15
>>> spring 3.0.5
>>> hibernate 3.6
>>> application
>>>
>>> if defined springs PersistenceExceptionTranslationPostProcessor bean I
>>> get Unserializable exceptions in
>>> different spring classes (PersistenceExceptionTranslationInterceptor,
>>> ChainedPersistenceExceptionTranslator, ...)
>>> After looking into spring sources I see that they are really unserializable.
>>>
>>> Is there some workaround to use
>>> PersistenceExceptionTranslationPostProcessor without redefinition of
>>> all unserializable classes?
>>> Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
>>
>> No Wicket components should be directly holding a reference to
>> anything that contains the application context, or any post
>> processors. The error is that something is. The unserializable
>> exception error message is very useful in seeing what is holding on to
>> a reference that it should not. If you can't figure it out, post the
>> whole message (including the part where Wicket draws arrows pointing
>> to the field that isn't serializable) in this thread.
>>
>> --
>> Jeremy Thomerson
>> http://wickettraining.com
>> Need a CMS for Wicket? Use Brix! http://brixcms.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Roman Ilin <ro...@gmail.com>.
Sorry, I haven't said that I get unserializable exceptions in Provider
for my table - list.
public class UserDataProvider extends
CustomerAwareSortableDataProvider<User> {
private final User findByExample;
@SpringBean
private UserDao userDao;
public UserDataProvider(User findByExample) {
InjectorHolder.getInjector().inject(this);
this.findByExample = findByExample;
}
........
I think SpringBean annotation injects proxy for my spring bean and not
a direct reference.
Here is error message:
Hibernate: select count(*) as col_0_0_ from User user0_ limit ?
Hibernate: select user0_.id as id0_, user0_.is_admin as is2_0_,
user0_.full_name as full3_0_, user0_.organization_id as organiza6_0_,
user0_.password as password0_, user0_.username as username0_ from User
user0_
WARN - AutoLinkResolver - Did not find corresponding java
class: net.smart4life.school.web.page.user.IndexPage
INFO - RequestLogger -
time=247,event=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],response=BookmarkablePage[net.smart4life.school.web.page.user.SuUserListPage()],sessioninfo=user=n/a,sessionsize=5605,sessionstart=Tue
Jan 04 00:43:00 CET
2011,requests=3,totaltime=715,activerequests=0,maxmem=467M,total=162M,used=124M
ERROR - Objects - Error serializing object class
net.smart4life.school.web.page.user.SuUserListPage [object=[Page class
= net.smart4life.school.web.page.user.SuUserListPage, id = 1, version
= 0]]
java.io.NotSerializableException:
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:422)
at org.apache.wicket.Component.writeObject(Component.java:4674)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:840)
at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332)
at org.apache.wicket.Session.requestDetached(Session.java:1435)
at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
INFO - RequestLogger -
time=32,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@1a944b0,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
Jan 04 00:43:00 CET
2011,requests=4,totaltime=747,activerequests=0,maxmem=467M,total=162M,used=131M
INFO - RequestLogger -
time=8,event=null,response=[ResourceStreamRequestTarget[resourceStream=jar:file:/home/roman/.m2/repository/org/apache/wicket/wicket/1.4.15/wicket-1.4.15.jar!/org/apache/wicket/ajax/indicator.gif,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
Jan 04 00:43:00 CET
2011,requests=5,totaltime=755,activerequests=2,maxmem=467M,total=162M,used=132M
INFO - RequestLogger -
time=27,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@19bb4bb,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
Jan 04 00:43:00 CET
2011,requests=6,totaltime=782,activerequests=1,maxmem=467M,total=162M,used=132M
INFO - RequestLogger -
time=29,event=null,response=[ResourceStreamRequestTarget[resourceStream=org.apache.wicket.markup.html.JavascriptPackageResource$5@8ca4dd,fileName=null],sessioninfo=user=n/a,sessionsize=1701,sessionstart=Tue
Jan 04 00:43:00 CET
2011,requests=7,totaltime=811,activerequests=0,maxmem=467M,total=162M,used=133M
Regards
Roman
On Tue, Jan 4, 2011 at 12:17 AM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> On Mon, Jan 3, 2011 at 4:50 PM, Roman Ilin <ro...@gmail.com> wrote:
>> Hi *,
>>
>> in wicket 1.4.15
>> spring 3.0.5
>> hibernate 3.6
>> application
>>
>> if defined springs PersistenceExceptionTranslationPostProcessor bean I
>> get Unserializable exceptions in
>> different spring classes (PersistenceExceptionTranslationInterceptor,
>> ChainedPersistenceExceptionTranslator, ...)
>> After looking into spring sources I see that they are really unserializable.
>>
>> Is there some workaround to use
>> PersistenceExceptionTranslationPostProcessor without redefinition of
>> all unserializable classes?
>> Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
>
> No Wicket components should be directly holding a reference to
> anything that contains the application context, or any post
> processors. The error is that something is. The unserializable
> exception error message is very useful in seeing what is holding on to
> a reference that it should not. If you can't figure it out, post the
> whole message (including the part where Wicket draws arrows pointing
> to the field that isn't serializable) in this thread.
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> Need a CMS for Wicket? Use Brix! http://brixcms.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
Posted by Jeremy Thomerson <je...@wickettraining.com>.
On Mon, Jan 3, 2011 at 4:50 PM, Roman Ilin <ro...@gmail.com> wrote:
> Hi *,
>
> in wicket 1.4.15
> spring 3.0.5
> hibernate 3.6
> application
>
> if defined springs PersistenceExceptionTranslationPostProcessor bean I
> get Unserializable exceptions in
> different spring classes (PersistenceExceptionTranslationInterceptor,
> ChainedPersistenceExceptionTranslator, ...)
> After looking into spring sources I see that they are really unserializable.
>
> Is there some workaround to use
> PersistenceExceptionTranslationPostProcessor without redefinition of
> all unserializable classes?
> Or simply nobody uses PersistenceExceptionTranslationPostProcessor?
No Wicket components should be directly holding a reference to
anything that contains the application context, or any post
processors. The error is that something is. The unserializable
exception error message is very useful in seeing what is holding on to
a reference that it should not. If you can't figure it out, post the
whole message (including the part where Wicket draws arrows pointing
to the field that isn't serializable) in this thread.
--
Jeremy Thomerson
http://wickettraining.com
Need a CMS for Wicket? Use Brix! http://brixcms.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org