com.google.template.soy.tofu.SoyTofuException

In template CQ.Templates.util.compactInteger: When evaluating "cqFormatInteger($value)": Error while computing function "cqFormatInteger($value)": java.lang.Integer cannot be cast to java.lang.Long

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web39

  • via Unknown by Nelson Carranza,
  • via Unknown by Nelson Carranza,
  • via Unknown by Shannon Mackie [Atlassian],
  • Stack trace

    • com.google.template.soy.tofu.SoyTofuException: In template CQ.Templates.util.compactInteger: When evaluating "cqFormatInteger($value)": Error while computing function "cqFormatInteger($value)": java.lang.Integer cannot be cast to java.lang.Long at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.