karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Updated) (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-1242) org.apache.karaf.scr.command format error
Date Wed, 29 Feb 2012 09:53:57 GMT

     [ https://issues.apache.org/jira/browse/KARAF-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-1242:
----------------------------------------

    Fix Version/s: 3.0.0
    
> org.apache.karaf.scr.command format error
> -----------------------------------------
>
>                 Key: KARAF-1242
>                 URL: https://issues.apache.org/jira/browse/KARAF-1242
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Andrei Pozolotin
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> 1) command in console:
> karaf@root> scr:list
>    ID   State             Component Name
> Error executing command: Conversion = s, Flags = #
> 2) exception in log:
> 2012-02-28 23:18:48,304 | INFO  | l Console Thread | Console                        
 | araf.shell.console.jline.Console  199 | 31 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT
| Exception caught while executing command
> java.util.FormatFlagsConversionMismatchException: Conversion = s, Flags = #
> 	at java.util.Formatter$FormatSpecifier.failMismatch(Formatter.java:4041)[:1.7.0_02]
> 	at java.util.Formatter$FormatSpecifier.printString(Formatter.java:2834)[:1.7.0_02]
> 	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2718)[:1.7.0_02]
> 	at java.util.Formatter.format(Formatter.java:2494)[:1.7.0_02]
> 	at java.util.Formatter.format(Formatter.java:2423)[:1.7.0_02]
> 	at java.lang.String.format(String.java:2845)[:1.7.0_02]
> 	at org.apache.karaf.scr.command.action.ScrActionSupport.buildLeftPadBracketDisplay(ScrActionSupport.java:58)[64:org.apache.karaf.scr.command:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.scr.command.action.ListAction.doScrAction(ListAction.java:44)[64:org.apache.karaf.scr.command:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.scr.command.action.ScrActionSupport.doExecute(ScrActionSupport.java:40)[64:org.apache.karaf.scr.command:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at org.apache.karaf.shell.console.jline.Console.run(Console.java:166)[31:org.apache.karaf.shell.console:3.0.0.SNAPSHOT]
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0_02]
> 3) offending snippet
>     public String buildLeftPadBracketDisplay(String s, int max) {
>         return String.format("%1$#" + max + "s", s);
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message