Details
-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Not a Bug
-
Affects Version/s: Apollo
-
Fix Version/s: Apollo
-
Component/s: API
-
Labels:None
-
Sprint:Sprint 12
Description
After setting up configuration file referring
http://jira.ri.thesearchagency.com/browse/AML-4049
1.Added "qos-service-url=http://aq-qa2-front1:8081/qos-service/qos" to /usr/local/tsa/api-overrides.properties
2. Property qos-service-url=http://aq-qa2-front1:8081/qos-service/qos
was already in 'usr/local/tsa/oauth/conf/aml-oauth-provider.properties'
[atul.sanagar@aq-qa2-front1 conf]$ cat /usr/local/tsa/oauth/conf/aml-oauth-provider.properties
clientDetailsDs.driverClassName=com.mysql.jdbc.Driver
clientDetailsDs.url=jdbc:mysql://aq-qa2-mysql1:3306/oauth?useUnicode=true&characterEncoding=utf8
clientDetailsDs.username=spike
clientDetailsDs.password=tar63t
clientDetailsDs.minIdle=10
clientDetailsDs.maxIdle=25
clientDetailsDs.defaultAutoCommit=true
clientDetailsDs.validationQuery=select now();
oauth-service-external-url=http://aq-qa2-front1:8080/aml-oauth-provider
qos-service-url=http://aq-qa2-front1:8081/qos-service/qos
3.Removed the property from tomcat.conf and tomcat6.conf
4.Restarted tomcat (7) and tomcat6
5.Created access token
6.Send create API merchant
Actual result:
Connection refused - internal server error 500
Snippet of tomcat log:
-------------------------------------
2016-02-23 07:57:46 INFO LoggingOutInterceptor:253 - Outbound Message
---------------------------
ID: 4
Address: http://aq-qa2-front1:8081/qos-service/qos/limits/d39ee6b950ef1171d4eae5b40f8ef4a2/qa2
Http-Method: GET
Content-Type:
Headers:
--------------------------------------
2016-02-23 07:57:46 WARN SapiRealmResolverForTests:68 - ************* THE REALM SHOULD ONLY BE NULL IN TESTING **********
2016-02-23 07:57:46 WARN SapiTokenRetriever:78 - ************* THE REALM SHOULD ONLY BE NULL IN TESTING **********
2016-02-23 07:57:46 INFO LoggingOutInterceptor:253 - Outbound Message
---------------------------
ID: 5
Address: http://localhost:27015/sapi/rest/resellers/?q=SELECT+WHERE+Name+%3D+%27null%27
Http-Method: GET
Content-Type:
Headers:
--------------------------------------
2016-02-23 07:57:46 WARN PhaseInterceptorChain:452 - Interceptor for {http://localhost:27015/sapi/rest/resellers/}WebClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:636)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1091)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)
Note: Deployment of taxonomy api throws exception!
o avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2016-02-23 06:36:53 WARN SapiTokenRetriever:78 - ************* THE REALM SHOULD ONLY BE NULL IN TESTING **********
2016-02-23 06:36:53 INFO LoggingOutInterceptor:253 - Outbound Message
---------------------------
ID: 1
Address: http://qa2.localhost:27015/sapi/rest/taxonomy/external/business-activities/
Http-Method: GET
Content-Type:
Headers: {X-TSA-Authenticate=[null], Accept=[application/json]}
--------------------------------------
2016-02-23 06:36:53 WARN PhaseInterceptorChain:452 - Interceptor for
WebClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:636)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1091)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:331)
at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:357)
Expected:
User should able to create merchants.