com.atlassian.util.concurrent.LazyReference$InitializationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Jaime Silveira [Atlassian],
  • 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
    via by Jaime Silveira [Atlassian],
  • GitHub comment 60#136318061
    via GitHub by magnlun
    ,
  • {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-483].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel} When building SR with maven 3.x (or SDK 5.x) the will be bundled also servlet-api-2.5 and log4j-1.2.17. That will cause following error at loading (probably due that servlet-api). That was an error I’ve started this thread. 2014-07-28 08:55:36,106 ajp-bio-8309-exec-6 ERROR jko 535x37x5 5vtbeb 192.168.7.141 /rest/scriptrunner/1.0/message [atlassian.plugin .servlet.DefaultServletModuleManager] Unable to create filter com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilter(DefaultServletModuleManager.java:389) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilters(DefaultServletModuleManager.java:213) at com.atlassian.plugins.rest.module.servlet.DefaultRestServletModuleManager.getFilters(DefaultRestServletModuleManager.java :117) <+5> (ServletFilterModuleContainerFilter.java:75) (ServletFilterModuleContainerFilter.java:63) (DelegatingPluginFilter.java:7 8) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
    via by Jamie Echlin,
  • I get an Exception in the logs, but actual error messages are lost {code} INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM' 2015-05-15 12:24:05,623 http-bio-8090-exec-1 ERROR admin 744x1812x1 aoeygx 0:0:0:0:0:0:0:1 /rest/psmq/queues [atlassian.plugin.servlet.DefaultServletModuleManager] Unable to create new reference LazyLoadedFilterReference{descriptor=com.atlassian.psmq:psmq-rest-filter (null), filterConfig=com.atlassian.plugin.servlet.filter.PluginFilterConfig@3f7adf7b} com.atlassian.util.concurrent.LazyReference$InitializationException: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getInstance(DefaultServletModuleManager.java:428) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilter(DefaultServletModuleManager.java:419) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilters(DefaultServletModuleManager.java:254) at com.atlassian.plugins.rest.module.servlet.DefaultRestServletModuleManager.getFilters(DefaultRestServletModuleManager.java:138) ... many more Caused by: com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:795) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.initiate(RestDelegatingServletFilter.java:184) at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:339) at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:605) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:207) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:394) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:744) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.initServletContainer(RestDelegatingServletFilter.java:99) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.init(RestDelegatingServletFilter.java:64) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.init(DelegatingPluginFilter.java:43) at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedFilterReference.create(DefaultServletModuleManager.java:507) at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedFilterReference.create(DefaultServletModuleManager.java:491) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 191 more {code} The only place you could see the error messages is in the debug session: {noformat} SEVERE: Producing media type conflict. The resource methods public javax.ws.rs.core.Response com.atlassian.psmq.internal.rest.resources.QueuesResources.getQueueById(long) and public javax.ws.rs.core.Response com.atlassian.psmq.internal.rest.resources.QueuesResources.getQueueById(java.lang.String) can produce the same media type {noformat}
    via by Renat Sabitov,
  • If you deleted shared credentials and a respository was using it, when you try to load, or delete the repo you get. Deleting the shared credential will throw the exception and this will only take effect after refreshing the browser {noformat} 2013-11-27 20:40:17,516 ERROR [http-bio-10520-exec-18] [ExceptionMappingInterceptor] java.lang.IllegalArgumentException: Shared Credentials with id '327683 are not found com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalArgumentException: Shared Credentials with id '327683 are not found at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.bamboo.repository.RepositoryDataImpl.getRepository(RepositoryDataImpl.java:136) at com.atlassian.bamboo.plan.branch.ChainBranchUtils.getSubstitutedVcsBranchName(ChainBranchUtils.java:57) at com.atlassian.bamboo.ww2.beans.DecoratedNavObjectFactoryImpl.getSubstitutedBranchName(DecoratedNavObjectFactoryImpl.java:155) at com.atlassian.bamboo.ww2.beans.DecoratedPlan.<init>(DecoratedPlan.java:59) at com.atlassian.bamboo.ww2.beans.DecoratedNavObjectFactoryImpl.decoratePlan(DecoratedNavObjectFactoryImpl.java:100) at com.atlassian.bamboo.ww2.interceptors.NavigationAwareInterceptor.getNavObject(NavigationAwareInterceptor.java:148) at com.atlassian.bamboo.ww2.interceptors.NavigationAwareInterceptor.doIntercept(NavigationAwareInterceptor.java:87) at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor$1.call(AbstractBambooInterceptor.java:36) at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor$1.call(AbstractBambooInterceptor.java:32) at com.atlassian.bamboo.util.BambooProfilingUtils.withUtilTimerStack(BambooProfilingUtils.java:49) at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:31) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.atlassian.bamboo.ww2.interceptors.BuildResultsSummaryAwareInteceptor.doIntercept(BuildResultsSummaryAwareInteceptor.java:70) {noformat} Also if you try to access a plan that was using that repository, you get the same exception
    via by Sultan Maiyaki [Atlassian],
  • The following error covered [here|https://confluence.atlassian.com/display/JIRAKB/%27java.lang.IllegalStateException%3A+Bundle+is+uninstalled%27+Error+Due+to+Incompatible+Plugin] often means that there's been a plugin startup failure or there's an incompatible plugin on the customers JIRA instance that's failed. Stack trace: {code} 2013-10-21 16:14:02,343 http-bio-8080-exec-30 ERROR anonymous 974x380982x8 4cg4eu 10.1.50.244 /rest/usermanagement/1/user/group/nested [atlassian.plugin.servlet.DefaultServletModuleManager] Unable to create filter com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Bundle is uninstalled at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilter(DefaultServletModuleManager.java:389) at com.atlassian.plugin.servlet.DefaultServletModuleManager.getFilters(DefaultServletModuleManager.java:213) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:75) <+34> (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:84) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:45) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:74) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:84) (JiraFirstFilter.java:57) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:225) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:168) (ErrorReportValve.java:98) (StandardEngineValve.java:118) (AccessLogValve.java:927) (CoyoteAdapter.java:407) (AbstractHttp11Processor.java:1001) (AbstractProtocol.java:585) (JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: Bundle is uninstalled at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1574) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887) at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor.loadClass(BundleClassLoaderAccessor.java:46) at com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper.loadClass(OsgiPluginInstalledHelper.java:63) at com.atlassian.plugin.osgi.factory.OsgiPlugin.loadClass(OsgiPlugin.java:204) at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:27) at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:100) at com.atlassian.plugin.servlet.descriptors.ServletFilterModuleDescriptor.getModule(ServletFilterModuleDescriptor.java:135) <+1> (DelegatingPluginFilter.java:35) at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedFilterReference.create(DefaultServletModuleManager.java:441) at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedFilterReference.create(DefaultServletModuleManager.java:427) at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321) at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143) ... 41 more {code} The *danger* here is that the above stacktrace fills the logs over and over again, in some cases flooding them so much disk space has become a concern for the customer. Two ideas to fix this: * Make the errors less verbose (only really needs to come up once per busted plugin) * Warn the admin user in the header what is happening (and possibly which plugin is causing it) so that they can fix this themselves not requiring support intervention (this may need to be a feature)
    via by Michael Andreacchio,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,