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]

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.

  • 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]
    via by Dennis Andersen,
  • 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]
    via by Dennis Andersen,
    • 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(AnnotationBoxingUberspect.java:204)
    No Bugmate found.