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
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 1 year 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 | 1 year 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