• Post Reply Bookmark Topic Watch Topic
  • New Topic

ERROR in WS client

 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting the following error as a client of a Web Service ,Can anybody help



Exception in thread "main" java.lang.NullPointerException
at org.apache.rampart.builder.BindingBuilder.getSignatureBuider(BindingBuilder.java:249)
at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:596)
at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:385)
at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:95)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:131)
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at cts.poc.SimpleServiceStub.echo(SimpleServiceStub.java:190)
at cts.poc.TestClient.main(TestClient.java:38)
 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically I am getting error from following line
String user = rpd.getRampartConfig().getUser(); in BuildingBuilder.java from rampart core jar in client side
What I am thinking is it is failing to get the rampartconfiguration but this configuration is available in service.xml which stay in server side so How do I solve this issue followin is my rampart configuration

<ramp:RampartConfig
xmlns:ramp="http://ws.apache.org/rampart/policy">
<ramp:passwordCallbackClass>
cts.poc.PWCBHandler
</ramp:passwordCallbackClass>

<ramp:user>apache</ramp:user>


</ramp:RampartConfig>
 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to load a separate policy .xml file from the client end with same policy in the server ,But it expect the handler class ,But this seemes to be in the server side .Please help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!