java.lang.ClassCastException

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.

  • I've accidentally modified the select clause for CurrentContentForLabelAndSpace when reverting to performant label queries for: CONF-25236 This is used by the Master Details Macro {code} [INFO] [talledLocalContainer] 2012-06-11 12:08:21,698 ERROR [http-1990-2] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: detailssummary [INFO] [talledLocalContainer] -- url: /confluence/pages/viewpage.action | userName: admin | action: viewpage | page: 917525 [INFO] [talledLocalContainer] java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.atlassian.confluence.labels.Labelling [INFO] [talledLocalContainer] at com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao$10.apply(HibernateLabelDao.java:857) [INFO] [talledLocalContainer] at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) [INFO] [talledLocalContainer] at java.util.AbstractList$Itr.next(AbstractList.java:345) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators.size(Iterators.java:147) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$FilteredCollection.size(Collections2.java:222) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$TransformedCollection.size(Collections2.java:288) [INFO] [talledLocalContainer] at java.util.AbstractCollection.toArray(AbstractCollection.java:119) [INFO] [talledLocalContainer] at java.util.ArrayList.<init>(ArrayList.java:131) [INFO] [talledLocalContainer] at com.atlassian.confluence.extra.masterdetail.DetailsSummaryMacro.execute(DetailsSummaryMacro.java:227) {code} It's a simple fix, and will add an integration test for this query.
    via by Steve Lancashire [Atlassian],
  • I've accidentally modified the select clause for CurrentContentForLabelAndSpace when reverting to performant label queries for: CONF-25236 This is used by the Master Details Macro {code} [INFO] [talledLocalContainer] 2012-06-11 12:08:21,698 ERROR [http-1990-2] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: detailssummary [INFO] [talledLocalContainer] -- url: /confluence/pages/viewpage.action | userName: admin | action: viewpage | page: 917525 [INFO] [talledLocalContainer] java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.atlassian.confluence.labels.Labelling [INFO] [talledLocalContainer] at com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao$10.apply(HibernateLabelDao.java:857) [INFO] [talledLocalContainer] at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) [INFO] [talledLocalContainer] at java.util.AbstractList$Itr.next(AbstractList.java:345) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators.size(Iterators.java:147) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$FilteredCollection.size(Collections2.java:222) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$TransformedCollection.size(Collections2.java:288) [INFO] [talledLocalContainer] at java.util.AbstractCollection.toArray(AbstractCollection.java:119) [INFO] [talledLocalContainer] at java.util.ArrayList.<init>(ArrayList.java:131) [INFO] [talledLocalContainer] at com.atlassian.confluence.extra.masterdetail.DetailsSummaryMacro.execute(DetailsSummaryMacro.java:227) {code} It's a simple fix, and will add an integration test for this query.
    via by Steve Lancashire [Atlassian],
    • java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.atlassian.confluence.labels.Labelling at com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao$10.apply(HibernateLabelDao.java:857) at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) at java.util.AbstractList$Itr.next(AbstractList.java:345) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) at com.google.common.collect.Iterators.size(Iterators.java:147) at com.google.common.collect.Collections2$FilteredCollection.size(Collections2.java:222) at com.google.common.collect.Collections2$TransformedCollection.size(Collections2.java:288) at java.util.AbstractCollection.toArray(AbstractCollection.java:119) at java.util.ArrayList.<init>(ArrayList.java:131) at com.atlassian.confluence.extra.masterdetail.DetailsSummaryMacro.execute(DetailsSummaryMacro.java:227)
    No Bugmate found.