You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Richard Hensley (JIRA)" <ta...@jakarta.apache.org> on 2005/08/12 21:18:54 UTC
[jira] Commented: (TAPESTRY-552) contrib:Table Beta 4 - Null Pointer Exception
[ http://issues.apache.org/jira/browse/TAPESTRY-552?page=comments#action_12318671 ]
Richard Hensley commented on TAPESTRY-552:
------------------------------------------
I think there is a bug in the hivemind declaration of the SerializableAdaptor. When my application tries to unsqueeze a serializable object, I get the following stack dump.
# org.apache.tapestry.util.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:50)
# java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
# java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
# java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
# java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
# java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
# org.apache.tapestry.util.io.SerializableAdaptor.unsqueeze(SerializableAdaptor.java:125)
# $SqueezeAdaptor_105ac0ee43f.unsqueeze($SqueezeAdaptor_105ac0ee43f.java)
# org.apache.tapestry.util.io.DataSqueezerImpl.unsqueeze(DataSqueezerImpl.java:181)
# $DataSqueezer_105ac0ee32b.unsqueeze($DataSqueezer_105ac0ee32b.java)
The relavent information is that the resolving object input stream has a null _resolver member. This is because the SerializableAdaptor has a null _resolver member. I think this is because either the hivemind delcaration is wrong, or auto-wiring is not working in this case. The hivemind declaration is in tapestry.data.xml:
<service-point id="SerializableAdaptor" interface="SqueezeAdaptor">
Converts an object down to a compressed byte stream, and then to a MIME-like string representation.
<invoke-factory>
<construct class="SerializableAdaptor"/>
</invoke-factory>
</service-point>
According to the Hivemind documentation a ClassResolver is auto-wired to a property named classResolver, SerialziableAdaptor has a property named Resolver, and therefore will not auto-wire.
Any comments on this problem?
I'm going to add a JIRA issue for this with this email in it.
> contrib:Table Beta 4 - Null Pointer Exception
> ---------------------------------------------
>
> Key: TAPESTRY-552
> URL: http://issues.apache.org/jira/browse/TAPESTRY-552
> Project: Tapestry
> Type: Bug
> Components: Contrib
> Versions: 4.0
> Environment: jdk1.5, tapestry 4 beta 4
> Reporter: Joe Goldwasser
>
> With the contrib:Table and beta 4 I am also getting Unable to convert
> ZH4sIAAAAAAAAAKVUy27TQBSdFEpAPMqjVLBEdIMQHsQ2EqKhKSCZh5oKJDbWxL4k087DzEyCu4AvYsmKD+EL2PIPXM/EzqNeJKoXtjz3zrnnnLlzf/4jm9aQrjbDiOUsHUHkWA7WmdMo1coZPsCFgYBI6gxEpIdKRL0iN2At1+qoDL3UYiwVCU9rg5DCkBerAlouc/zp+08j3EZMbshED457EybGzGnjyEGM+DTg0wqfTvGpx6cenwZ8+mYOusbpxOSmTHDrPre5YKfvmARHbsfHbMKoYGpI+4inhp1iDYdSLaVW0d4AM1jqGiVtfiZXZTLoo5QyHJP7XmBIOwSVgQHT12OTIp/nK2sNIhf3o8atKbjMmQn27QSJY8cFna1j6j2f+hH9WYL5Sn6QTQ+F1QPP0q1y+UKRt7CFDs974gfayMWiM8NaMdmpVWgFylWZjrxd2Z9wNLTGaLKryHMU8+m8Ynb34Qsbi+r4K4sXFF1yI253nzrSXbebz5RD2uVRtJH6qzUbtSt0etLgxMIFvOXN96l7WVZefkceN7Kue8o7PE3Gztr2CDG3DhSY6XrJeasoDX/UxLrEipax2vDn1/Xvv/96Xu2EZx+YG/k+jMmVJGdDmGtMR+5YEJA6yIJRvrUdufhaS8Do5SqKFHprzcD3+GqaKQu2bSdQj8q56fWs0TkLZsJTsLR3dk+nunqz2FQhEn8yR3zEJyC5yiKuHBjFsEPBRP0AfaRPoJ5C13BO598ekge11qXZXhcvylJ3/es/igg6fS8GAAA=
> back into an object in For component.
> Looks like a null pointer at
> org.apache.tapestry.util.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:50)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org