You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by datazuul <ra...@pixotec.de> on 2013/04/09 22:38:00 UTC

IHeaderResponse serialization problem Wicket 6

After migrating my webapp from 1.5.7 to 6.6.0
(thus changing all
org.apache.wicket.markup.html.IHeaderResponse
to
org.apache.wicket.markup.head.IHeaderResponse)

I fire up my webapp with embedded Jetty and get an

java.lang.NoClassDefFoundError:
org/apache/wicket/markup/html/IHeaderResponse
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
        at java.lang.Class.getDeclaredMethod(Class.java:1952)
        at
java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1411)
        at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:69)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:481)
        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:455)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:455)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:352)
        at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1130)
        at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
        at java.util.ArrayList.writeObject(ArrayList.java:710)
        at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
        at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)

How comes?
I already made a clean install, deleted all cookies, ...
Seems that some old serialization artifacts around?

In Java code there is no import of the old package name anymore...
I also updated the static serial version uid of my basepage...



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IHeaderResponse-serialization-problem-Wicket-6-tp4657862.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IHeaderResponse serialization problem Wicket 6

Posted by datazuul <ra...@pixotec.de>.
you were right:
I analyzed my dependency tree for visural-wicket and other
thirdparty-wicket-libraries and removed them.
after this, the problem disappeared.

Thank you!



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IHeaderResponse-serialization-problem-Wicket-6-tp4657862p4657881.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IHeaderResponse serialization problem Wicket 6

Posted by datazuul <ra...@pixotec.de>.
Hi Martin,

the thirdparty libraries hint seems to be a good one.
I use visural wicket for 1.5... (and some others like wiquery...)
I will remove this dependency/ies and come back with the result later (when
I am at home and can verify this)

thanks, so far!



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IHeaderResponse-serialization-problem-Wicket-6-tp4657862p4657869.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IHeaderResponse serialization problem Wicket 6

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Maybe you use a third party library that is compiled against Wicket 1.5.x.
Additionally it seems there is a hard reference to an instance of
IHeaderResponse and it is being serialized with the page. The problem is
during serialization, not deserialization.
When you find it make sure that you remove this hard ref - there is no need
of it.


On Tue, Apr 9, 2013 at 11:38 PM, datazuul <ra...@pixotec.de> wrote:

> After migrating my webapp from 1.5.7 to 6.6.0
> (thus changing all
> org.apache.wicket.markup.html.IHeaderResponse
> to
> org.apache.wicket.markup.head.IHeaderResponse)
>
> I fire up my webapp with embedded Jetty and get an
>
> java.lang.NoClassDefFoundError:
> org/apache/wicket/markup/html/IHeaderResponse
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
>         at java.lang.Class.getDeclaredMethod(Class.java:1952)
>         at
> java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1411)
>         at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:69)
>         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:481)
>         at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:455)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:455)
>         at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:352)
>         at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1130)
>         at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
>         at java.util.ArrayList.writeObject(ArrayList.java:710)
>         at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
>         at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
>
> How comes?
> I already made a clean install, deleted all cookies, ...
> Seems that some old serialization artifacts around?
>
> In Java code there is no import of the old package name anymore...
> I also updated the static serial version uid of my basepage...
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/IHeaderResponse-serialization-problem-Wicket-6-tp4657862.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>