You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Andrew Simpson <an...@callbase.com> on 2002/01/10 15:40:20 UTC

J2EE RI - roll your own serializer

Anyone successfully written their own object serializer on J2EE RI?

Everything works fine until I try to use my own serializer, then ...

HTTP/1.1 500 Internal Server Error
...
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>org/apache/soap/util/xml/Serializer</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>


Is there any way that I can get more information about the error above?

Is there soap logging I can enable?

Things that work right:

1) soap deploy/undeploy works fine
2) invoking methods from a client works fine with standard apache
serializers
3) rpcrouter works fine if I refer to the standard apache bean serializer in
my deployment descriptor; the bean I'm encoding is returned in the XML to
the client.
4) soap can definitely find my serializer class, as if I change the
deployment descriptor to something incorrect, it complains that it can't
find it.
5) If I copy the apache bean serializer src code to my own class name,
import org.apache.soap.encoding.soapenc.*, and refer to it in the deployment
descriptor, I still get the same error.  Again, soap can definitely find
this class.

Details: soap2.2, Sun J2EE RI, using the Stateless session bean provider to
invoke a session bean method that returns the bean that I'd like to
serialize.

Any suggestions before I go insane?

Thanks,

Andrew