karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-6275) Karaf Scripting examples from manual 5.2.8 doesn't work
Date Sat, 11 May 2019 14:44:00 GMT

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

Jean-Baptiste Onofré updated KARAF-6275:
----------------------------------------
    Description: 
Copy paste [https://karaf.apache.org/manual/latest/#_examples] second example to etc/scripts
execute failed.

{code}
karaf@root()> wait-for-command dev watch
Error executing command: can't coerce [org.apache.felix.framework.BundleContextImpl@19bb07ed,
(&(objectClass=org.apache.felix.service.command.Function)(osgi.command.scope=dev)(osgi.command.function=watch)),
null] to any of [public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.Filter,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.String,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.ServiceReference,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.Class,org.osgi.util.tracker.ServiceTrackerCustomizer)]
{code}

  was:
Copy paste [https://karaf.apache.org/manual/latest/#_examples] second example to etc/scripts
execute failed.

 

karaf@root()> wait-for-command dev watch

Error executing command: can't coerce [org.apache.felix.framework.BundleContextImpl@19bb07ed,
(&(objectClass=org.apache.felix.service.command.Function)(osgi.command.scope=dev)(osgi.command.function=watch)),
null] to any of [public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.Filter,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.String,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.ServiceReference,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.Class,org.osgi.util.tracker.ServiceTrackerCustomizer)]


> Karaf Scripting examples from manual 5.2.8 doesn't work
> -------------------------------------------------------
>
>                 Key: KARAF-6275
>                 URL: https://issues.apache.org/jira/browse/KARAF-6275
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.3
>            Reporter: Johnson Hsu
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: example, script
>             Fix For: 4.3.0, 4.2.6
>
>
> Copy paste [https://karaf.apache.org/manual/latest/#_examples] second example to etc/scripts
execute failed.
> {code}
> karaf@root()> wait-for-command dev watch
> Error executing command: can't coerce [org.apache.felix.framework.BundleContextImpl@19bb07ed,
(&(objectClass=org.apache.felix.service.command.Function)(osgi.command.scope=dev)(osgi.command.function=watch)),
null] to any of [public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.Filter,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.String,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.ServiceReference,org.osgi.util.tracker.ServiceTrackerCustomizer),
public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.Class,org.osgi.util.tracker.ServiceTrackerCustomizer)]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message