Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sanjiva Weerawarana
> How about a String[] some of them containing null String. > I encountered failure with some AppServers. I don't know > the status for Apache SOAP servlet. Should work just fine. > By the way, does Axis or SOAP do multi-ref serilization? > If I send a String[] containing identical strings, wil

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sanjiva Weerawarana
I just committed a test to handle your case correctly; I would appreciate if you could try it out! Thanks, Sanjiva., - Original Message - From: "David Turner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 9:27 PM Subject: Re: NullPointerException when ser

cvs commit: xml-soap/java/src/org/apache/soap/encoding SOAPMappingRegistry.java

2001-12-06 Thread sanjiva
sanjiva 01/12/06 11:37:44 Modified:java/src/org/apache/soap/encoding SOAPMappingRegistry.java Log: added a test so null strings get serialized correctly Revision ChangesPath 1.27 +16 -9 xml-soap/java/src/org/apache/soap/encoding/SOAPMappingRegistry.java In

RE: NullPointerException when serializing null String objects

2001-12-06 Thread Soumen Sarkar
How about a String[] some of them containing null String. I encountered failure with some AppServers. I don't know the status for Apache SOAP servlet. By the way, does Axis or SOAP do multi-ref serilization? If I send a String[] containing identical strings, will I see use of XML id/href in the w

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sanjiva Weerawarana
Sam Ruby writes: > Here's a wiredump of a client trying to pass nulls to an Apache SOAP 2.2: > > http://www.mds.rmit.edu.au/~ajk/soap/interop/r2/Apache%25202.2/echoString%25 20(null).txt > > True, it is not an Apache SOAP 2.2 client, but I am under the opinion that > SOAP is all about interoperabi

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sanjiva Weerawarana
OK, I understand the problem - the problem is that your MyClassSerializer isn't following the contract that the built-in StringSerializer expects; that it will not be invoked for null-valued strings. The way it works for null valued properties via the bean serializer for example is that the BeanSe

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sam Ruby
Sanjiva Weerawarana wrote: > > I'd still like to see what Apache SOAP 2.2 client code he wrote > that caused the null strings to break. Here's a wiredump of a client trying to pass nulls to an Apache SOAP 2.2: http://www.mds.rmit.edu.au/~ajk/soap/interop/r2/Apache%25202.2/echoString%2520(null).t

Re: NullPointerException when serializing null String objects

2001-12-06 Thread David Turner
Hi everyone, The "NullPointerException" occurs when there's a null String object that's part of the composition of another class. For instance, I have a class called "MyClass" that contains two private members: a String object and a URL object. If I leave the String object inside of "MyClass" nu

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Sanjiva Weerawarana
No, that code was not the problem code- that was just a serializer he wrote. THe point is that the string serializer (cleanSer in SOAPMappingRegistry) is not invoked directly; its invoked via ParameterSerializer which handles the null. I'd still like to see what Apache SOAP 2.2 client code he wro

Re: NullPointerException when serializing null String objects

2001-12-06 Thread Brian Gilman
Hello all, I believe Dave already forwarded the code to this list. Please take a look at this thread to find it. Best, -B --- Brian Gilman <[EMAIL PROTECTED]> Sr. Software Engineer MIT/Whitehead Inst. Center