java.util.MissingFormatArgumentException: Format specifier '%s'

JFrog JIRA | Ryan J. McDonough | 7 months ago
  1. 0

    We are experiencing issues in setting up a docker registry with Artifactory Pro. When calling docker login, we get the following error response: {code} [ec2-user@host artifactory]$ docker login -u me -e me@company.com containers.mycompany.com Password: Error response from daemon: no successful auth challenge for https://containers.artifactory.mycompany.com/v2/ - errors: [token auth attempt to https://containers.artifactory.mycompany.com/v2/ realm "https://containers.artifactory.mycompany.com/artifactory/api/docker/containers/v2/token" failed with status: 500 Internal Server Error] {code} When inspecting the traffic and looking at the Catalina logs, we see the following: {code} 19-May-2016 17:31:37.364 SEVERE [http-nio-8081-exec-9] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Jersey Web Application] in context with path [/artifactory] threw exception java.util.MissingFormatArgumentException: Format specifier '%s' at java.util.Formatter.format(Formatter.java:2519) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2940) at org.artifactory.storage.db.util.JdbcHelper.resolveQuery(JdbcHelper.java:282) at org.artifactory.storage.db.util.JdbcHelper.debugSql(JdbcHelper.java:252) at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:83) at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:77) at org.artifactory.storage.db.security.dao.UserPropertiesDao.getUserIdByProperty(UserPropertiesDao.java:40) at org.artifactory.storage.db.security.service.UserGroupServiceImpl.findUserByProperty(UserGroupServiceImpl.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) at com.sun.proxy.$Proxy34.findUserByProperty(Unknown Source) at org.artifactory.security.db.apikey.PropsAuthenticationProvider.validateTokenAndFetchUser(PropsAuthenticationProvider.java:87) at org.artifactory.security.db.apikey.PropsAuthenticationProvider.authenticate(PropsAuthenticationProvider.java:60) at org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:99) at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.tryAuthenticate(PropsAuthenticationFilter.java:170) at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.doFilter(PropsAuthenticationFilter.java:115) at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:160) at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:262) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:193) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:65) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {code} I run through a number of Artifactory versions and docker 1.9 and 1.10 and the result is the same. I've had success once, but I'm not sure what is going on here.

    JFrog JIRA | 7 months ago | Ryan J. McDonough
    java.util.MissingFormatArgumentException: Format specifier '%s'
  2. 0

    We are experiencing issues in setting up a docker registry with Artifactory Pro. When calling docker login, we get the following error response: {code} [ec2-user@host artifactory]$ docker login -u me -e me@company.com containers.mycompany.com Password: Error response from daemon: no successful auth challenge for https://containers.artifactory.mycompany.com/v2/ - errors: [token auth attempt to https://containers.artifactory.mycompany.com/v2/ realm "https://containers.artifactory.mycompany.com/artifactory/api/docker/containers/v2/token" failed with status: 500 Internal Server Error] {code} When inspecting the traffic and looking at the Catalina logs, we see the following: {code} 19-May-2016 17:31:37.364 SEVERE [http-nio-8081-exec-9] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [Jersey Web Application] in context with path [/artifactory] threw exception java.util.MissingFormatArgumentException: Format specifier '%s' at java.util.Formatter.format(Formatter.java:2519) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2940) at org.artifactory.storage.db.util.JdbcHelper.resolveQuery(JdbcHelper.java:282) at org.artifactory.storage.db.util.JdbcHelper.debugSql(JdbcHelper.java:252) at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:83) at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:77) at org.artifactory.storage.db.security.dao.UserPropertiesDao.getUserIdByProperty(UserPropertiesDao.java:40) at org.artifactory.storage.db.security.service.UserGroupServiceImpl.findUserByProperty(UserGroupServiceImpl.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) at com.sun.proxy.$Proxy34.findUserByProperty(Unknown Source) at org.artifactory.security.db.apikey.PropsAuthenticationProvider.validateTokenAndFetchUser(PropsAuthenticationProvider.java:87) at org.artifactory.security.db.apikey.PropsAuthenticationProvider.authenticate(PropsAuthenticationProvider.java:60) at org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:99) at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.tryAuthenticate(PropsAuthenticationFilter.java:170) at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.doFilter(PropsAuthenticationFilter.java:115) at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:160) at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:262) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:193) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:65) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {code} I run through a number of Artifactory versions and docker 1.9 and 1.10 and the result is the same. I've had success once, but I'm not sure what is going on here.

    JFrog JIRA | 7 months ago | Ryan J. McDonough
    java.util.MissingFormatArgumentException: Format specifier '%s'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Issue when trace logging is enabled

    GitHub | 7 months ago | whgibbo
    java.util.MissingFormatArgumentException: Format specifier '%s'
  5. 0

    Getting an Run time Error

    GitHub | 4 months ago | harjitdotsingh
    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:2519)
    2. java.util.Formatter.format(Formatter.java:2455)
    3. java.lang.String.format(String.java:2940)
    3 frames
  3. org.artifactory.storage
    UserGroupServiceImpl.findUserByProperty
    1. org.artifactory.storage.db.util.JdbcHelper.resolveQuery(JdbcHelper.java:282)
    2. org.artifactory.storage.db.util.JdbcHelper.debugSql(JdbcHelper.java:252)
    3. org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:83)
    4. org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:77)
    5. org.artifactory.storage.db.security.dao.UserPropertiesDao.getUserIdByProperty(UserPropertiesDao.java:40)
    6. org.artifactory.storage.db.security.service.UserGroupServiceImpl.findUserByProperty(UserGroupServiceImpl.java:428)
    6 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
    2 frames
  6. com.sun.proxy
    $Proxy34.findUserByProperty
    1. com.sun.proxy.$Proxy34.findUserByProperty(Unknown Source)
    1 frame
  7. org.artifactory.security
    PasswordDecryptingManager.authenticate
    1. org.artifactory.security.db.apikey.PropsAuthenticationProvider.validateTokenAndFetchUser(PropsAuthenticationProvider.java:87)
    2. org.artifactory.security.db.apikey.PropsAuthenticationProvider.authenticate(PropsAuthenticationProvider.java:60)
    3. org.artifactory.security.PasswordDecryptingManager.authenticate(PasswordDecryptingManager.java:99)
    3 frames
  8. org.artifactory.webapp
    AccessFilter.doFilter
    1. org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.tryAuthenticate(PropsAuthenticationFilter.java:170)
    2. org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.doFilter(PropsAuthenticationFilter.java:115)
    3. org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:160)
    4. org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:262)
    5. org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:193)
    6. org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155)
    6 frames
  9. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    2 frames
  10. org.artifactory.webapp
    RequestFilter.doFilter
    1. org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:65)
    1 frame
  11. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    2 frames
  12. org.artifactory.webapp
    ArtifactoryFilter.doFilter
    1. org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:109)
    1 frame
  13. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
    8 frames
  14. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
    4 frames
  15. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    2 frames
  16. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  17. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame