title: AssumeRoleResult not returning anything
body: <p>I am trying to fetch temporary security credentials and use them to push/publish data on the Kinesis stream. Please check below code for obtaining credentials.</p>
  <pre><code>private AssumeRoleResult getAssumeRoleResult() {
      AssumeRoleResult assumeRoleResult = null;
      try {
          log.info(&quot;Started to fetch AssumeRoleResult&quot;);
          BasicSessionCredentials currentRoleCredentials = getCredentialsOfCurrentRole();
          String sessionName = &quot;assumedRole_&quot; + RandomStringUtils.randomAlphanumeric(5).toUpperCase();
          region = Config.getRegion();
          AWSSecurityTokenService sts = AWSSecurityTokenServiceClientBuilder.standard()
                                  .withCredentials(new AWSStaticCredentialsProvider(currentRoleCredentials)).withRegion(region)
                                  .build();
          String roleArn = Configurations.ROLE_ARN;
          assumeRoleResult = sts.assumeRole(new AssumeRoleRequest().withRoleArn(roleArn)
                                          .withDurationSeconds(AWS_KINESIS_SESSION_DURATION)
                                          .withRoleSessionName(sessionName));
          log.info(&quot;Your AssumeRoleResult is&quot; + assumeRoleResult.toString())
          return assumeRoleResult;
      } catch(Exception e) {
          log.error(&quot;Failed to get AssumeRoleResult with error : {}&quot;, e.getMessage());
          e.printStackTrace();
      }
  }
  
  
  private BasicSessionCredentials getCredentialsOfCurrentRole() throws JSONException {
      // Code to fetch IAM credentials for current role
  }
  </code></pre>
  <p>But when I checked the logs, found that <strong>assumeRoleResult</strong> is not returning anything.(I am not seeing any log saying &quot;<em>Your AssumeRoleResult is</em>&quot; and also not exception found).</p>
  <p>Can you please let me know what what may be issue here.</p>