Hi Vanji

Do you remember the resolution for this issue.

Thanks
Susinda

On Sat, Jun 28, 2014 at 10:39 PM, Vanjikumaran Sivajothy <va...@wso2.com>
wrote:

> Hi,
> we notice several test cases failing in due to null point exception thrown
> by rampart fro ESB security policy scenario.
>
> Reproduce method.
> ===============
> 1) Start SecureStockquateService
> 2) Start Deploy the given synapse config and the policy.
> 3) Send a message to ESB ant stockquote -Dtrpurl=http://localhost:8280/
>
> Observation
> Request is not send to backend and error thrown at ESB [1].
>
> What could be the reason? Was there any change in rampart or Security
> component?
>
> While i am debuging the Rampart noticed in BindingBuilder class. *Result*
> is null. therefore in for loop when size checked. It is throwing the null
> point exception.
>
>
> protected void addSignatureConfirmation(RampartMessageData rmd, Vector
> sigParts) {
>
>         if (!rmd.getPolicyData().isSignatureConfirmation()) {
>
>             // If we don't require sig confirmation simply go back :-)
>             return;
>         }
>
>         Document doc = rmd.getDocument();
>
>        * Vector results = (Vector)
> rmd.getMsgContext().getProperty(WSHandlerConstants.RECV_RESULTS);*
>         /*
>          * loop over all results gathered by all handlers in the chain.
> For each handler result get
>          * the various actions. After that loop we have all signature
> results in the
>          * signatureActions vector
>          */
> Vector signatureActions = new Vector();
> for (int i = 0; i < *results.size()*; i++) {
> WSHandlerResult wshResult = (WSHandlerResult) results.get(i);
>
>
> [1]
> ERROR {org.apache.synapse.core.axis2.Axis2Sender} -  Unexpected error
> during sending message out {org.apache.synapse.core.axis2.Axis2Sender}
> java.lang.NullPointerException
>     at org.apache.rampart.builder.BindingBuilder.addSignatureConfirmation(
> BindingBuilder.java:807)
>     at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBe
> foreEncrypt(AsymmetricBindingBuilder.java:433)
>     at org.apache.rampart.builder.AsymmetricBindingBuilder.build(As
> ymmetricBindingBuilder.java:97)
>     at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
>     at org.apache.rampart.handler.RampartSender.invoke(RampartSende
> r.java:65)
>     at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>     at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
>     at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOp
> erationClient.send(DynamicAxisOperation.java:185)
>     at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOp
> erationClient.executeImpl(DynamicAxisOperation.java:167)
>     at org.apache.axis2.client.OperationClient.execute(OperationCli
> ent.java:149)
>     at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Ax
> is2FlexibleMEPClient.java:496)
>     at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender
> .java:59)
>     at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(A
> xis2SynapseEnvironment.java:338)
>     at org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractE
> ndpoint.java:333)
>     at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEnd
> point.java:59)
>     at org.apache.synapse.mediators.builtin.SendMediator.mediate(Se
> ndMediator.java:97)
>     at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
> stractListMediator.java:77)
>     at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab
> stractListMediator.java:47)
>     at org.apache.synapse.mediators.base.SequenceMediator.mediate(S
> equenceMediator.java:131)
>     at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(
> ProxyServiceMessageReceiver.java:166)
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>     at org.apache.synapse.transport.passthru.ServerWorker.processEn
> tityEnclosingRequest(ServerWorker.java:411)
>     at org.apache.synapse.transport.passthru.ServerWorker.run(Serve
> rWorker.java:183)
>     at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.
> run(NativeWorkerPool.java:172)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> ThreadPoolExecutor.java:895)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:918)
>     at java.lang.Thread.run(Thread.java:662)
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com <http://wso2.com/>*
> *Mobile:(+94)777219209*
> [image: Facebook] <https://www.facebook.com/vanjikumaran> [image: Twitter]
> <https://twitter.com/vanjikumaran> [image: LinkedIn]
> <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image:
> Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare]
> <http://www.slideshare.net/vanjikumaran>
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to