Skip to Content
0
Former Member
Jul 25, 2018 at 07:24 AM

/hybris-cis-mock-subscription-web/sub/cisSubscriptionMock is giving 401 with Hybris 6.7 and teco add 6.7

153 Views

I have installed OOB telco add on hybris6.7 with Telco 6.7. However when I am placing the order on billing section getting the following error

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | org.springframework.web.client.HttpClientErrorException: 401

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:86) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:708) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:661) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:415) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at com.hybris.cis.client.rest.subscription.oauth.service.impl.Oauth2ClientImpl.getToken(Oauth2ClientImpl.java:51) ~[hybris-cis-subscription-rest-client-6.7.0.0-RC1.jar:?]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at com.hybris.cis.client.rest.subscription.oauth.OauthTokenRestCallInterceptor.intercept(OauthTokenRestCallInterceptor.java:47) ~[hybris-cis-subscription-rest-client-6.7.0.0-RC1.jar:?]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:88) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at com.hybris.cis.client.rest.common.tenant.StaticTenantRestCallInterceptor.intercept(StaticTenantRestCallInterceptor.java:37) ~[hybris-cis-subscription-rest-client-6.7.0.0-RC1.jar:?]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:88) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:72) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE] INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:539) ~[spring-web-4.3.17.RELEASE.jar:4.3.17.RELEASE]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at com.hybris.cis.client.rest.subscription.impl.SubscriptionClientImpl.hpfUrl(SubscriptionClientImpl.java:257) ~[hybris-cis-subscription-rest-client-6.7.0.0-RC1.jar:?]

INFO | jvm 1 | main | 2018/07/25 10:26:44.174 | at de.hybris.platform.integration.cis.subscription.service.impl.DefaultCisSubscriptionService.hpfUrl(DefaultCisSubscriptionService.java:81) ~[classes/:?]

in local.properties it is using

subscription.client.endpoint.uri=https\://localhost\:9802/hybris-cis-mock-subscription-web/sub/cisSubscriptionMock

I have changed the port.

Anyone help what I am missing here.

On billing section the card in not getting populated

Thanks