java.lang.UnsupportedOperationException

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.

  • h3. Summary Excessive errors (that seems to be harmless, as CQ continues to function properly) such as the following on Confluence startup/Confluence Questions usage, with CQ installed: {code} 2015-12-30 10:13:48,170 WARN [http-nio-8592-exec-10] [common.security.jersey.XsrfResourceFilterFactory] isXsrfProtectionExcludedAnnotationPresent Detected usage of the com.atlassian.annotations.security.XsrfProtectionExcluded annotation loaded from elsewhere. WebappClassLoader context: c592 delegate: false ----------> Parent Classloader: java.net.URLClassLoader@3af49f1c != com.atlassian.confluence.plugins.confluence-questions [238] -- referer: http://localhost:8592/c592/questions?src=header | url: /c592/rest/questions/1.0/topic | userName: admin {code} {code} 2015-12-30 10:13:45,681 ERROR [http-nio-8592-exec-5] [plugins.cql.impl.SearchTypeManager] getCustomContentTypes A plugin installed content type caused an error for the CQL plugin, removing custom content type from CQL handled types : com.atlassian.confluence.plugins.confluence-questions:answer-draft -- referer: http://localhost:8592/c592/ | url: /c592/rest/experimental/search | userName: admin java.lang.UnsupportedOperationException at com.atlassian.confluence.plugins.questions.contenttype.DraftPermissionDelegate.canView(DraftPermissionDelegate.java:43) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getCustomContentTypes(SearchTypeManager.java:127) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getContentTypes(SearchTypeManager.java:102) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getTypes(SearchTypeManager.java:193) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.hasType(SearchTypeManager.java:198) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.checkTypeExists(ContentTypeFieldHandler.java:146) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.lambda$new$6(ContentTypeFieldHandler.java:104) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler$$Lambda$97/777928585.apply(Unknown Source) at com.google.common.collect.Iterators$8.next(Iterators.java:812) {code} h3. Environment * Confluence 5.9.x * CQ 2.4.4 h3. Steps to Reproduce # Install Confluence 5.9.x # Install CQ 2.4.4 # Restart Confluence h3. Notes CQ 2.4.4 installed on Confluence 5.8.x *does not have this issue*. This issue seems to be isolated only to Confluence 5.9.x h3.Workaround Possible to turn off the logging for com.atlassian.confluence.plugins.cql.impl.SearchTypeManager but relevant errors may no longer be logged.
    via by Foogie Sim [Atlassian],
  • h3. Summary Excessive errors (that seems to be harmless, as CQ continues to function properly) such as the following on Confluence startup/Confluence Questions usage, with CQ installed: {code} 2015-12-30 10:13:48,170 WARN [http-nio-8592-exec-10] [common.security.jersey.XsrfResourceFilterFactory] isXsrfProtectionExcludedAnnotationPresent Detected usage of the com.atlassian.annotations.security.XsrfProtectionExcluded annotation loaded from elsewhere. WebappClassLoader context: c592 delegate: false ----------> Parent Classloader: java.net.URLClassLoader@3af49f1c != com.atlassian.confluence.plugins.confluence-questions [238] -- referer: http://localhost:8592/c592/questions?src=header | url: /c592/rest/questions/1.0/topic | userName: admin {code} {code} 2015-12-30 10:13:45,681 ERROR [http-nio-8592-exec-5] [plugins.cql.impl.SearchTypeManager] getCustomContentTypes A plugin installed content type caused an error for the CQL plugin, removing custom content type from CQL handled types : com.atlassian.confluence.plugins.confluence-questions:answer-draft -- referer: http://localhost:8592/c592/ | url: /c592/rest/experimental/search | userName: admin java.lang.UnsupportedOperationException at com.atlassian.confluence.plugins.questions.contenttype.DraftPermissionDelegate.canView(DraftPermissionDelegate.java:43) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getCustomContentTypes(SearchTypeManager.java:127) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getContentTypes(SearchTypeManager.java:102) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getTypes(SearchTypeManager.java:193) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.hasType(SearchTypeManager.java:198) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.checkTypeExists(ContentTypeFieldHandler.java:146) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.lambda$new$6(ContentTypeFieldHandler.java:104) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler$$Lambda$97/777928585.apply(Unknown Source) at com.google.common.collect.Iterators$8.next(Iterators.java:812) {code} h3. Environment * Confluence 5.9.x * CQ 2.4.4 h3. Steps to Reproduce # Install Confluence 5.9.x # Install CQ 2.4.4 # Restart Confluence h3. Notes CQ 2.4.4 installed on Confluence 5.8.x *does not have this issue*. This issue seems to be isolated only to Confluence 5.9.x h3.Workaround Possible to turn off the logging for com.atlassian.confluence.plugins.cql.impl.SearchTypeManager but relevant errors may no longer be logged.
    via by Foogie Sim [Atlassian],
  • h3. Summary The Confluence Mail Archiving add-on seems to be flooding the *atlassian-confluence.log*, related to CQL. h3. Steps to Reproduce # Enable the Confluence Mail Archiving add-on # Check the *atlassian-confluence.log* for stacktraces h3. Expected Results No stack traces in the logs h3. Actual Results The below exception is thrown in the xxxxxxx.log file: {noformat} 2016-02-09 16:23:44,421 ERROR [http-nio-8090-exec-1] [plugins.cql.impl.SearchTypeManager] getCustomContentTypes A plugin installed content type caused an error for the CQL plugin, removing custom content type from CQL handled types : com.atlassian.confluence.plugins.confluence-mail-archiving:mail -- referer: http://localhost:8090/ | url: /rest/experimental/search | userName: admin java.lang.UnsupportedOperationException at com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate.canView(AbstractPermissionsDelegate.java:27) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getCustomContentTypes(SearchTypeManager.java:127) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getContentTypes(SearchTypeManager.java:102) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getTypes(SearchTypeManager.java:193) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.hasType(SearchTypeManager.java:198) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.checkTypeExists(ContentTypeFieldHandler.java:146) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.lambda$new$6(ContentTypeFieldHandler.java:104) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler$$Lambda$98/1921253214.apply(Unknown Source) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Iterables$3.next(Iterables.java:508) at com.google.common.collect.Iterables$3.next(Iterables.java:501) at com.google.common.collect.Iterators$5.hasNext(Iterators.java:544) at com.atlassian.fugue.Iterables$Memoizer.nextNode(Iterables.java:614) at com.atlassian.fugue.Iterables$Memoizer.<init>(Iterables.java:606) at com.atlassian.fugue.Iterables.memoize(Iterables.java:301) {noformat} h3.Workaround The workaround is to disable the add-on if it is not in use. If it is in use, there is no workaround.
    via by Miranda Rawson,
    • java.lang.UnsupportedOperationException at com.atlassian.confluence.plugins.questions.contenttype.DraftPermissionDelegate.canView(DraftPermissionDelegate.java:43) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getCustomContentTypes(SearchTypeManager.java:127) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getContentTypes(SearchTypeManager.java:102) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.getTypes(SearchTypeManager.java:193) at com.atlassian.confluence.plugins.cql.impl.SearchTypeManager.hasType(SearchTypeManager.java:198) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.checkTypeExists(ContentTypeFieldHandler.java:146) at com.atlassian.confluence.plugins.cql.fields.ContentTypeFieldHandler.lambda$new$6(ContentTypeFieldHandler.java:104)
    No Bugmate found.