com.atlassian.license.LicenseException: License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73)

Atlassian JIRA | Jaime Silveira [Atlassian] | 3 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

    When a user creates an instance that contains Confluence in OnDemand (without choosing the ‘Team Calendar’ add-on), the instance is created and Team Calendar is enabled by defauld. A license error happens, since the add-on is enabled and there is not license. The image below shows the error: !teams_calendar_error.png! It reads: Invalid license specified When going to the management of add-ons, the add on is enabled (the button ‘disable’ is there), but the user also has the option to start a free trial, as shown below: !team_calendars_management.png! The following error appears in the logs: {noformat} @40000000540712b137b1ca24 com.atlassian.license.LicenseException: License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73) @40000000540712b137b1ed4c at com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.getProductLicenseString(LicenseAccessor.java:271) @40000000540712b137b1ed4c at com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.isOnDemandLicense(LicenseAccessor.java:220) @40000000540712b137b1f134 at com.atlassian.confluence.extra.calendar3.condition.OnDemandWebItemCondition.shouldDisplay(OnDemandWebItemCondition.java:19) @40000000540712b137b1f904 at com.atlassian.confluence.extra.calendar3.condition.CalendarCondition.shouldDisplay(CalendarCondition.java:21) @40000000540712b137b1fcec at com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition.shouldDisplay(BaseConfluenceCondition.java:38) @40000000540712b137b20c8c at com.atlassian.plugin.web.conditions.AndCompositeCondition.shouldDisplay(AndCompositeCondition.java:14) @40000000540712b137b20c8c at com.atlassian.plugin.web.conditions.AndCompositeCondition.shouldDisplay(AndCompositeCondition.java:14) @40000000540712b137b21074 at com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172) @40000000540712b137b21844 at com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103) @40000000540712b137b21c2c at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager.getDisplayableItems(ConfluenceWebInterfaceManager.java:88) @40000000540712b137b21c2c at sun.reflect.GeneratedMethodAccessor2934.invoke(Unknown Source) @40000000540712b137b223fc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000540712b137b223fc at java.lang.reflect.Method.invoke(Method.java:597) … {noformat} *Steps to reproduce* * Create a Confluence instance in OnDemand without Team Calendar * Access it and ‘Team Calendar’ will be there * Click ‘Calendar’ and the error occurs

    Atlassian JIRA | 3 years ago | Jaime Silveira [Atlassian]
    com.atlassian.license.LicenseException: License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73)
  2. 0

    When a user creates an instance that contains Confluence in OnDemand (without choosing the ‘Team Calendar’ add-on), the instance is created and Team Calendar is enabled by defauld. A license error happens, since the add-on is enabled and there is not license. The image below shows the error: !teams_calendar_error.png! It reads: Invalid license specified When going to the management of add-ons, the add on is enabled (the button ‘disable’ is there), but the user also has the option to start a free trial, as shown below: !team_calendars_management.png! The following error appears in the logs: {noformat} @40000000540712b137b1ca24 com.atlassian.license.LicenseException: License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73) @40000000540712b137b1ed4c at com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.getProductLicenseString(LicenseAccessor.java:271) @40000000540712b137b1ed4c at com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.isOnDemandLicense(LicenseAccessor.java:220) @40000000540712b137b1f134 at com.atlassian.confluence.extra.calendar3.condition.OnDemandWebItemCondition.shouldDisplay(OnDemandWebItemCondition.java:19) @40000000540712b137b1f904 at com.atlassian.confluence.extra.calendar3.condition.CalendarCondition.shouldDisplay(CalendarCondition.java:21) @40000000540712b137b1fcec at com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition.shouldDisplay(BaseConfluenceCondition.java:38) @40000000540712b137b20c8c at com.atlassian.plugin.web.conditions.AndCompositeCondition.shouldDisplay(AndCompositeCondition.java:14) @40000000540712b137b20c8c at com.atlassian.plugin.web.conditions.AndCompositeCondition.shouldDisplay(AndCompositeCondition.java:14) @40000000540712b137b21074 at com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172) @40000000540712b137b21844 at com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103) @40000000540712b137b21c2c at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager.getDisplayableItems(ConfluenceWebInterfaceManager.java:88) @40000000540712b137b21c2c at sun.reflect.GeneratedMethodAccessor2934.invoke(Unknown Source) @40000000540712b137b223fc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000540712b137b223fc at java.lang.reflect.Method.invoke(Method.java:597) … {noformat} *Steps to reproduce* * Create a Confluence instance in OnDemand without Team Calendar * Access it and ‘Team Calendar’ will be there * Click ‘Calendar’ and the error occurs

    Atlassian JIRA | 3 years ago | Jaime Silveira [Atlassian]
    com.atlassian.license.LicenseException: License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73)

    Root Cause Analysis

    1. com.atlassian.license.LicenseException

      License string or hash are null. @40000000540712b137b1ca24 at com.atlassian.license.LicensePair.<init>(LicensePair.java:73)

      at com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.getProductLicenseString()
    2. com.atlassian.confluence
      LicenseAccessor.isOnDemandLicense
      1. com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.getProductLicenseString(LicenseAccessor.java:271)
      2. com.atlassian.confluence.extra.calendar3.license.LicenseAccessor.isOnDemandLicense(LicenseAccessor.java:220)
      2 frames