Hi Azeez,

On Tue, Oct 27, 2015 at 2:53 PM, Afkham Azeez <az...@wso2.com> wrote:

> Dinusha can you check?
>

Issue is there is no keystore configured for transaction service. If you
add default wso2carbon keystore to resources directory of transaction
service and re-build the jar and deploy, this cart checkout operation get
success.
Will do a pull by adding default keystore to transaction service. Else we
need to set system variable with keystore details.

Regards,
Dinusha.

>
> On Tue, Oct 27, 2015 at 2:47 PM, Sagara Gunathunga <sag...@wso2.com>
> wrote:
>
>>
>> This happen because TXN service return HTTP 500 with empty body, this is
>> the expected behaviour from FE when it get error code from BE services. I
>> have added new log message to show HTTP status code, in this case I can see
>> following log.
>>
>> *SEVERE: TXN service return code is  500 , hence can't proceed with the
>> response*
>>
>> I also can see following error on TXN service running locally, please
>> make sure TXN service return HTTP 200 with a valid confirmation code.
>>
>>
>>
>> 2015-10-27 12:15:17 INFO  MicroservicesRegistry:54 - Added HTTP Service:
>> org.wso2.carbon.mss.examples.petstore.transaction.TxnService@491cc5c9
>>
>> 2015-10-27 12:15:17 INFO  NettyListener:82 - Netty Listener starting on
>> port 8090
>>
>> 2015-10-27 12:15:17 INFO  MicroservicesRunner:69 - Microservices server
>> started in 507ms
>>
>> 2015-10-27 12:17:00 ERROR RequestRouter:104 - Exception caught in channel
>> processing.
>>
>> java.lang.IllegalArgumentException: The public RSA key must not be null
>>
>> at com.nimbusds.jose.crypto.RSASSAVerifier.<init>(RSASSAVerifier.java:75)
>>
>> at
>> org.wso2.carbon.mss.security.JWTSecurityInterceptor.verifySignature(JWTSecurityInterceptor.java:92)
>>
>> at
>> org.wso2.carbon.mss.security.JWTSecurityInterceptor.preCall(JWTSecurityInterceptor.java:70)
>>
>> at
>> org.wso2.carbon.mss.internal.router.HttpResourceHandler.getDestinationMethod(HttpResourceHandler.java:265)
>>
>> at
>> org.wso2.carbon.mss.internal.router.RequestRouter.handleRequest(RequestRouter.java:78)
>>
>> at
>> org.wso2.carbon.mss.internal.router.RequestRouter.channelRead0(RequestRouter.java:65)
>>
>> at
>> org.wso2.carbon.mss.internal.router.RequestRouter.channelRead0(RequestRouter.java:40)
>>
>> at
>> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
>>
>> at
>> io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
>>
>> at
>> io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
>>
>> at
>> io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
>>
>> at
>> io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
>>
>> at
>> io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
>>
>> at
>> io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
>>
>> at
>> io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
>>
>> at
>> io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
>>
>> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
>>
>> at
>> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
>>
>> at
>> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> Thanks !
>>
>> On Tue, Oct 27, 2015 at 11:37 AM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> In the store-fe pods, I am seeing the following exception:
>>>
>>> 27-Oct-2015 06:05:01.412 1100 [http-nio-8080-exec-10]
>>> com.sun.faces.context.ExceptionHandlerImpl.log JSF1073:
>>> javax.faces.FacesException caught during processing of INVOKE_APPLICATION 5
>>> : UIComponent-ClientId=, Message=#{checkoutBean.checkout()}:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>> 27-Oct-2015 06:05:01.413 1100 [http-nio-8080-exec-10]
>>> com.sun.faces.context.ExceptionHandlerImpl.log #{checkoutBean.checkout()}:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>>  javax.faces.FacesException: #{checkoutBean.checkout()}:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>> at
>>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:89)
>>>
>>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>>>
>>> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
>>>
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>> org.wso2.carbon.mss.examples.petstore.util.fe.security.LoginFilter.doFilter(LoginFilter.java:51)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>>>
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
>>>
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>>>
>>> at
>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
>>>
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
>>>
>>> at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
>>>
>>> at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
>>>
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
>>>
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>
>>> at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>> Caused by: javax.faces.FacesException: #{checkoutBean.checkout()}:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>> at
>>> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
>>>
>>> at javax.faces.component.UICommand.broadcast(UICommand.java:315)
>>>
>>> at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
>>>
>>> at
>>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
>>>
>>> at
>>> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
>>>
>>> ... 27 more
>>>
>>> Caused by: javax.faces.el.EvaluationException:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>> at
>>> javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
>>>
>>> at
>>> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
>>>
>>> ... 31 more
>>>
>>> Caused by:
>>> org.wso2.carbon.mss.examples.petstore.util.fe.model.OrderServiceException:
>>> Can't proceed with the order
>>>
>>> at
>>> org.wso2.carbon.mss.examples.petstore.util.fe.client.TxnServiceClient.addOrder(TxnServiceClient.java:69)
>>>
>>> at
>>> org.wso2.carbon.mss.examples.petstore.util.fe.dao.PaymentService.order(PaymentService.java:43)
>>>
>>> at
>>> org.wso2.carbon.mss.examples.petstore.util.fe.view.CheckoutBean.checkout(CheckoutBean.java:56)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>
>>> at org.apache.el.parser.AstValue.invoke(AstValue.java:247)
>>>
>>> at
>>> org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
>>>
>>> at
>>> com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
>>>
>>> at
>>> javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
>>>
>>> ... 32 more
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **az...@wso2.com* <az...@wso2.com>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> <http://twitter.com/afkham_azeez>
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;    http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to