Giter Site home page Giter Site logo

Comments (9)

robnielsen avatar robnielsen commented on May 23, 2024

It's also failing for me, but I'm getting a different error:

2016-01-17 09:18:07.156 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/home/rob/oh2/addons/org.openhab.binding.netatmo-1.9.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.netatmo [10]
  Unresolved requirement: Import-Package: com.google.common.base

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:509)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0]

from openhab-distro.

lolodomo avatar lolodomo commented on May 23, 2024

@robnielsen : you are using a 1.8 snapshot while I am using the official 1.8 version of the binding. Maybe it can explain the difference ?

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

https://openhab.ci.cloudbees.com/job/openHAB-Distribution/88/

from openhab-distro.

robnielsen avatar robnielsen commented on May 23, 2024

@kaikreuzer, I just tried 88 and got the same error

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Are you sure?
I get

openhab> bundle:list -s |grep netatmo
167 | Active   |  80 | 1.9.0.201601170211    | org.openhab.binding.netatmo

and

23:59:31.353 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTING - org.openhab.binding.netatmo
23:59:31.354 [DEBUG] [ng.netatmo.internal.NetatmoActivator] - Netatmo binding has been started.
23:59:31.358 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService}={service.pid=org.openhab.netatmo, component.name=org.openhab.binding.netatmo.binding, component.id=217, service.id=343, service.bundleid=167, service.scope=bundle} - org.openhab.binding.netatmo
23:59:31.363 [DEBUG] [org.openhab.binding.netatmo         ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.netatmo.NetatmoBindingProvider}={component.name=org.openhab.binding.netatmo.genericbindingprovider, component.id=218, service.id=341, service.bundleid=167, service.scope=bundle} - org.openhab.binding.netatmo
23:59:31.363 [DEBUG] [org.openhab.binding.netatmo         ] - BundleEvent STARTED - org.openhab.binding.netatmo

from openhab-distro.

robnielsen avatar robnielsen commented on May 23, 2024

I'm using the zip file: https://openhab.ci.cloudbees.com/job/openHAB-Distribution/88/artifact/distributions/openhab-offline/target/openhab-offline-2.0.0-SNAPSHOT.zip.

I'm seeing different things in the log file. The first time I see:

2016-01-17 17:26:04.185 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/home/rob/oh2/addons/org.openhab.binding.netatmo-1.9.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.netatmo [29]
  Unresolved requirement: Import-Package: org.codehaus.jackson

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:509)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0]
2016-01-17 17:26:07.111 [INFO ] [.openhab.core.internal.CoreActivator] - openHAB runtime has been started (v2.0.0, build 201601150204).
2016-01-17 17:26:23.302 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/home/rob/oh2/addons/org.openhab.binding.netatmo-1.9.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.netatmo [29]
  Unresolved requirement: Import-Package: org.codehaus.jackson

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1207)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:504)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0]
2016-01-17 17:26:23.306 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/home/rob/oh2/addons/org.openhab.binding.netatmo-1.9.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.netatmo [29]
  Unresolved requirement: Import-Package: org.codehaus.jackson

        at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:509)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0]
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0]
2016-01-17 17:26:23.591 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'demo.items'

Then I'm pressing ctrl-d, deleting the log files and starting again. This time I get:

2016-01-17 17:28:56.559 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been started
2016-01-17 17:28:56.564 [INFO ] [b.core.service.AbstractActiveService] - Netatmo Refresh Service has been shut down

I'm not seeing any indication of why it starts and immediately is shutting down.

from openhab-distro.

maggu2810 avatar maggu2810 commented on May 23, 2024

Have you installed the bundles using by using the feature installation?

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

@maggu2810: There is no feature defined for Netatmo yet.
I also simply put the jar in the addons folder - but maybe I have another feature already installed, which brings the jackson libs (afair, they aren't part of the runtime anymore...)

from openhab-distro.

kaikreuzer avatar kaikreuzer commented on May 23, 2024

Ok, the problem is that you are lacking the 1.x compatibility layer on your runtime. I have just amended the documentation with #95.
Please run feature:install openhab-runtime-compat1x and all should be fine!

from openhab-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.