Menu

#3 LogService and LogreaderService disappear after restart

1.0.X
open
nobody
None
5
2014-08-25
2009-09-28
No

I'm having a bit of a problem with the logging services provided by the Concierge framework. I've developed a logging backend using LogService and LogReaderService, which works fine. However, up until recently I was always recreating a new init.xargs every time my program started, and then giving -Dxargs on the command line. Everything was working.

Recently, however, I needed to change the startup behavior to start wherever Concierge stopped last time. So I stopped giving the -Dxargs argument at the command line. Almost everything continues to work fine as expected, but the LogService and LogReaderService services are missing. My logging stops working, as you might expect.

I am pasting the following things below:
1) Parts of the log from running with -Dxargs
2) Parts of the log from running without -Dxargs
3) My init.xargs file (used in 1)

Thanks for any help!
Matt

Using -Dxargs:
Starting fluid core with this command: 'cvm -Xmx8m -Djava.net.preferIPv4Stack=true -Dcore.data.dir=/home/mtennant/cp/ccp/fluid-cache -Dcore.zwave1.interface=/dev/ttyUSB0 -Dcore.http.port=8080 -Dorg.osgi.service.http.port=8080 -Dcore.logging.level=3 -Dcore.conf.file=/home/mtennant/cp/ccp/fluid-cache/fluid-core.conf -Dxargs=/home/mtennant/cp/ccp/fluid-cache/osgi-config/init.xargs -Dch.ethz.iks.concierge.storage=/home/mtennant/cp/ccp/fluid-cache/osgi-config -jar lib/concierge.jar'
---------------------------------------------------------
Concierge OSGi 1.0.0 on Linux 2.6.28-15-generic starting ...
---------------------------------------------------------
INSTALLING lib/commons.jar
INSTALLING lib/javax.servlet.jar
INSTALLING lib/org.apache.commons.logging.jar
INSTALLING lib/org.osgi.service.http.jar
INSTALLING lib/shell.jar
INSTALLING lib/upnplib.jar
INSTALLING core.jar
INSTALLING plugins/ipc.jar
INSTALLING plugins/led.jar
INSTALLING plugins/ndc.jar
INSTALLING plugins/pgw.jar
INSTALLING plugins/portmap.jar
INSTALLING plugins/tweenagent.jar
INSTALLING plugins/upnp.jar
INSTALLING plugins/zwave.jar
...
---------------------------------------------------------
Framework started in 1.99 seconds.
---------------------------------------------------------
...
Concierge> bundles
Bundles:
[ 0] (active) System Bundle
[ 1] (resolved) 4Home Commons Library
[ 2] (resolved) Servlet API Bundle
[ 3] (resolved) Apache Commons Logging Plug-in
[ 4] (active) HTTP Service
[ 5] (active) Concierge Shell
[ 6] (resolved) 4Home UPnP Library
[ 7] (active) 4Home Core
[ 8] (active) 4Home IP Camera Client
[ 9] (active) 4Home LED Panel Client
[10] (active) 4Home NDC Client
[11] (active) 4Home Portal Gateway
[12] (active) 4Home Portmap Client
[13] (active) 4Home Tweener Agent Client
[14] (active) 4Home UPnP Client
[15] (active) 4Home ZWave Client

Concierge> services
Services:
SystemBundle
[Service 1] [org.osgi.service.startlevel.StartLevel, org.osgi.service.packageadmin.PackageAdmin]
[Service 2] [org.osgi.service.log.LogService, org.osgi.service.log.LogReaderService]
Bundle [4]: file:./lib/org.osgi.service.http.jar
[Service 3] [org.osgi.service.http.HttpService]
Bundle [7]: file:./core.jar
[Service 4] [com.fourhome.commons.FluidPermanentProperties]
Bundle [8]: file:./plugins/ipc.jar
[Service 5] [com.fourhome.ipcamera.IPCameraDriver]
Bundle [9]: file:./plugins/led.jar
[Service 6] [com.fourhome.led.LedPanel]
Bundle [10]: file:./plugins/ndc.jar
[Service 7] [com.fourhome.ndc.GatewayService]
Bundle [11]: file:./plugins/pgw.jar
[Service 8] [com.fourhome.pgw.PortalClient]
Bundle [12]: file:./plugins/portmap.jar
[Service 9] [com.fourhome.direct.DirectAccessClient]
Bundle [13]: file:./plugins/tweenagent.jar
[Service 10] [com.fourhome.tweener.TweenerService]
Bundle [14]: file:./plugins/upnp.jar
[Service 11] [com.fourhome.upnp.UPnPClient]
Bundle [15]: file:./plugins/zwave.jar
[Service 12] [com.fourhome.zwave.ZWaveClient]

Without -Dxargs:
Starting fluid core with this command: 'cvm -Xmx8m -Djava.net.preferIPv4Stack=true -Dcore.data.dir=/home/mtennant/cp/ccp/fluid-cache -Dcore.zwave1.interface=/dev/ttyUSB0 -Dcore.http.port=8080 -Dorg.osgi.service.http.port=8080 -Dcore.logging.level=3 -Dcore.conf.file=/home/mtennant/cp/ccp/fluid-cache/fluid-core.conf -Dch.ethz.iks.concierge.storage=/home/mtennant/cp/ccp/fluid-cache/osgi-config -jar lib/concierge.jar'
---------------------------------------------------------
Concierge OSGi 1.0.0 on Linux 2.6.28-15-generic starting ...
---------------------------------------------------------
restoring profile default
RESTORED BUNDLE file:./lib/org.osgi.service.http.jar
RESTORED BUNDLE file:./core.jar
RESTORED BUNDLE file:./plugins/upnp.jar
RESTORED BUNDLE file:./plugins/led.jar
RESTORED BUNDLE file:./plugins/pgw.jar
RESTORED BUNDLE file:./plugins/tweenagent.jar
RESTORED BUNDLE file:./plugins/zwave.jar
RESTORED BUNDLE file:./lib/upnplib.jar
RESTORED BUNDLE file:./plugins/portmap.jar
RESTORED BUNDLE file:./lib/org.apache.commons.logging.jar
RESTORED BUNDLE file:./lib/commons.jar
RESTORED BUNDLE file:./plugins/ipc.jar
RESTORED BUNDLE file:./lib/javax.servlet.jar
RESTORED BUNDLE file:./lib/shell.jar
RESTORED BUNDLE file:./plugins/ndc.jar
...
---------------------------------------------------------
Framework restarted in 1.723 seconds.
---------------------------------------------------------
...
Concierge> bundles
Bundles:
[ 0] (active) System Bundle
[ 4] (active) HTTP Service
[ 7] (active) 4Home Core
[14] (active) 4Home UPnP Client
[ 9] (active) 4Home LED Panel Client
[11] (active) 4Home Portal Gateway
[13] (active) 4Home Tweener Agent Client
[15] (active) 4Home ZWave Client
[ 6] (resolved) 4Home UPnP Library
[12] (active) 4Home Portmap Client
[ 3] (resolved) Apache Commons Logging Plug-in
[ 1] (resolved) 4Home Commons Library
[ 8] (active) 4Home IP Camera Client
[ 2] (resolved) Servlet API Bundle
[ 5] (active) Concierge Shell
[10] (active) 4Home NDC Client

Concierge> services
Services:
SystemBundle
[Service 1] [org.osgi.service.startlevel.StartLevel, org.osgi.service.packageadmin.PackageAdmin]
Bundle [4]: file:./lib/org.osgi.service.http.jar
[Service 2] [org.osgi.service.http.HttpService]
Bundle [7]: file:./core.jar
[Service 3] [com.fourhome.commons.FluidPermanentProperties]
Bundle [14]: file:./plugins/upnp.jar
[Service 4] [com.fourhome.upnp.UPnPClient]
Bundle [9]: file:./plugins/led.jar
[Service 5] [com.fourhome.led.LedPanel]
Bundle [11]: file:./plugins/pgw.jar
[Service 6] [com.fourhome.pgw.PortalClient]
Bundle [13]: file:./plugins/tweenagent.jar
[Service 7] [com.fourhome.tweener.TweenerService]
Bundle [15]: file:./plugins/zwave.jar
[Service 8] [com.fourhome.zwave.ZWaveClient]
Bundle [12]: file:./plugins/portmap.jar
[Service 9] [com.fourhome.direct.DirectAccessClient]
Bundle [8]: file:./plugins/ipc.jar
[Service 10] [com.fourhome.ipcamera.IPCameraDriver]
Bundle [10]: file:./plugins/ndc.jar
[Service 11] [com.fourhome.ndc.GatewayService]

Contents of init.xargs file:
-Dch.ethz.iks.concierge.jars=file:.
-Dch.ethz.iks.concierge.log.enabled=true
-Dch.ethz.iks.concierge.log.quiet=true
-Dch.ethz.iks.concierge.log.level=3

-init

-istart lib/commons.jar
-istart lib/javax.servlet.jar
-istart lib/org.apache.commons.logging.jar
-istart lib/org.osgi.service.http.jar
-istart lib/shell.jar
-istart lib/upnplib.jar
-istart core.jar
-istart plugins/ipc.jar
-istart plugins/led.jar
-istart plugins/ndc.jar
-istart plugins/pgw.jar
-istart plugins/portmap.jar
-istart plugins/tweenagent.jar
-istart plugins/upnp.jar
-istart plugins/zwave.jar

Discussion


Log in to post a comment.

MongoDB Logo MongoDB