Poplar Label Macro does not work in confluence 10.2.14

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 10.2.14
    • Component/s: Macros - Other Macros
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      Poplar Label Macro does not work in confluence 10.2.14

      Steps to Reproduce

      1. Install confluence DC 10.2.14
      2. Add few test pages and add test labels to those pages in a space.
      3. Create a new page and add popular label macro in the page. Enter key of space in the filter 'Restrict Labels to this space key' of the macro.
      4. The popular label macro does not list popular labels at all.
      5. We see below error in the logs :
      6. 2026-07-23 23:29:24,435 ERROR [ConfluenceSpringScheduler7] [springframework.scheduling.support.TaskUtils$LoggingErrorHandler] handleError Unexpected error occurred in scheduled task
         -- url: /confluence/setup/setupdbtype.action | userName: anonymous | action: setupdbtype | referer: https://linux-129626.prod.atl-cd.net/confluence/setup/setupcluster-start.action | traceId: 00ad7680275dfb30
        org.hibernate.HibernateException: Failed to find org.hibernate.Session from the current thread
        	at com.atlassian.confluence.impl.hibernate.ConfluenceSessionContext.currentSession(ConfluenceSessionContext.java:32)
        	at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:508)
        	at org.hibernate.engine.spi.SessionFactoryDelegatingImpl.getCurrentSession(SessionFactoryDelegatingImpl.java:98)
        	at com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParams(HibernateObjectDao.java:318)
        	at com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao.findNamedQueryStringParam(HibernateObjectDao.java:266)
        	at com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao.findMostPopular(HibernateLabelDao.java:501)
        	at com.atlassian.confluence.labels.DefaultLabelManager.getMostPopularLabels(DefaultLabelManager.java:556)
        	at com.atlassian.confluence.labels.DefaultLabelManager.getMostPopularLabelsInSiteLite(DefaultLabelManager.java:784)
        	at com.atlassian.confluence.impl.labels.adaptivelabelcache.AdaptiveMostUsedLabelsCacheImpl.retrieveDataFromDelegate(AdaptiveMostUsedLabelsCacheImpl.java:241)
        	at com.atlassian.confluence.impl.labels.adaptivelabelcache.AdaptiveMostUsedLabelsCacheImpl.retrieveDataFromDelegateAndRefreshCacheEntry(AdaptiveMostUsedLabelsCacheImpl.java:233)
        	at com.atlassian.confluence.impl.labels.adaptivelabelcache.AdaptiveMostUsedLabelsCacheImpl.scheduled(AdaptiveMostUsedLabelsCacheImpl.java:186)
        	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        	at org.springframework.scheduling.support.ScheduledMethodRunnable.runInternal(ScheduledMethodRunnable.java:130)
        	at org.springframework.scheduling.support.ScheduledMethodRunnable.lambda$run$2(ScheduledMethodRunnable.java:124)
        	at io.micrometer.observation.Observation.observe(Observation.java:498)
        	at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:124)
        	at org.springframework.scheduling.config.Task$OutcomeTrackingRunnable.run(Task.java:87)
        	at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
        	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
        	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        	at java.base/java.lang.Thread.run(Thread.java:1583)

      Expected Results

      Popular Label Macro should list

      Actual Results

      Popular Label Macro does not list . Please see screenshot attached.

      Workaround

      Remove space in the filter 'Restrict Labels to this space key' of popular label macro, and leave it blank. Then, the popular labels will show up

              Assignee:
              Unassigned
              Reporter:
              Jaskaran Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: