Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM 6.5.2 Smart Tagging (Similarity Search) throws exception when validating configuration in JMX console

Avatar

Level 2

Hi All,

I am trying to set up Smart Tagging on AEM 6.5.2 using these instructions:  https://helpx.adobe.com/uk/experience-manager/6-5/assets/using/config-smart-tagging.html

In the Validate the configuration section , clicking on validateConfigs() fails , and the errors shown below are reported in error.log

Does anyone know how I can resolve this or diagnose it further?

Thank you for your time.

_____________________________________________________________________________________________________

 

28.01.2020 15:53:16.125 *INFO* [qtp732388807-3143] com.adobe.granite.auth.oauth.AccessTokenProvider requires a new access token
28.01.2020 15:53:16.326 *ERROR* [qtp732388807-3143] com.adobe.granite.auth.oauth.AccessTokenProvider failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
28.01.2020 15:53:16.329 *INFO* [qtp732388807-3143] com.adobe.granite.auth.oauth.AccessTokenProvider requires a new access token
28.01.2020 15:53:16.480 *ERROR* [qtp732388807-3143] com.adobe.granite.auth.oauth.AccessTokenProvider failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
28.01.2020 15:53:16.481 *ERROR* [qtp732388807-3143] com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl Error while getting service version
java.io.IOException: failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.tradeAccessToken(AccessTokenProviderImpl.java:668) [com.adobe.granite.auth.oauth:1.5.44]
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.tradeAccessToken(AccessTokenProviderImpl.java:492) [com.adobe.granite.auth.oauth:1.5.44]
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.getAccessToken(AccessTokenProviderImpl.java:450) [com.adobe.granite.auth.oauth:1.5.44]
at com.day.cq.dam.similaritysearch.internal.util.OAuthUtil.getAccessToken(OAuthUtil.java:140) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.prepareHeaders(SimilaritySearchServiceImpl.java:679) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.access$100(SimilaritySearchServiceImpl.java:116) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl$2.call(SimilaritySearchServiceImpl.java:470) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl$2.call(SimilaritySearchServiceImpl.java:462) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.getServiceVersion(SimilaritySearchServiceImpl.java:462) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchMBeanImpl.validateConfigs(SimilaritySearchMBeanImpl.java:218) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
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:498)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
...
28.01.2020 15:53:16.483 *ERROR* [qtp732388807-3143] com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl Error while getting service version
java.util.concurrent.ExecutionException: com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: java.io.IOException: failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:135)
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2344)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2316)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2278)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2193)
at com.google.common.cache.LocalCache.get(LocalCache.java:3932)
at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4721)
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.getServiceVersion(SimilaritySearchServiceImpl.java:462) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchMBeanImpl.validateConfigs(SimilaritySearchMBeanImpl.java:218) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
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:498)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
...
Caused by: com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: java.io.IOException: failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl$2.call(SimilaritySearchServiceImpl.java:483) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl$2.call(SimilaritySearchServiceImpl.java:462) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4724)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3522)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2315)
... 79 common frames omitted
Caused by: java.io.IOException: failed to get access token from authorization server status: 400 response: {"error_description":"Could not match JWT signature to any of the bindings","error":"invalid_token"}
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.tradeAccessToken(AccessTokenProviderImpl.java:668) [com.adobe.granite.auth.oauth:1.5.44]
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.tradeAccessToken(AccessTokenProviderImpl.java:492) [com.adobe.granite.auth.oauth:1.5.44]
at com.adobe.granite.auth.oauth.impl.AccessTokenProviderImpl.getAccessToken(AccessTokenProviderImpl.java:450) [com.adobe.granite.auth.oauth:1.5.44]
at com.day.cq.dam.similaritysearch.internal.util.OAuthUtil.getAccessToken(OAuthUtil.java:140) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.prepareHeaders(SimilaritySearchServiceImpl.java:679) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl.access$100(SimilaritySearchServiceImpl.java:116) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
at com.day.cq.dam.similaritysearch.internal.impl.SimilaritySearchServiceImpl$2.call(SimilaritySearchServiceImpl.java:470) [com.day.cq.dam.cq-dam-similaritysearch:5.12.16]
... 83 common frames omitted

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please refer to the following documentation to set up Smart Tags integration

https://techrevel.blog/2019/10/21/smart-tags/ 

It covers all the steps from generating credentials to setting up integration in AEM.


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Please refer to the following documentation to set up Smart Tags integration

https://techrevel.blog/2019/10/21/smart-tags/ 

It covers all the steps from generating credentials to setting up integration in AEM.


Aanchal Sikka