java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Integer at /decorators/includes/header.vm[line 76, column 20]

atlassian.com | 3 months ago
  1. 0

    Navigating to Certain Pages Triggers Stack Trace - Atlassian Documentation

    atlassian.com | 3 months ago
    java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Integer at /decorators/includes/header.vm[line 76, column 20]
  2. 0

    *Summary of The Bug* Confluence ancestor table URL as describe on our knowledge base article [here|https://confluence.atlassian.com/display/DOC/Rebuilding+the+Ancestor+Table] is inaccessible with the following stack trace: {code} java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/admin/permissions/help/viewglobalperms.vm' at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$1.doInTransaction(ConfluenceSitemeshDecorator.java:104) caused by: javax.servlet.ServletException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/admin/permissions/help/viewglobalperms.vm' at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$StreamingResponseWritingStrategy.renderToResponse(ConfluenceSitemeshDecorator.java:265) caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/admin/permissions/help/viewglobalperms.vm' at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:401){code} *Cause of the Bug* The mentioned URL point to a {{vm}} file located in : {code}<Conf_Install_Dir>/confluence/admin/permissions/pagepermsadmin.vm{code} The source code of the above {{vm}} file pointed to a wrong directory since {{help}} directory under {{permissions}} directory is unavailable. {code}<head> <title>$action.getActionName($action.getClass().getName())</title> <meta name="help-path" content="/admin/permissions/help/viewglobalperms.vm"/> </head>{code} *Workaround* Edit the mentioned {{vm}} file below: {code}<Conf_Install_Dir>/confluence/admin/permissions/pagepermsadmin.vm{code} Remove the offending {{help}} directory in the {{head}} tag, so your {{head}} tag will look like the following: {code} <head> <title>$action.getActionName($action.getClass().getName())</title> <meta name="help-path" content="/admin/permissions/viewglobalperms.vm"/> </head> {code} Saved the modified {{vm}} file and restart your Confluence instance *Workaround 2* Put the files Confluence is looking for in the proper location: * Navigate to <confluence-install>/confluence/admin/permissions in the Confluence install location * Create and copy the directory and contents of ".../confluence/admin/help" to ".../confluence/admin/permissions/help" * Copy the contents of ".../confluence/admin/permissions" to ".../confluence/admin/permissions/help" No restart is necessary. See screenshot for example setup.

    Atlassian JIRA | 3 years ago | Septa Cahyadiputra [Atlassian]
    java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/admin/permissions/help/viewglobalperms.vm'
  3. 0

    Dependency conflicts & Configuration...

    gilead | 7 years ago | rakhshan
    java.lang.RuntimeException: java.lang.ClassCastException: java.util.HashMap cannot be cast to net.sf.gilead.pojo.gwt.IGwtSerializableParameter
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException when upgrading from 1.1 to 1.2

    GitHub | 10 months ago | biokys
    java.lang.RuntimeException: Unable to create application com.droid4you.application.wallet.Application: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
  6. 0

    Hive JSON SerDe -- ClassCastException: java.lang.Integer cannot be cast to java.lang.Double

    Stack Overflow | 3 years ago | raynach
    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row [Error getting row data with exception java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Integer at /decorators/includes/header.vm[line 76, column 20]

      at com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$1.doInTransaction()
    2. com.atlassian.confluence
      ConfluenceSitemeshDecorator$1.doInTransaction
      1. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator$1.doInTransaction(ConfluenceSitemeshDecorator.java:104)
      1 frame
    3. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
      1 frame
    4. com.atlassian.confluence
      ConfluenceSitemeshDecorator.render
      1. com.atlassian.confluence.util.profiling.ConfluenceSitemeshDecorator.render(ConfluenceSitemeshDecorator.java:90)
      1 frame