com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined'

Atlassian JIRA | Jaime Silveira [Atlassian] | 2 years ago
  1. 0

    When seeing a job's requirements in Bamboo Cloud, there's a link to elastic instance. This link is broken, as it's taking to a page like: {noformat} https://instance.atlassian.net/builds/agent/viewAgents.action?planKey=undefined {noformat} The 'planKey=undefined' seems to be a problem. Clicking the link takes to a page with an error and a stack trace. The image shows the link and the target URL: !job_requirements.png|thumbnail! This takes to this page: !error_page.png|thumbnail! *Steps to Reproduce* # Create a Cloud instance with Bamboo # Create a plan with a job # Configure the plan, by going to it and clicking 'Actions >> Configure Plan' # Select the job on the left menu (expand the stage if necessary) # Click the 'Requirements' tab # Click the 'N elastic images' link, where 'N' is the number of images *Expected outcome* * The pages with elastic images is open *Actual behavior* * The error pages with a stacktrace appears The stacktrace is: {noformat} com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined' at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.configuration.agent.ViewAgents.validateInputKey(ViewAgents.java:226) at com.atlassian.bamboo.configuration.agent.ViewAgents.doDefault(ViewAgents.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor.doIntercept(JSONValidationInterceptor.java:69) at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ... at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.IllegalArgumentException: Could not parse key 'undefined' at com.atlassian.bamboo.plan.PlanKeys.getPlanKey(PlanKeys.java:350) at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:68) at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:61) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 233 more {noformat} *Workaround* * Replace 'undefined' by the plan key in the link and access it

    Atlassian JIRA | 2 years ago | Jaime Silveira [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined'
  2. 0

    When seeing a job's requirements in Bamboo Cloud, there's a link to elastic instance. This link is broken, as it's taking to a page like: {noformat} https://instance.atlassian.net/builds/agent/viewAgents.action?planKey=undefined {noformat} The 'planKey=undefined' seems to be a problem. Clicking the link takes to a page with an error and a stack trace. The image shows the link and the target URL: !job_requirements.png|thumbnail! This takes to this page: !error_page.png|thumbnail! *Steps to Reproduce* # Create a Cloud instance with Bamboo # Create a plan with a job # Configure the plan, by going to it and clicking 'Actions >> Configure Plan' # Select the job on the left menu (expand the stage if necessary) # Click the 'Requirements' tab # Click the 'N elastic images' link, where 'N' is the number of images *Expected outcome* * The pages with elastic images is open *Actual behavior* * The error pages with a stacktrace appears The stacktrace is: {noformat} com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined' at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.configuration.agent.ViewAgents.validateInputKey(ViewAgents.java:226) at com.atlassian.bamboo.configuration.agent.ViewAgents.doDefault(ViewAgents.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor.doIntercept(JSONValidationInterceptor.java:69) at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ... at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.IllegalArgumentException: Could not parse key 'undefined' at com.atlassian.bamboo.plan.PlanKeys.getPlanKey(PlanKeys.java:350) at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:68) at com.atlassian.bamboo.configuration.agent.ViewAgents$1.create(ViewAgents.java:61) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 233 more {noformat} *Workaround* * Replace 'undefined' by the plan key in the link and access it

    Atlassian JIRA | 2 years ago | Jaime Silveira [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Could not parse key 'undefined'
  3. 0

    jira REST Plugin The ResourceConfig instance does not contain any root resource classes

    Stack Overflow | 3 years ago | bershadskiy
    com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 60#136318061

    GitHub | 1 year ago | magnlun
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
  6. 0

    NullPointerException after upgrading

    GitHub | 1 year ago | magnlun
    com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.util.concurrent.LazyReference$InitializationException

      java.lang.IllegalArgumentException: Could not parse key 'undefined'

      at com.atlassian.util.concurrent.LazyReference.getInterruptibly()
    2. com.atlassian.util
      LazyReference.get
      1. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
      2. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
      2 frames
    3. com.atlassian.bamboo
      ViewAgents.doDefault
      1. com.atlassian.bamboo.configuration.agent.ViewAgents.validateInputKey(ViewAgents.java:226)
      2. com.atlassian.bamboo.configuration.agent.ViewAgents.doDefault(ViewAgents.java:242)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
      3. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
      4. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
      5. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      6. com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:100)
      7. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      7 frames
    6. com.atlassian.bamboo
      FieldErrorUsageVerifier.intercept
      1. com.atlassian.bamboo.ww2.interceptors.FieldErrorUsageVerifier.intercept(FieldErrorUsageVerifier.java:49)
      1 frame
    7. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      1 frame
    8. com.atlassian.bamboo
      AbstractBambooInterceptor.intercept
      1. com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor.doIntercept(JSONValidationInterceptor.java:69)
      2. com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34)
      2 frames
    9. XWork
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
      1 frame