java.util.MissingFormatArgumentException: Format specifier 's'

Atlassian JIRA | Brad Baker [Atlassian] | 5 years ago
  1. 0

    Hmm looking at catalina.out we have this exception 2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.FishEyeRepositoryStoreImpl] Could not retrieve deserialise repositories for unconfigured FishEye instance (id=1) 2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl] Cannot find configured repository for OPSMCAT: instance=1 repository=OPSMDigitalCatalogue path=/ 2011-12-22 21:35:31,819 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Starting upgrade - SessionStatusReindex 2011-12-22 21:35:38,466 main WARN [atlassian.bonfire.upgradetasks.UpgradeTaskKit] Marking upgrade task com.atlassian.bonfire.upgradetasks.reindex.SessionStatusReindex as done for version 1.6.0 2011-12-22 21:35:38,466 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Finishing upgrade - SessionStatusReindex 2011-12-22 21:35:38,514 main WARN [atlassian.bonfire.upgradetasks.TemplatesUpgrade] Starting upgrade - TemplatesUpgrade 2011-12-22 21:35:39,006 main ERROR [sal.core.upgrade.PluginUpgrader] Upgrade failed: Format specifier 's' java.util.MissingFormatArgumentException: Format specifier 's' at java.util.Formatter.format(Formatter.java:2432) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.bonfire.upgradetasks.TemplatesUpgrade.doUpgrade(TemplatesUpgrade.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.spr The offending code is this // Need create issue permission in the project if (!jiraPermissionManager.hasPermission(Permissions.CREATE_ISSUE, projectResult.getProject(), creator)) { log.warn(String.format("User %s cannot create issue in project with id %d")); continue; } The log message is invalid because its specifies a %s (string parameter) and then doesnt provide any parameters. We will have to fix that. We will look to get a 1.8.2 out to you as soon as possible. NOTE : this will only affect customers how have upgrade data that contains users that USED to have Create Issue permission but no longer do when the upgrade task runs.

    Atlassian JIRA | 5 years ago | Brad Baker [Atlassian]
    java.util.MissingFormatArgumentException: Format specifier 's'
  2. 0

    Hmm looking at catalina.out we have this exception 2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.FishEyeRepositoryStoreImpl] Could not retrieve deserialise repositories for unconfigured FishEye instance (id=1) 2011-12-22 21:35:31,769 main ERROR [jirafisheyeplugin.config.fisheye.RepositoryPathStoreImpl] Cannot find configured repository for OPSMCAT: instance=1 repository=OPSMDigitalCatalogue path=/ 2011-12-22 21:35:31,819 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Starting upgrade - SessionStatusReindex 2011-12-22 21:35:38,466 main WARN [atlassian.bonfire.upgradetasks.UpgradeTaskKit] Marking upgrade task com.atlassian.bonfire.upgradetasks.reindex.SessionStatusReindex as done for version 1.6.0 2011-12-22 21:35:38,466 main WARN [bonfire.upgradetasks.reindex.SessionStatusReindex] Finishing upgrade - SessionStatusReindex 2011-12-22 21:35:38,514 main WARN [atlassian.bonfire.upgradetasks.TemplatesUpgrade] Starting upgrade - TemplatesUpgrade 2011-12-22 21:35:39,006 main ERROR [sal.core.upgrade.PluginUpgrader] Upgrade failed: Format specifier 's' java.util.MissingFormatArgumentException: Format specifier 's' at java.util.Formatter.format(Formatter.java:2432) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at com.atlassian.bonfire.upgradetasks.TemplatesUpgrade.doUpgrade(TemplatesUpgrade.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.spr The offending code is this // Need create issue permission in the project if (!jiraPermissionManager.hasPermission(Permissions.CREATE_ISSUE, projectResult.getProject(), creator)) { log.warn(String.format("User %s cannot create issue in project with id %d")); continue; } The log message is invalid because its specifies a %s (string parameter) and then doesnt provide any parameters. We will have to fix that. We will look to get a 1.8.2 out to you as soon as possible. NOTE : this will only affect customers how have upgrade data that contains users that USED to have Create Issue permission but no longer do when the upgrade task runs.

    Atlassian JIRA | 5 years ago | Brad Baker [Atlassian]
    java.util.MissingFormatArgumentException: Format specifier 's'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Format 's' Specifier Problem Using NetBeans - Java | Dream.In.Code

    dreamincode.net | 1 year ago
    java.util.MissingFormatArgumentException: Format specifier 's'
  5. 0

    Exceptions - Java Programming Help - KnowCoding.com

    knowcoding.com | 1 year ago
    java.util.MissingFormatArgumentException: Format specifier 's'

  1. aldrinleal 1 times, last 1 month ago
  2. Shadd518 1 times, last 4 months ago
  3. Diogo Jaym 1 times, last 5 months ago
  4. brunosatriani 109 times, last 5 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.MissingFormatArgumentException

    Format specifier 's'

    at java.util.Formatter.format()
  2. Java RT
    String.format
    1. java.util.Formatter.format(Formatter.java:2432)
    2. java.util.Formatter.format(Formatter.java:2367)
    3. java.lang.String.format(String.java:2769)
    3 frames
  3. com.atlassian.bonfire
    TemplatesUpgrade.doUpgrade
    1. com.atlassian.bonfire.upgradetasks.TemplatesUpgrade.doUpgrade(TemplatesUpgrade.java:123)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Spring AOP
    AopUtils.invokeJoinpointUsingReflection
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    1 frame
  6. Spring OSGi Core
    ServiceInvoker.doInvoke
    1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    1 frame