mjung85 / iotsys

Automatically exported from code.google.com/p/iotsys
32 stars 15 forks source link

Errors when running using OSGi #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I cloned the latest version from google code and followed all steps from here: 
https://code.google.com/p/iotsys/wiki/gettingstarted
It compiles successfully, only with some "deprecated" warnings. When I try to 
run it using OSGi, this is the console output:

C:\iotsys\felix-framework-4.2.1>java -jar bin/felix.jar
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.connectors.bacnet.BACne
tBundleActivator start
INFO: Starting BACnet connector
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.connectors.bacnet.BACne
tBundleActivator start
SEVERE: Could not find a running object broker to register devices!
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.control.TestClientActivator sta
rt
INFO: Starting Test Client.
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.control.TestClientActivator sta
rt
SEVERE: Could not find a running object broker to register devices!
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.demoapp.DemoAppActivator start
INFO: Starting demo app
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.demoapp.DemoAppActivator start
SEVERE: Could not find a running object broker to register devices!
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.connectors.enocean.Enoc
eanBundleActivator start
INFO: Starting Enocean connector
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.connectors.enocean.Enoc
eanBundleActivator start
SEVERE: Could not find a running object broker to register devices!
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.IoTSySGatewayActivator
start
INFO: Starting IoTSySGateway.
VII 31, 2013 1:10:34 PM at.ac.tuwien.auto.iotsys.gateway.IoTSySGatewayActivator
start
SEVERE: Could not find mDNS-SD Service!
2013-07-31 13:10:34 [at.ac.tuwien.auto.iotsys.gateway.Log] INFO - ==[ START-UP ]
========================================================
2013-07-31 13:10:34 [at.ac.tuwien.auto.iotsys.gateway.IoTSySGateway] INFO - Serv
er starting.
ERROR: Bundle at.ac.tuwien.auto.iotsys.gateway [9] Error starting file:/C:/iotsy
s/felix-framework-4.2.1/bundle/iotsys-gateway-0.1.jar (org.osgi.framework.Bundle
Exception: Activator start error in bundle at.ac.tuwien.auto.iotsys.gateway [9].
)
java.lang.NoClassDefFoundError: at/ac/tuwien/auto/iotsys/gateway/obix/objects/kn
x/datapoint/DataPoint
        at at.ac.tuwien.auto.iotsys.gateway.obix.objects.ContractInit.init(Contr
actInit.java:126)
        at at.ac.tuwien.auto.iotsys.gateway.IoTSySGateway.startGateway(IoTSySGat
eway.java:106)
        at at.ac.tuwien.auto.iotsys.gateway.IoTSySGateway.startGateway(IoTSySGat
eway.java:91)
        at at.ac.tuwien.auto.iotsys.gateway.IoTSySGatewayActivator.start(IoTSySG
atewayActivator.java:80)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)

        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart
LevelImpl.java:304)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: at.ac.tuwien.auto.iotsys.gateway.ob
ix.objects.knx.datapoint.DataPoint not found by at.ac.tuwien.auto.iotsys.gateway
 [9]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
gation(BundleWiringImpl.java:1532)
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm
pl.java:75)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
ss(BundleWiringImpl.java:1955)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 10 more
2013-07-31 13:10:34 [at.ac.tuwien.auto.iotsys.gateway.connectors.knx.KNXBundleAc
tivator] INFO - Starting KNX connector
2013-07-31 13:10:34 [at.ac.tuwien.auto.iotsys.gateway.connectors.knx.KNXBundleAc
tivator] SEVERE - Could not find a running object broker to register devices!
ERROR: Bundle at.ac.tuwien.auto.iotsys.mdnssd [11] Error starting file:/C:/iotsy
s/felix-framework-4.2.1/bundle/iotsys-mdnssd-0.1.jar (org.osgi.framework.BundleE
xception: Not found: at.ac.tuwien.auto.iotsys.mdnssd.MDnssdActivator)
java.lang.ClassNotFoundException: at.ac.tuwien.auto.iotsys.mdnssd.MDnssdActivato
r not found by at.ac.tuwien.auto.iotsys.mdnssd [11]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
gation(BundleWiringImpl.java:1532)
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm
pl.java:75)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
ss(BundleWiringImpl.java:1955)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(Bund
leWiringImpl.java:1374)
        at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:432
9)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2141)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2064)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)

        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart
LevelImpl.java:304)
        at java.lang.Thread.run(Unknown Source)
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connectors.virtual.Virtual
BundleActivator] INFO - Starting Virtual connector
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connectors.virtual.Virtual
BundleActivator] SEVERE - Could not find a running object broker to register dev
ices!
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connector.wmbus.WMBusBundl
eActivator] INFO - Starting WMBUS connector
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connector.wmbus.WMBusBundl
eActivator] SEVERE - Could not find a running object broker to register devices!

2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.xacml.PDPBundleActivator] INFO - X
ACML module enabled: false
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connectors.xbee.XBeeBundle
Activator] INFO - Starting XBee connector
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.gateway.connectors.xbee.XBeeBundle
Activator] SEVERE - Could not find a running object broker to register devices!
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
2013-07-31 13:10:35 [at.ac.tuwien.auto.iotsys.control.TestClientActivator] INFO
- Service changed.
____________________________
Welcome to Apache Felix Gogo

g!

Original issue reported on code.google.com by mishoboss on 31 Jul 2013 at 10:15

GoogleCodeExporter commented 9 years ago
P.S. This is on Windows 7 64 bit, using JDK 1.7.0

Original comment by mishoboss on 31 Jul 2013 at 10:17