[ 
https://issues.apache.org/jira/browse/KARAF-3217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17222120#comment-17222120
 ] 

Robert Varga commented on KARAF-3217:
-------------------------------------

[[email protected]]  this minor thing is still present in 4.2.9 and 
4.3.0-to-be. Can we get it fixed perhaps?

Current stack trace looks like this:
{noformat}
13:15:26.362 ERROR [Karaf local console user karaf] Exception caught while 
executing command

java.lang.IllegalArgumentException: Cannot coerce info() to any of [(long), 
(String)]

        at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:204) 
~[?:?]

        at 
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:91) ~[?:?]

        at 
org.apache.karaf.shell.impl.console.osgi.CommandTracker$1.execute(CommandTracker.java:112)
 ~[?:?]

        at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
 ~[?:?]

        at 
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
 ~[?:?]

        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) 
~[?:?]

        at 
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]

        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) 
~[?:?]

        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]

        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]

        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]

        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]

        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
~[?:?]

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
~[?:?]

        at java.lang.Thread.run(Thread.java:834) [?:?]


{noformat}

> Karaf shell - scr:info - Cannot coerce info() to any of [(String)]
> ------------------------------------------------------------------
>
>                 Key: KARAF-3217
>                 URL: https://issues.apache.org/jira/browse/KARAF-3217
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 2.3.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> To reproduce using a vanilla karaf 2.3.7
> bin/karaf
> features:install scr
> scr:list
> scr:aaa
> scr:info
> {code}
> karaf@root> scr:info
> Error executing command: Cannot coerce info() to any of [(String)]
> karaf@root> log:tail
> 2014-09-09 11:48:49,932 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:48:49,933 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.framework.FrameworkMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:48:49,934 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.framework.PackageStateMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:48:49,934 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:48:49,934 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.framework.ServiceStateMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:48:49,935 | INFO  | JMX OSGi Agent   | core                     
>         | ?                                   ? | 24 - 
> org.apache.aries.jmx.core - 1.1.1 | Registering 
> org.osgi.jmx.framework.BundleStateMBean to MBeanServer 
> com.sun.jmx.mbeanserver.JmxMBeanServer@7f7c3215 with name 
> osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=e0fc1809-e35b-4124-b942-288b4499066e
> 2014-09-09 11:49:01,730 | INFO  | l Console Thread | DetailsCommandComponent  
>         | hell.scr.DetailsCommandComponent   67 | 57 - 
> org.apache.karaf.shell.scr - 2.3.7 | Activating the Apache Karaf SCR Details 
> Command
> 2014-09-09 11:49:01,738 | INFO  | l Console Thread | ListCommandComponent     
>         | f.shell.scr.ListCommandComponent   61 | 57 - 
> org.apache.karaf.shell.scr - 2.3.7 | Activating the Apache Karaf SCR List 
> Command
> 2014-09-09 11:49:01,741 | INFO  | l Console Thread | ActivateCommandComponent 
>         | ell.scr.ActivateCommandComponent   66 | 57 - 
> org.apache.karaf.shell.scr - 2.3.7 | Activating the Apache Karaf SCR Activate 
> Command
> 2014-09-09 11:49:01,743 | INFO  | l Console Thread | 
> DeactivateCommandComponent       | l.scr.DeactivateCommandComponent   66 | 57 
> - org.apache.karaf.shell.scr - 2.3.7 | Activating the Apache Karaf SCR 
> Deactivate Command
> 2014-09-09 11:49:01,757 | INFO  | l Console Thread | ScrServiceMBeanImpl      
>         | scr.internal.ScrServiceMBeanImpl   78 | 58 - 
> org.apache.karaf.management.mbeans.scr - 2.3.7 | Activating the Apache Karaf 
> SCR Service MBean
> 2014-09-09 11:49:10,839 | ERROR | l Console Thread | Console                  
>         | araf.shell.console.jline.Console  213 | 14 - 
> org.apache.karaf.shell.console - 2.3.7 | Exception caught while executing 
> command
> java.lang.IllegalArgumentException: Cannot coerce info() to any of [(String)]
>       at 
> org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.7]
>       at 
> org.apache.karaf.shell.console.jline.Console.run(Console.java:184)[14:org.apache.karaf.shell.console:2.3.7]
>       at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
> {code}
> There is no scr:info command, but somehow the shell tries something different?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to