Mikhail

I've seen this error before and in my experience its because the
rampart policy isn't quite right.
When I get a chance I'll take a look.

Ruchith - any ideas?

Paul

On 5/17/07, Mikhail Maroukhine <[EMAIL PROTECTED]> wrote:
Paul

Yes I'm trying to create proper rampart policy file for the .net service
client but I always get the next error :

Exception in thread "main" java.lang.NullPointerException
        at
org.apache.rampart.util.RampartUtil.addWsuIdToElement(RampartUtil.java:463)
        at
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:277)
        at
org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:85)
        at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:129)
        at
org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:59)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:651)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
        at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
        at org.tempuri.JobStub.ListJobAreas(JobStub.java:185)
        at org.tempuri.Client.main(Client.java:42)

For example I just copy policy file from policy sample01 and run client
with it (without .net policy).
I expected that server rejects such message but rampart fails before
that with error above.
I even tried empty policy file:

 <wsp:Policy
  xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";
  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>

 </wsp:Policy>

But result is same.


Mikhail


Paul Fremantle wrote:
> Mikhail
>
> My rampart.xml example was just that. A *cut-down* example!
>
> I think you need more in there. Have you looked at the samples that
> come with Rampart?
>
> Paul
>

--
WBR,
Mikhail


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to