java.lang.NullPointerException

Atlassian JIRA | Diego Berrueta | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If Crowd is started with a valid license which does not have a maintenance expiry date, it refuses to start and throws a NPE: {noformat} java.lang.NullPointerException @400000005163152e33f1a15c at com.atlassian.crowd.manager.license.CrowdLicenseManagerImpl.isBuildWithinMaintenancePeriod(CrowdLicenseManagerImpl.java:262) @400000005163152e33f1a544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000005163152e33f1d80c at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000005163152e33f1dbf4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000005163152e33f1dfdc at java.lang.reflect.Method.invoke(Method.java:597) @400000005163152e33f1e3c4 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) @400000005163152e33f1eb94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) @400000005163152e33f1ef7c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) @400000005163152e33f1f364 at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) @400000005163152e33f20ad4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) @400000005163152e33f20ebc at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) @400000005163152e33f212a4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) @400000005163152e33f23d9c at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) @400000005163152e33f24184 at $Proxy16.isBuildWithinMaintenancePeriod(Unknown Source) @400000005163152e33f2456c at com.atlassian.crowd.console.listener.StartupListener.isLicenseValid(StartupListener.java:214) @400000005163152e33f24954 at com.atlassian.crowd.console.listener.StartupListener.contextInitialized(StartupListener.java:58) @400000005163152e33f25124 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205) {noformat}

    Atlassian JIRA | 4 years ago | Diego Berrueta
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.crowd.manager.license.CrowdLicenseManagerImpl.isBuildWithinMaintenancePeriod()
    2. com.atlassian.crowd
      CrowdLicenseManagerImpl.isBuildWithinMaintenancePeriod
      1. com.atlassian.crowd.manager.license.CrowdLicenseManagerImpl.isBuildWithinMaintenancePeriod(CrowdLicenseManagerImpl.java:262)
      1 frame
    3. 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
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    5. com.atlassian.spring
      SpringProfilingInterceptor.invoke
      1. com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      1 frame
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    9. Unknown
      $Proxy16.isBuildWithinMaintenancePeriod
      1. $Proxy16.isBuildWithinMaintenancePeriod(Unknown Source)
      1 frame
    10. com.atlassian.crowd
      StartupListener.contextInitialized
      1. com.atlassian.crowd.console.listener.StartupListener.isLicenseValid(StartupListener.java:214)
      2. com.atlassian.crowd.console.listener.StartupListener.contextInitialized(StartupListener.java:58)
      2 frames
    11. Glassfish Core
      StandardContext.listenerStart
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
      1 frame