MOM registering to ETC fails. Invalid Security Token error message.
search cancel

MOM registering to ETC fails. Invalid Security Token error message.

book

Article ID: 4234

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

In Team Center Registration, when trying to "Test Configuration", getting the error message "Configuration test failed. Security token is invalid".

The Enterprise Team Center(ETC)'s IntroscopeEnterpriseManager.log shows:

[ERROR] [btpool0-4] [Manager.AppMap] Internal Server Error happend during controller invocation! 

com.ca.apm.crypto.InvalidConfigurationException: Given final block not properly padded 

at com.ca.apm.crypto.SecureCryptImpl.decrypt(SecureCryptImpl.java:160) 

at com.wily.introscope.appmap.crypto.SecureStoreImpl.fetchDecrypted(SecureStoreImpl.java:211) 

at com.wily.introscope.appmap.crypto.SecureStoreImpl.fetchDecrypted(SecureStoreImpl.java:216) 

at com.wily.introscope.appmap.rest.controllers.TokenController.decryptToken(TokenController.java:250) 

at com.wily.introscope.appmap.rest.controllers.TokenController.getAllTokens(TokenController.java:222) 

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 

at java.lang.reflect.Method.invoke(Unknown Source)
 

Also,  the Messages link shows

 "Error Retrieving tokens: Status code 500"

Environment

CA APM 10.3 and above on Linux/Windows.

Cause

 Selecting "Public API" type when generating a security token in WebView.
"System" type should be used instead.

Resolution

Make sure to select "System", NOT "Public API" as shown in the picture below when generating a security token.

 

<Please see attached file for image>

etc_generate_token_in_webview.png

Attachments

1558693903857000004234_sktwi1f5rjvs16mer.png get_app