java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" }

Atlassian JIRA | Benito Picarelli | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary After installing the HipChat plugin from Marketplace and trying to configure the integration, there is an error that stops the installation of the plugin to complete. h3. Steps to Reproduce # Install JIRA # Install the latest HipChat plugin # Go to {{Administration > System > Hip Chat integration}} and hit Connect (to automatically link to your Cloud instance of HipChat) h3. Expected Results # The installation finishes successfully. h3. Actual Results # The interface of your Cloud instance appears with an option to Install the left components # An error pops asking you to re-install the plugin # The following appears on the logs: {noformat} 2015-03-31 15:04:36,389 http-bio-8080-exec-5 WARN lester.crawford 904x74444x1 i771jt 10.86.148.113,127.0.0.1 /rest/hipchat/integration/latest/installation/complete [plugins.hipchat.rest.HipChatLinkResource] Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } at com.atlassian.hipchat.api.DefaultClientResponseMapper.makeResourceError(DefaultClientResponseMapper.java:109) at com.atlassian.hipchat.api.DefaultClientResponseMapper.access$100(DefaultClientResponseMapper.java:22) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:32) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:28) at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:205) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:477) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:475) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:826) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:161) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:146) at com.google.common.util.concurrent.AbstractFuture.done(AbstractFuture.java:235) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:172) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.hipchat.api.ResourceMapper$9.onComplete(ResourceMapper.java:152) at com.sun.jersey.api.client.AsyncWebResource$3.done(AsyncWebResource.java:746) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at com.sun.jersey.client.impl.async.FutureClientResponseListener.onComplete(FutureClientResponseListener.java:107) at com.sun.jersey.api.client.AsyncWebResource$6.done(AsyncWebResource.java:804) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at java.util.concurrent.FutureTask.run(FutureTask.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Workaround 1) go to HipChat Integration page in JIRA, and Remove the integration . Don't worry that all your mappings to projects and rooms are not deleted 2) go to https://hipchat.com/admin/addons 3) There shouldn't be any JIRA's plugin. If there is, just Uninstall it. 4) With both environments clean (with no JIRA addon installed in HC) you can do the installation again, and things should work

    Atlassian JIRA | 2 years ago | Benito Picarelli [Atlassian]
    java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" }
  2. 0

    h3. Summary After installing the HipChat plugin from Marketplace and trying to configure the integration, there is an error that stops the installation of the plugin to complete. h3. Steps to Reproduce # Install JIRA # Install the latest HipChat plugin # Go to {{Administration > System > Hip Chat integration}} and hit Connect (to automatically link to your Cloud instance of HipChat) h3. Expected Results # The installation finishes successfully. h3. Actual Results # The interface of your Cloud instance appears with an option to Install the left components # An error pops asking you to re-install the plugin # The following appears on the logs: {noformat} 2015-03-31 15:04:36,389 http-bio-8080-exec-5 WARN lester.crawford 904x74444x1 i771jt 10.86.148.113,127.0.0.1 /rest/hipchat/integration/latest/installation/complete [plugins.hipchat.rest.HipChatLinkResource] Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } at com.atlassian.hipchat.api.DefaultClientResponseMapper.makeResourceError(DefaultClientResponseMapper.java:109) at com.atlassian.hipchat.api.DefaultClientResponseMapper.access$100(DefaultClientResponseMapper.java:22) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:32) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:28) at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:205) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:477) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:475) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:826) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:161) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:146) at com.google.common.util.concurrent.AbstractFuture.done(AbstractFuture.java:235) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:172) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.hipchat.api.ResourceMapper$9.onComplete(ResourceMapper.java:152) at com.sun.jersey.api.client.AsyncWebResource$3.done(AsyncWebResource.java:746) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at com.sun.jersey.client.impl.async.FutureClientResponseListener.onComplete(FutureClientResponseListener.java:107) at com.sun.jersey.api.client.AsyncWebResource$6.done(AsyncWebResource.java:804) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at java.util.concurrent.FutureTask.run(FutureTask.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Workaround 1) go to HipChat Integration page in JIRA, and Remove the integration . Don't worry that all your mappings to projects and rooms are not deleted 2) go to https://hipchat.com/admin/addons 3) There shouldn't be any JIRA's plugin. If there is, just Uninstall it. 4) With both environments clean (with no JIRA addon installed in HC) you can do the installation again, and things should work

    Atlassian JIRA | 2 years ago | Benito Picarelli
    java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" }
  3. 0

    h3. Summary After installing the HipChat plugin from Marketplace and trying to configure the integration, there is an error that stops the installation of the plugin to complete. h3. Steps to Reproduce # Install JIRA # Install the latest HipChat plugin # Go to {{Administration > System > Hip Chat integration}} and hit Connect (to automatically link to your Cloud instance of HipChat) h3. Expected Results # The installation finishes successfully. h3. Actual Results # The interface of your Cloud instance appears with an option to Install the left components # An error pops asking you to re-install the plugin # The following appears on the logs: {noformat} 2015-03-31 15:04:36,389 http-bio-8080-exec-5 WARN lester.crawford 904x74444x1 i771jt 10.86.148.113,127.0.0.1 /rest/hipchat/integration/latest/installation/complete [plugins.hipchat.rest.HipChatLinkResource] Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" } at com.atlassian.hipchat.api.DefaultClientResponseMapper.makeResourceError(DefaultClientResponseMapper.java:109) at com.atlassian.hipchat.api.DefaultClientResponseMapper.access$100(DefaultClientResponseMapper.java:22) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:32) at com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:28) at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:205) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:477) at com.google.common.util.concurrent.Futures$4.apply(Futures.java:475) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:826) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:161) at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:146) at com.google.common.util.concurrent.AbstractFuture.done(AbstractFuture.java:235) at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:172) at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53) at com.atlassian.hipchat.api.ResourceMapper$9.onComplete(ResourceMapper.java:152) at com.sun.jersey.api.client.AsyncWebResource$3.done(AsyncWebResource.java:746) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at com.sun.jersey.client.impl.async.FutureClientResponseListener.onComplete(FutureClientResponseListener.java:107) at com.sun.jersey.api.client.AsyncWebResource$6.done(AsyncWebResource.java:804) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380) at java.util.concurrent.FutureTask.set(FutureTask.java:229) at java.util.concurrent.FutureTask.run(FutureTask.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Workaround 1) go to HipChat Integration page in JIRA, and Remove the integration . Don't worry that all your mappings to projects and rooms are not deleted 2) go to https://hipchat.com/admin/addons 3) There shouldn't be any JIRA's plugin. If there is, just Uninstall it. 4) With both environments clean (with no JIRA addon installed in HC) you can do the installation again, and things should work

    Atlassian JIRA | 2 years ago | Benito Picarelli
    java.lang.Exception: Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      Error converting response to [com.atlassian.hipchat.api.session.GenerateTokenResult] (status code 400): { "error": "invalid_scope", "error_description": "Requested scopes are not allowed for this client" }

      at com.atlassian.hipchat.api.DefaultClientResponseMapper.makeResourceError()
    2. com.atlassian.hipchat
      DefaultClientResponseMapper$1.apply
      1. com.atlassian.hipchat.api.DefaultClientResponseMapper.makeResourceError(DefaultClientResponseMapper.java:109)
      2. com.atlassian.hipchat.api.DefaultClientResponseMapper.access$100(DefaultClientResponseMapper.java:22)
      3. com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:32)
      4. com.atlassian.hipchat.api.DefaultClientResponseMapper$1.apply(DefaultClientResponseMapper.java:28)
      4 frames
    3. Guava
      SettableFuture.set
      1. com.google.common.base.Functions$FunctionComposition.apply(Functions.java:205)
      2. com.google.common.util.concurrent.Futures$4.apply(Futures.java:477)
      3. com.google.common.util.concurrent.Futures$4.apply(Futures.java:475)
      4. com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:826)
      5. com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
      6. com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:161)
      7. com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:146)
      8. com.google.common.util.concurrent.AbstractFuture.done(AbstractFuture.java:235)
      9. com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:172)
      10. com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
      10 frames
    4. com.atlassian.hipchat
      ResourceMapper$9.onComplete
      1. com.atlassian.hipchat.api.ResourceMapper$9.onComplete(ResourceMapper.java:152)
      1 frame
    5. jersey-client
      AsyncWebResource$3.done
      1. com.sun.jersey.api.client.AsyncWebResource$3.done(AsyncWebResource.java:746)
      1 frame
    6. Java RT
      FutureTask.set
      1. java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380)
      2. java.util.concurrent.FutureTask.set(FutureTask.java:229)
      2 frames
    7. jersey-client
      AsyncWebResource$6.done
      1. com.sun.jersey.client.impl.async.FutureClientResponseListener.onComplete(FutureClientResponseListener.java:107)
      2. com.sun.jersey.api.client.AsyncWebResource$6.done(AsyncWebResource.java:804)
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:380)
      2. java.util.concurrent.FutureTask.set(FutureTask.java:229)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:270)
      4. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      5. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      8. java.lang.Thread.run(Thread.java:745)
      8 frames