java.lang.NullPointerException

Atlassian JIRA | Pramod Korathota | 7 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

    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.

    Atlassian JIRA | 7 years ago | Pramod Korathota
    java.lang.NullPointerException
  2. 0

    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.

    Atlassian JIRA | 7 years ago | Pramod Korathota
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.acegisecurity.context.ThreadLocalSecurityContextHolderStrategy.getContext()
    2. Acegi Security Core
      SecurityContextHolder.getContext
      1. org.acegisecurity.context.ThreadLocalSecurityContextHolderStrategy.getContext(ThreadLocalSecurityContextHolderStrategy.java:43)
      2. org.acegisecurity.context.SecurityContextHolder.getContext(SecurityContextHolder.java:74)
      2 frames
    3. com.atlassian.bamboo
      AuthorityOverrideMethodSecurityInterceptor.invoke
      1. com.atlassian.bamboo.security.acegi.intercept.aopalliance.AuthorityOverrideMethodSecurityInterceptor.invoke(AuthorityOverrideMethodSecurityInterceptor.java:20)
      1 frame
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    9. Unknown
      $Proxy23.removeArtifacts
      1. $Proxy23.removeArtifacts(Unknown Source)
      1 frame
    10. com.atlassian.bamboo
      BuildExpiryScheduler$BuildExpiryJob.execute
      1. com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireBuild(BuildExpiryBean.java:223)
      2. com.atlassian.bamboo.build.expiry.BuildExpiryBean.expireAllBuilds(BuildExpiryBean.java:111)
      3. com.atlassian.bamboo.build.expiry.BuildExpiryScheduler$BuildExpiryJob.execute(BuildExpiryScheduler.java:112)
      3 frames
    11. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      1 frame
    12. com.atlassian.bamboo
      SystemAuthorizedThreadPool$1.run
      1. com.atlassian.bamboo.quartz.SystemAuthorizedThreadPool$1.run(SystemAuthorizedThreadPool.java:36)
      1 frame
    13. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      1 frame