Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

OutboundMappingException: Caught Exception while creating OAuth2



Error occurs when using OAuth2.0 security on the Pega application with Connect-REST.

Error Messages

[tp-apr-8080-exec-116] [STANDARD] [ ] [AppStack:01.01.01] (internal.mgmt.Executable) ERROR|Rule-Connect-REST.AppStack-Int-Package.Version.Method - Exception Caught Exception while creating OAuth2 client at ~[printegrint.jar:?]  at
        .setCredentials( ~[printegrint.jar:?] 
        .configure( ~[printegrint.jar:?]  
Caused by: java.lang.NumberFormatException: For input string: "1+"  at java.lang.NumberFormatException.forInputString( ~[?:1.8.0_171]  at java.lang.Integer.parseInt( ~[?:1.8.0_171]  at ~[prpublic.jar:?]  at com.pega.pegarules.integration.engine.internal.util.OAuth2CryptoUtils.decrypt( ~[printegrint.jar:?]  at com.pega.pegarules.integration.engine.internal.util.OAuth2CryptoUtils.decryptAccessToken( ~[printegrint.jar:?]  at com.pega.pegarules.integration.engine.internal.util.OAuth2Utils.getDecrytedAccessToken( ~[printegrint.jar:?]  at com.pega.pegarules.integration.engine.internal.util.OAuth2Utils.decryptAccessToken( ~[printegrint.jar:?]  at com.pega.pegarules.integration.engine.internal.client.oauth2.OAuth2ClientImpl.getAccessToken( ~[printegrint.jar:?]  at com.pega.pegarules.integration.engine.internal.client.oauth2.OAuth2ClientImpl.updateHttpRequestWithAccessToken(

Steps to Reproduce

Invoke a service that uses OAuth.

Root Cause

The token size exceeded the 4000 database column size where the pr_data_token.pyaccesstoken is stored.


As a local-change, increase the column size to greater than 4000 to accommodate tokens.

Published May 7, 2019 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us