axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: SAAJ 1.2 not implemented yet ?!?!
Date Fri, 03 Dec 2004 20:49:40 GMT
look into test-reports\TEST-test.encoding.PackageTests.xml and see the
stack traces.

thanks,
dims


On Fri, 3 Dec 2004 15:38:37 -0500, Mark D. Hansen
<m.hansen23@verizon.net> wrote:
> Dims,
> 
> Thanks.  But, I can't get "ant all-tests" to run on Axis1_2RC2.  Maybe I
> missing some needed components?  Here is the output that I get from ant.
> Further down is the "ant printEnv" output.
> 
> -- Mark
> 
> junit:
>     [junit] Running test.RPCDispatch.PackageTests
>     [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0.988
> sec
>     [junit] Running test.badWSDL.PackageTests
>     [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 1.525
> sec
>     [junit] Running test.chains.PackageTests
>     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 1.676
> sec
>     [junit] Running test.client.PackageTests
>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 4.838
> sec
>     [junit] Running test.components.PackageTests
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.769
> sec
>     [junit] Running test.concurrency.PackageTests
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4.68 sec
>     [junit] Running test.dynamic.PackageTests
>     [junit] Tests run: 0, Failures: 0, Errors: 0, Time elapsed: 0.38 sec
>     [junit] Running test.encoding.PackageTests
>     [junit] Tests run: 270, Failures: 0, Errors: 24, Time elapsed:
> 11.545 sec
> 
> BUILD FAILED
> /usr/local/dev/axis-1_2RC2/build.xml:326: The following error occurred
> while executing this line:
> /usr/local/dev/axis-1_2RC2/buildTest.xml:109: Test
> test.encoding.PackageTests failed
> 
> Total time: 1 minute 30 seconds
> mhansen@debian01:/usr/local/dev/axis-1_2RC2$
> 
> In case it helps, here are the results from "ant printEnv":
> 
> mhansen@debian01:/usr/local/dev/axis-1_2RC2$ ant printEnv
> Buildfile: build.xml
> 
> axis-clover-setenv:
> 
> axis-clover-setup:
> 
> setenv:
> 
> check-javadoc-needed:
> 
> printEnv:
>      [echo]
> -----------------------------------------------------------------
>      [echo]        Build environment for Axis 1.2RC2 [2003]
>      [echo]
> -----------------------------------------------------------------
>      [echo] Building with Apache Ant version 1.6.2 compiled on September
> 28 2004
>      [echo] using build file /usr/local/dev/axis-1_2RC2/build.xml
>      [echo] Java 1.4.2_05 located at
> /usr/share/non-apt/j2sdk1.4.2_05/jre
>      [echo]
> -----------------------------------------------------------------
>      [echo] --- Flags (Note: If the {property name} is displayed,
>      [echo]            then the component is not present)
> 
>      [echo] basedir = /usr/local/dev/axis-1_2RC2
>      [echo] axis.home = /usr/local/dev/axis-1_2RC2
>      [echo] build.dir = /usr/local/dev/axis-1_2RC2/build
>      [echo] build.dest = /usr/local/dev/axis-1_2RC2/build/classes
>      [echo] lib.dir = /usr/local/dev/axis-1_2RC2/lib
> 
>      [echo] === Required Libraries (for building code) ===
>      [echo] activation.present=true
>      [echo] commons-discovery.present=true
>      [echo] commons-logging.present=true
>      [echo] wsdl4j.present=true
> 
>      [echo] --- Optional Libraries (for building code) ---
>      [echo] attachments.present=true
>      [echo] bsf.present=${bsf.present}
>      [echo] castor.present=${castor.present}
>      [echo] commons-httpclient.present=true
>      [echo] commons-net.present=${commons-net.present}
>      [echo] ibm.jsse.present=${ibm.jsse.present}
>      [echo] jimi.present=${jimi.present}
>      [echo] jms.present=true
>      [echo] jetty.present=${jetty.present}
>      [echo] jdk14.jsse.present=true
>      [echo] mailapi.present=true
>      [echo] regexp.present=true
>      [echo] security.present=${security.present}
>      [echo] servlet.present=true
>      [echo] sun.jsse.present=true
> 
>      [echo] --- Miscellaneous (for running tests) ---
>      [echo] axis-ant.present=true
>      [echo] clover.present=${clover.present}
>      [echo] httpunit.present=${httpunit.present}
>      [echo] junit.present=true
>      [echo] log4j.present=true
> 
>      [echo] --- Property values ---
>      [echo] debug=on
>      [echo] nowarn=off
>      [echo] source=1.3
>      [echo] deprecation=true
>      [echo] build.compiler=${build.compiler}
>      [echo] javac.fork=no
>      [echo] axis_nojavadocs=${env.axis_nojavadocs}
>      [echo]
> javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Document
> BuilderFactoryImpl
>      [echo]
> javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFacto
> ryImpl
>      [echo]
> sun.boot.class.path=/usr/share/non-apt/j2sdk1.4.2_05/jre/lib/rt.jar:/usr
> /share/non-apt/j2sdk1.4.2_05/jre/lib/i18n.jar:/usr/share/non-apt/j2sdk1.
> 4.2_05/jre/lib/sunrsasign.jar:/usr/share/non-apt/j2sdk1.4.2_05/jre/lib/j
> sse.jar:/usr/share/non-apt/j2sdk1.4.2_05/jre/lib/jce.jar:/usr/share/non-
> apt/j2sdk1.4.2_05/jre/lib/charsets.jar:/usr/share/non-apt/j2sdk1.4.2_05/
> jre/classes
> 
>      [echo] -- Network Settings ---
> 
>      [echo] http.proxyHost =
>      [echo] http.proxyPort =
>      [echo] http.nonProxyHosts = localhost
>      [echo] http.proxyUser =
>      [echo] http.proxyPassword =
> 
>      [echo] -- Test Environment for AXIS ---
> 
>      [echo] test.functional.remote = no
>      [echo] test.functional.local = yes
>      [echo] test.functional.both = no
>      [echo] test.functional.reportdir =
> /usr/local/dev/axis-1_2RC2/test-reports
>      [echo] test.functional.SimpleAxisPort = 8080
>      [echo] test.functional.TCPListenerPort = 8088
>      [echo] test.functional.fail = yes
> 
>      [echo] -- Internal Message Exchange ---
> 
>      [echo] compile.ime = ${compile.ime}
> 
>      [echo] classpath:
> \usr\local\dev\axis-1_2RC2\${xercesImpl.jar};\usr\local\dev\axis-1_2RC2\
> ${xmlParserAPIs.jar};\usr\local\dev\axis-1_2RC2\${xalan-unbundled.jar};\
> usr\local\dev\axis-1_2RC2\${xml-apis.jar};\usr\local\dev\axis-1_2RC2\${x
> erces.jar};\usr\local\dev\axis-1_2RC2\test\lib\jakarta-oro-2.0.5.jar;\us
> r\local\dev\axis-1_2RC2\test\lib\xmlunit1.0.jar;\usr\local\dev\axis-1_2R
> C2\lib\jsse.jar;\usr\local\dev\axis-1_2RC2\lib\JimiProClasses.zip;\usr\s
> hare\non-apt\jwsdp-1.4\jwsdp-shared\lib\activation.jar;\usr\local\dev\ax
> is-1_2RC2\lib\mailapi.jar;\usr\share\non-apt\j2sdk1.4.2_05\lib\tools.jar
> ;\usr\share\non-apt\SUNWappserver\lib\j2ee.jar;\usr\share\non-apt\junit3
> .8.1\junit.jar;\usr\local\dev\axis-1_2RC2\${servlet.jar};\usr\local\dev\
> axis-1_2RC2\lib\axis-ant.jar;\usr\local\dev\axis-1_2RC2\lib\axis.jar;\us
> r\local\dev\axis-1_2RC2\lib\commons-discovery.jar;\usr\local\dev\axis-1_
> 2RC2\lib\commons-httpclient-3.0-alpha1.jar;\usr\local\dev\axis-1_2RC2\li
> b\commons-logging.jar;\usr\local\dev\axis-1_2RC2\lib\jaxrpc.jar;\usr\loc
> al\dev\axis-1_2RC2\lib\log4j-1.2.8.jar;\usr\local\dev\axis-1_2RC2\lib\sa
> aj.jar;\usr\local\dev\axis-1_2RC2\lib\wsdl4j.jar;\usr\share\ant\lib\ant-
> launcher.jar;\usr\share\java\xmlParserAPIs.jar;\usr\share\java\xercesImp
> l.jar;\usr\share\ant\lib\ant-apache-bcel.jar;\usr\share\ant\lib\ant-antl
> r.jar;\usr\share\ant\lib\ant-apache-log4j.jar;\usr\share\ant\lib\ant-apa
> che-bsf.jar;\usr\share\ant\lib\ant-apache-regexp.jar;\usr\share\ant\lib\
> ant-apache-oro.jar;\usr\share\ant\lib\ant-trax.jar;\usr\share\ant\lib\an
> t.jar;\usr\share\ant\lib\ant-commons-logging.jar;\usr\share\ant\lib\ant-
> javamail.jar;\usr\share\ant\lib\ant-jdepend.jar;\usr\share\ant\lib\ant-n
> odeps.jar;\usr\share\ant\lib\ant-swing.jar;\usr\share\ant\lib\junit.jar;
> \usr\share\ant\lib\ant-jsch.jar;\usr\share\ant\lib\ant-apache-resolver.j
> ar;\usr\share\ant\lib\ant-bootstrap.jar;\usr\share\ant\lib\ant-commons-n
> et.jar;\usr\share\ant\lib\jsch-0.1.18.jar;\usr\share\ant\lib\ant-junit.j
> ar;\usr\local\dev\axis-1_2RC2\build\classes;\usr\local\dev\axis-1_2RC2\b
> uild\tools;\usr\local\dev\axis-1_2RC2\build\lib\axis-ant.jar
> 
> BUILD SUCCESSFUL
> Total time: 2 seconds
> mhansen@debian01:/usr/local/dev/axis-1_2RC2$
> 
> 
> 
> 
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > Sent: Friday, December 03, 2004 2:54 PM
> > To: axis-dev@ws.apache.org
> > Subject: Re: SAAJ 1.2 not implemented yet ?!?!
> >
> >
> > Mark,
> >
> > It should be just you right now poking into these...if you can run
> > "ant clean all-tests" and get all the tests to pass, that should be
> > good enough and i have other things i can test with.
> >
> > thanks,
> > dims
> >
> >
> > On Fri, 3 Dec 2004 14:35:17 -0500, Mark D. Hansen
> > <m.hansen23@verizon.net> wrote:
> > > OK - I am working on this and will post to JIRA when I have
> > something.
> > > It seems to be non-trivial and involves changes to several
> > classes in
> > > the org.apache.axis.message package.
> > >
> > > If any developers are working on major changes to classes in the
> > > org.apache.axis.message package, please let me know.
> > >
> > > If any of you developers can give me a quick rundown of
> > problems you are
> > > aware of with the SAAJ implementation (specifically DOM interfaces
> > > inherited via NodeImpl and MessageElement) please let me know.
> > >
> > > What is the best way to test this package to make sure my
> > changes don't
> > > break anything?
> > >
> > > -- Mark
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > > > Sent: Wednesday, December 01, 2004 3:48 PM
> > > > To: axis-dev@ws.apache.org
> > > > Subject: Re: SAAJ 1.2 not implemented yet ?!?!
> > > >
> > > >
> > > > 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
> > > > <m.hansen23@verizon.net> 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/
> >
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message