# Exception while building authentication client

**URL:** <https://devforum.okta.com/t/exception-while-building-authentication-client/8787>\
**Category:** Questions\
**Created:** [April 7, 2020, 12:26pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787 "2020-04-07T12:26:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![psahoo](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@psahoo](https://devforum.okta.com/u/psahoo)\
**Post date:** [April 7, 2020, 12:26pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787/1 "2020-04-07T12:26:02Z")

</div>

I am getting following exception while creating an AuthenticationClient using okta-auth-java.  
Exception in thread “main” java.lang.NoSuchMethodError: ‘com.okta.sdk.impl.config.ClientConfiguration com.okta.sdk.impl.config.ClientConfiguration.setRetryMaxElapsed(int)’

Any help??

---

<div class="post-metadata">

**Author:** ![psr007](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@psr007](https://devforum.okta.com/u/psr007)\
**Post date:** [August 28, 2020, 2:30pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787/2 "2020-08-28T14:30:03Z")

</div>

i have same issue, any one figured this out?

Thanks.

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [August 30, 2020, 9:45pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787/3 "2020-08-30T21:45:22Z")

</div>

do you have a code widget to show how you try to initiate the client?

---

<div class="post-metadata">

**Author:** ![psr007](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@psr007](https://devforum.okta.com/u/psr007)\
**Post date:** [September 3, 2020, 4:59pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787/4 "2020-09-03T16:59:45Z")

</div>

This issue was happening for me because okta call was being blocked by the firewall and it was being retried. once i fixed the firewall issue by adding okta domain to be allowed from my server, this error is resolved. hope this helps someone.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 25, 2024, 6:32pm UTC](https://devforum.okta.com/t/exception-while-building-authentication-client/8787/5 "2024-01-25T18:32:09Z")

</div>

Closed on January 25, 2024, 6:32pm UTC


