axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject [xml-security] Fixes for C14n problems, namespace usage in wsdl tests.
Date Fri, 25 Jan 2002 18:46:17 GMT
Ted,
Checked in. Please cross check. 

Thanks,
dims

--- "Theodore W. Leung" <twleung@sauria.com> wrote:
> Dims,
> 
> Attached are 2 patches
> 
> The src-patch fixes problems with our use of C14n and has the server
> check whether an incoming message claims to be signed 
> 
> The test-patch changes some of the namespaces used in the wsdl test to
> be absolute -- this was causing c14n to break.
> 
> The test suite can deploy all the examples with transparent signing. 
> However, when it actually comes to invoking the tests via 
> MultithreadTestCase#Run I'm seeing some weird NPE's.  It looks like the 
> 
>     [junit] java.lang.NullPointerException
>     [junit]     at
> org.apache.axis.encoding.SerializationContext.serialize(Seria
> lizationContext.java:431)
>     [junit]     at
> org.apache.axis.message.RPCParam.serialize(RPCParam.java:132)
>     [junit]     at
> org.apache.axis.message.RPCElement.outputImpl(RPCElement.java
> :199)
>     [junit]     at
> org.apache.axis.message.MessageElement.output(MessageElement.
> java:484)
>     [junit]     at
> org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.
> java:438)
>     [junit]     at
> org.apache.axis.message.MessageElement.output(MessageElement.
> java:484)
>     [junit]     at
> org.apache.axis.message.MessageElement.toString(MessageElemen
> t.java:512)
>     [junit]     at java.lang.String.valueOf(String.java(Compiled Code))
>     [junit]     at java.lang.StringBuffer.append(StringBuffer.java:376)
>     [junit]     at
> samples.security.SignedSOAPEnvelope.init(SignedSOAPEnvelope.j
> ava:124)
>     [junit]     at
> samples.security.SignedSOAPEnvelope.<init>(SignedSOAPEnvelope
> .java:101)
>     [junit]     at
> samples.security.ClientSigningHandler.invoke(ClientSigningHan
> dler.java:99)
>     [junit]     at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
> nStrategy.java:71)
>     [junit]     at
> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:151)
>     [junit]     at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:118)
>     [junit]     at
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:168)
>     [junit]     at org.apache.axis.client.Call.invoke(Call.java:1384)
>     [junit]     at org.apache.axis.client.Call.invoke(Call.java:1201)
>     [junit]     at org.apache.axis.client.Call.invoke(Call.java:1131)
>     [junit]     at org.apache.axis.client.Call.invoke(Call.java:756)
>     [junit] env = null
>     [junit]     at
> samples.addr.AddressBookSOAPBindingStub.addEntry(AddressBookS
> OAPBindingStub.java:166)
>     [junit]     at
> test.wsdl.multithread.MultithreadTestCase$Run.run(Multithread
> TestCase.java:67)
>     [junit]     at java.lang.Thread.run(Thread.java:498)
> 
> It looks like the envelope that comes out of the request message is
> null. I'm trying to track this down next
> 
> Is there a simple way to run only a single functional test inside the
> server?  Changing the fileset element inside the junit task of
> junit-functional didn't seem to have any effect.  Right now it is taking
> upwards of an hour to deploy all of the functional tests (which has to
> happen before I get a failure) -- and this is on a 1GHz P3.
> 
> I'm out of town until Sunday night, so I'll pick up there.


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

Mime
View raw message