java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.pages.Attachment#getContentType - /templates/extra/attachments/attachments-table.vm[line 67, column 47]

Atlassian JIRA | Melek Jebnoun [Spectrum Groupe] | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Since I'm sitting on an EAP for Confluence Server (5.10.0-m03) this might already been solved internally, but I haven't found any info on it so here it goes: Going to http://localhost:1990/confluence/users/profile/editmyprofilepicture.action will cause the following stack due to calls to deprecated methods (com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath) Cause: {noformat} java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77] at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:187) {noformat} Stack {noformat} java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77] at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:187) at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.lookupMethod(AnnotationBoxingUberspect.java:169) at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.getMethod(AnnotationBoxingUberspect.java:92) {noformat} I realise this is only happening for dev instances but it's still causing damage as we cannot access the profile settings page properly. Best regards, Dennis [RefinedWiki]

    Atlassian JIRA | 11 months ago | Dennis Andersen
    java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Since I'm sitting on an EAP for Confluence Server (5.10.0-m03) this might already been solved internally, but I haven't found any info on it so here it goes: Going to http://localhost:1990/confluence/users/profile/editmyprofilepicture.action will cause the following stack due to calls to deprecated methods (com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath) Cause: {noformat} java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77] at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:187) {noformat} Stack {noformat} java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77] at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:187) at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.lookupMethod(AnnotationBoxingUberspect.java:169) at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.getMethod(AnnotationBoxingUberspect.java:92) {noformat} I realise this is only happening for dev instances but it's still causing damage as we cannot access the profile settings page properly. Best regards, Dennis [RefinedWiki]

    Atlassian JIRA | 11 months ago | Dennis Andersen
    java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.user.actions.ProfilePictureInfo#getDownloadPath - /templates/velocity/editmyprofilepicture.vm[line 26, column 77]
  4. 0

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.pages.Attachment#getContentType - /templates/extra/attachments/attachments-table.vm[line 67, column 47]

      at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary()
    2. com.atlassian.confluence
      AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary
      1. com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:204)
      1 frame