You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by co...@covalent.net on 2002/06/27 22:55:06 UTC
Timing and null patch
The patch adds a new logger named 'org.apache.axis.TIME'. If you enable
debugging on it, it'll display various interesting times - the
Call.invoke(), time spent in the real method, time spent decoding
and sending the response.
There is also the quick fix for nil/null, and few null pointer
exceptions I get.
Costin
Re: Timing and null patch
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Sam Ruby wrote:
> > I think you can drop the 'nil' change for now - it only help
> > Axis to accept the input from ApacheSoap, but not the reverse -
> > Axis will still send nil which apacheSoap will not recognize.
>
> What version of Apache SOAP are you using? From what I can see, this
> was fixed on June 10th, and then released the same day. See
> http://cvs.apache.org/viewcvs.cgi/xml-soap/java/src/org/apache/soap/encoding/soapenc/SoapEncUtils.java
> and http://xml.apache.org/soap/releases.html#v2.3.1
I used an older version initially, but now I updated to HEAD.
Now apacheSOAP sends nil, but of course that doesn't change the
fact that Axis doesn't accept 'null' - which I think it should.
> > I have no idea how to fix this one - I think I'll just give
> > up on making apache soap talk with axis, there are too many
> > problems.
>
> Regarding interoperability, I only recall you bringing up this one
> issue. Are there others?
I sent another mail - it's about axis not sending the type for
null objects. I initially tought it's the nil/null problem, but
with some debug it seems ApacheSOAP does recognize the null
corectly, but can't determine the type.
Costin
Re: Timing and null patch
Posted by Sam Ruby <ru...@apache.org>.
costinm@covalent.net wrote:
>
> I think you can drop the 'nil' change for now - it only help
> Axis to accept the input from ApacheSoap, but not the reverse -
> Axis will still send nil which apacheSoap will not recognize.
What version of Apache SOAP are you using? From what I can see, this
was fixed on June 10th, and then released the same day. See
http://cvs.apache.org/viewcvs.cgi/xml-soap/java/src/org/apache/soap/encoding/soapenc/SoapEncUtils.java
and http://xml.apache.org/soap/releases.html#v2.3.1
> I have no idea how to fix this one - I think I'll just give
> up on making apache soap talk with axis, there are too many
> problems.
Regarding interoperability, I only recall you bringing up this one
issue. Are there others?
- Sam Ruby
Nil problem - one more step
Posted by co...@covalent.net.
After updating apacheSOAP to the latest version - it
seems it detects nil corectly, and it has another problem.
What apacheSOAP sends is:
<name xsi:type="xsd:string" xsi:null="true"/>
What Axis sends:
<name xsi:nil="true"/>
ApacheSOAP doesn't accept this input, since the type is missing
( xsd:string ) - so it fails with:
No mapping found for ':name' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException: No mapping found for
':name' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]
at org.apache.soap.rpc.Call.invoke(Call.java:296)
I have no idea who is right and who is wrong, but it's very
scarry.
Costin
Re: Timing and null patch
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Steve Loughran wrote:
> > Unfortunately - no. I just got stack traces, no time to investigate
> > the real cause for the objects beeing null - just put the checks in
> > and kept going. Sorry.
>
> would be nice if the nil patch compiled. The version of java I am using
> requires datatypes to be declared before assignment :)
Sorry, I hand-edited the diff to remove some unrelated changes.
I think you can drop the 'nil' change for now - it only help
Axis to accept the input from ApacheSoap, but not the reverse -
Axis will still send nil which apacheSoap will not recognize.
I have no idea how to fix this one - I think I'll just give
up on making apache soap talk with axis, there are too many
problems.
Costin
Re: Timing and null patch
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: <co...@covalent.net>
To: <ax...@xml.apache.org>
Sent: Thursday, June 27, 2002 3:00 PM
Subject: Re: Timing and null patch
> On Thu, 27 Jun 2002, Steve Loughran wrote:
>
> > > The patch adds a new logger named 'org.apache.axis.TIME'. If you
enable
> > > debugging on it, it'll display various interesting times - the
> > > Call.invoke(), time spent in the real method, time spent decoding
> > > and sending the response.
> > >
> > > There is also the quick fix for nil/null, and few null pointer
> > > exceptions I get.
> >
> > I'm working on it.
> >
> > Do we have any tests for the NPEs?
>
> Unfortunately - no. I just got stack traces, no time to investigate
> the real cause for the objects beeing null - just put the checks in
> and kept going. Sorry.
would be nice if the nil patch compiled. The version of java I am using
requires datatypes to be declared before assignment :)
Re: Timing and null patch
Posted by co...@covalent.net.
On Thu, 27 Jun 2002, Steve Loughran wrote:
> > The patch adds a new logger named 'org.apache.axis.TIME'. If you enable
> > debugging on it, it'll display various interesting times - the
> > Call.invoke(), time spent in the real method, time spent decoding
> > and sending the response.
> >
> > There is also the quick fix for nil/null, and few null pointer
> > exceptions I get.
>
> I'm working on it.
>
> Do we have any tests for the NPEs?
Unfortunately - no. I just got stack traces, no time to investigate
the real cause for the objects beeing null - just put the checks in
and kept going. Sorry.
Costin
Re: Timing and null patch
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: <co...@covalent.net>
To: <ax...@xml.apache.org>
Sent: Thursday, June 27, 2002 13:55
Subject: Timing and null patch
> The patch adds a new logger named 'org.apache.axis.TIME'. If you enable
> debugging on it, it'll display various interesting times - the
> Call.invoke(), time spent in the real method, time spent decoding
> and sending the response.
>
> There is also the quick fix for nil/null, and few null pointer
> exceptions I get.
I'm working on it.
Do we have any tests for the NPEs?