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.

  • Hi DEV team. I'm trying develop a service which create comments for issues. I'm using Comment Manager.create(Issue issue, ApplicationUser author, String body, boolean dispatchEvent). Regarding the stack trace below I got an error in class ImmutableGenericValue line 63 with UnsupportedOperationException because it will be checked if variable 'constructed' is set to false. So it is not possible to create comments using the CommentManager. Kind regards, Michael Workflow Service [c.a.jira.service.ServiceRunner] An error occurred while trying to run service 'Workflow Service'. Cannot set or mutate an ImmutableGenericValue java.lang.UnsupportedOperationException: Cannot set or mutate an ImmutableGenericValue at com.atlassian.jira.util.ofbiz.ImmutableGenericValue.set(ImmutableGenericValue.java:63) at org.ofbiz.core.entity.GenericEntity.set(GenericEntity.java:244) at com.atlassian.jira.issue.IssueImpl.updateGV(IssueImpl.java:1186) at com.atlassian.jira.issue.IssueImpl.setUpdated(IssueImpl.java:873) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:233) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:195) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:185) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:169) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:158) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:147)
    via by Michael Franz,
  • Hi DEV team. I'm trying develop a service which create comments for issues. I'm using Comment Manager.create(Issue issue, ApplicationUser author, String body, boolean dispatchEvent). Regarding the stack trace below I got an error in class ImmutableGenericValue line 63 with UnsupportedOperationException because it will be checked if variable 'constructed' is set to false. So it is not possible to create comments using the CommentManager. Kind regards, Michael Workflow Service [c.a.jira.service.ServiceRunner] An error occurred while trying to run service 'Workflow Service'. Cannot set or mutate an ImmutableGenericValue java.lang.UnsupportedOperationException: Cannot set or mutate an ImmutableGenericValue at com.atlassian.jira.util.ofbiz.ImmutableGenericValue.set(ImmutableGenericValue.java:63) at org.ofbiz.core.entity.GenericEntity.set(GenericEntity.java:244) at com.atlassian.jira.issue.IssueImpl.updateGV(IssueImpl.java:1186) at com.atlassian.jira.issue.IssueImpl.setUpdated(IssueImpl.java:873) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:233) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:195) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:185) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:169) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:158) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:147)
    via by Michael Franz,
    • java.lang.UnsupportedOperationException: Cannot set or mutate an ImmutableGenericValue at com.atlassian.jira.util.ofbiz.ImmutableGenericValue.set(ImmutableGenericValue.java:63) at org.ofbiz.core.entity.GenericEntity.set(GenericEntity.java:244) at com.atlassian.jira.issue.IssueImpl.updateGV(IssueImpl.java:1186) at com.atlassian.jira.issue.IssueImpl.setUpdated(IssueImpl.java:873) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:233) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:195) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:185) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:169) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:158) at com.atlassian.jira.issue.comments.DefaultCommentManager.create(DefaultCommentManager.java:147)
    No Bugmate found.