java.lang.NullPointerException

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.

  • User attempted to expire a number of builds and Bamboo crashed. When he attempted to delete them again (once server was restarted) it crashed again. Error was: {noformat} 2010-06-17 01:03:03,966 WARN [QuartzScheduler_Worker-7] [BuildExpiryBean] Unable to expire JIRAFUNC-JDK16BATCH01-1473 java.lang.NullPointerException at org.acegisecurity.context.ThreadLocalSecurityContextHolderStrategy.getContext(ThreadLocalSecurityContextHolderStrategy.java:43) at org.acegisecurity.context.SecurityContextHolder.getContext(SecurityContextHolder.java:74) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy23.removeArtifacts(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:223) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:111) at com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:112) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) {noformat} Bigger sample of the error log attached.
    via by Pramod Korathota,
  • User attempted to expire a number of builds and Bamboo crashed. When he attempted to delete them again (once server was restarted) it crashed again. Error was: {noformat} 2010-06-17 01:03:03,966 WARN [QuartzScheduler_Worker-7] [BuildExpiryBean] Unable to expire JIRAFUNC-JDK16BATCH01-1473 java.lang.NullPointerException at org.acegisecurity.context.ThreadLocalSecurityContextHolderStrategy.getContext(ThreadLocalSecurityContextHolderStrategy.java:43) at org.acegisecurity.context.SecurityContextHolder.getContext(SecurityContextHolder.java:74) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy23.removeArtifacts(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:223) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:111) at com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:112) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) {noformat} Bigger sample of the error log attached.
    via by Pramod Korathota,
    • java.lang.NullPointerException at org.acegisecurity.context.ThreadLocalSecurityContextHolderStrategy.getContext(ThreadLocalSecurityContextHolderStrategy.java:43) at org.acegisecurity.context.SecurityContextHolder.getContext(SecurityContextHolder.java:74) at com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy23.removeArtifacts(Unknown Source) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:223) at com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:111) at com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:112) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    No Bugmate found.