Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 8206 invoked from network); 1 Dec 2004 21:05:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 21:05:46 -0000 Received: (qmail 5927 invoked by uid 500); 1 Dec 2004 21:05:39 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 5896 invoked by uid 500); 1 Dec 2004 21:05:38 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 5885 invoked by uid 99); 1 Dec 2004 21:05:38 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=MANY_EXCLAMATIONS,PLING_QUERY,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of davanum@gmail.com designates 64.233.170.195 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 13:05:38 -0800 Received: by rproxy.gmail.com with SMTP id q1so126951rnf for ; Wed, 01 Dec 2004 13:05:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=SN/JtjhZNcN13HhNFZ7Yc87toL8hZSd1Pqj5d2c3Uw8jT50gCVGMxqSAOQC7xeTaQWnUSaqsi1JJaqqYpvq5VP81RtFR6PM71ZnrUn2l0d7Mw2xUHQWYzYX00cRYXM/k4ZLUWMykJu7ZZhoWRjG1UptJw0zO7Ay4D1+CaR466bU= Received: by 10.38.164.59 with SMTP id m59mr424662rne; Wed, 01 Dec 2004 13:05:33 -0800 (PST) Received: by 10.38.171.49 with HTTP; Wed, 1 Dec 2004 13:05:33 -0800 (PST) Message-ID: <19e0530f04120113057722920@mail.gmail.com> Date: Wed, 1 Dec 2004 16:05:33 -0500 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-dev@ws.apache.org, Venkat Reddy Subject: Re: SAAJ 1.2 not implemented yet ?!?! In-Reply-To: <19e0530f04120112481dc6d5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <64EE0DBA15556341AF577C102564465D7FAE@admin-server.javector.com> <19e0530f04120112481dc6d5@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Venkat, Can you please review the code once more for SAAJ loopholes? thanks, dims On Wed, 1 Dec 2004 15:48:28 -0500, Davanum Srinivas wrote: > I can tell u where to start...Start with a junit test case (say > http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-axis/java/test/saaj/TestText.java), > then make changes to it which are similar to what you want to do (run > a xsl on the dom Element? and/or exercise the getAttributeNode method > itself) then see if you can come up with a patch (or) just open a jira > bug report with just the test case itself. > > thanks, > dims > > > > > On Wed, 1 Dec 2004 14:12:58 -0500, Mark D. Hansen > wrote: > > I just wasted a day trying to figure out what was causing a Xalan NPE deep inside my Axis application. Since I'm casting MessageElements to org.w3c.dom.Element all the time, I am supposing the SAAJ 1.2 is implemented. > > > > After posting for help to the Xalan mail list (and wasting the time of some good people who tried to help me), I decided to take a closer look at what was going on with MessageElement. Digging into the source code, I find this: > > > > /** > > * This unimplemented operation is meand to return an attribute as a node > > * @see org.w3c.dom.Element#getAttributeNode(String) > > * @param attrName > > * @return null, always. > > * @todo Fix this for SAAJ 1.2 Implementation. marked as deprecated to warn people > > * it is broken > > * @deprecated this is not implemented > > */ > > public Attr getAttributeNode(String attrName) { > > return null; > > } > > > > So SAAJ 1.2 is no longer working!?! I see that the method is marked as deprecated, but to have saved myself the lost day of work and aggrevation, I would have had to compile the src and actually pay attention to the deprecation warnings. > > > > Of course, I should have read the release-notes.html for RC2, so I go there afterward to see what else I missed. The only thing about SAAJ that I find is this: > > > > (in bold) "This version has passed the JAX-RPC 1.1 and SAAJ 1.2 TCKs" > > > > I'm sure that is true, but kind of misleading given the state of the getAttributeNode(...) methods in MessageElement. > > > > I hate to flame like this, because I appreciate what a huge amount of work it is to keep Axis moving forward. Also, I'd like to submit a patch to fix this stuff - but I don't understand the MessageElement class well enough to do that. So, I guess that I am just frustrated. I'd like to keep using Axis, but stuff like this is really getting me down. > > > > > -- > Davanum Srinivas - http://webservices.apache.org/~dims/ > -- Davanum Srinivas - http://webservices.apache.org/~dims/