ava.util.DuplicateFormatFlagsException: Flags = '0'

Atlassian JIRA | Fabian Krämer | 5 years ago
  1. 0

    The virgin state of Studio lacks any projects. If someone tries to add a BB repository straight away without a project being setup yet in JIRA, the UI doesn't prevent you from doing so. When you try to add the repository, you are confronted with the normal JIRA 500 page spitting you out the following stack trace: {noformat} ava.util.DuplicateFormatFlagsException: Flags = '0' at java.util.Formatter$Flags.parse(Formatter.java:4140) at java.util.Formatter$FormatSpecifier.flags(Formatter.java:2555) at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2625) at java.util.Formatter.parse(Formatter.java:2480) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.jira.plugins.bitbucket.api.impl.DefaultEncryptor.encrypt(DefaultEncryptor.java:63) at com.atlassian.jira.plugins.bitbucket.spi.DvcsRepositoryManager.addRepository(DvcsRepositoryManager.java:106) at com.atlassian.jira.plugins.bitbucket.GlobalRepositoryManager.addRepository(GlobalRepositoryManager.java:86) at com.atlassian.jira.plugins.bitbucket.spi.bitbucket.webwork.AddBitbucketRepository.doExecute(AddBitbucketRepository.java:64) at webwork.action.ActionSupport.execute(ActionSupport.java:165) ... {noformat} The best thing to do is probably to have a check if there are any projects currently setup, and to redirect/forward to /secure/project/ViewProjects.jspa if not.

    Atlassian JIRA | 5 years ago | Fabian Krämer
    ava.util.DuplicateFormatFlagsException: Flags = '0'
  2. 0

    The virgin state of Studio lacks any projects. If someone tries to add a BB repository straight away without a project being setup yet in JIRA, the UI doesn't prevent you from doing so. When you try to add the repository, you are confronted with the normal JIRA 500 page spitting you out the following stack trace: {noformat} ava.util.DuplicateFormatFlagsException: Flags = '0' at java.util.Formatter$Flags.parse(Formatter.java:4140) at java.util.Formatter$FormatSpecifier.flags(Formatter.java:2555) at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2625) at java.util.Formatter.parse(Formatter.java:2480) at java.util.Formatter.format(Formatter.java:2414) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.jira.plugins.bitbucket.api.impl.DefaultEncryptor.encrypt(DefaultEncryptor.java:63) at com.atlassian.jira.plugins.bitbucket.spi.DvcsRepositoryManager.addRepository(DvcsRepositoryManager.java:106) at com.atlassian.jira.plugins.bitbucket.GlobalRepositoryManager.addRepository(GlobalRepositoryManager.java:86) at com.atlassian.jira.plugins.bitbucket.spi.bitbucket.webwork.AddBitbucketRepository.doExecute(AddBitbucketRepository.java:64) at webwork.action.ActionSupport.execute(ActionSupport.java:165) ... {noformat} The best thing to do is probably to have a check if there are any projects currently setup, and to redirect/forward to /secure/project/ViewProjects.jspa if not.

    Atlassian JIRA | 5 years ago | Fabian Krämer
    ava.util.DuplicateFormatFlagsException: Flags = '0'

    Root Cause Analysis

    1. ava.util.DuplicateFormatFlagsException

      Flags = '0'

      at java.util.Formatter$Flags.parse()
    2. Java RT
      String.format
      1. java.util.Formatter$Flags.parse(Formatter.java:4140)
      2. java.util.Formatter$FormatSpecifier.flags(Formatter.java:2555)
      3. java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2625)
      4. java.util.Formatter.parse(Formatter.java:2480)
      5. java.util.Formatter.format(Formatter.java:2414)
      6. java.util.Formatter.format(Formatter.java:2367)
      7. java.lang.String.format(String.java:2769)
      7 frames
    3. com.atlassian.jira
      AddBitbucketRepository.doExecute
      1. com.atlassian.jira.plugins.bitbucket.api.impl.DefaultEncryptor.encrypt(DefaultEncryptor.java:63)
      2. com.atlassian.jira.plugins.bitbucket.spi.DvcsRepositoryManager.addRepository(DvcsRepositoryManager.java:106)
      3. com.atlassian.jira.plugins.bitbucket.GlobalRepositoryManager.addRepository(GlobalRepositoryManager.java:86)
      4. com.atlassian.jira.plugins.bitbucket.spi.bitbucket.webwork.AddBitbucketRepository.doExecute(AddBitbucketRepository.java:64)
      4 frames
    4. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:165)
      1 frame