celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Parker (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CELIX-170) Remote services can fail to restart when felix restarts
Date Fri, 17 Oct 2014 14:09:34 GMT

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

Daniel Parker commented on CELIX-170:
-------------------------------------

celix Remote Service Messages when first starting:
INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=org.syntech.unit.message.embedded.RemoteMessageLogService)"
added
INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=org.syntech.transaction.embedded.RemoteTransactionLogService)"
added
INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=commandService)" added
INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=shellService)" added
-> INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=log_reader_service)" added
LogWriter: BUNDLE_EVENT_STARTED from apache_celix_log_writer
LogWriter: BUNDLE_EVENT_RESOLVED from org.syntech.authorizationComponent
INFO: TOPOLOGY_MANAGER: listener with filter "(objectClass=org.syntech.mainboard.authorization.MainboardAuthorizationService)"
added
LogWriter: BUNDLE_EVENT_STARTED from org.syntech.authorizationComponent
LogWriter: BUNDLE_EVENT_RESOLVED from org.syntech.configurationhandler
INFO: TOPOLOGY_MANAGER: Add exported service (19).
INFO: RSA: Export services (org.syntech.mainboard.configuration.MainboardConfigurator)
Cannot open endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_endpoint.zip
or endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_endpoint.zip.zip
ERROR: File I/O exception [70008]: "Failed to create revision"
        at bundleRevision_create(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_revision.c:74)
ERROR: File I/O exception [70008]: "Could not create revision [location=endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_endpoint.zip,inputFile=(null)]"
        at bundleArchive_createRevisionFromLocation(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:575)
ERROR: File I/O exception [70008]: "Could not revise bundle archive"
        at bundleArchive_reviseInternal(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:548)
ERROR: File I/O exception [70008]: "Could not revise bundle archive"
        at bundleArchive_revise(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:525)
ERROR: File I/O exception [70008]: "Could not create archive"
        at bundleArchive_create(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:137)
ERROR: File I/O exception [70008]: "Failed to create archive"
        at bundleCache_createArchive(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_cache.c:135)
ERROR: File I/O exception [70008]: Could not install bundle
        at fw_installBundle2(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/framework.c:556)
ERROR: Framework exception [70007]: "Failed to install bundle"
        at bundleContext_installBundle2(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_context.c:135)
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=remote_endpoint)(remote.interface=org.syntech.mainboard.configuration.MainboardConfigurator))"
added
INFO: Endpoint for org.syntech.mainboard.configuration.MainboardConfigurator, with filter
"(&(objectClass=*)(endpoint.framework.uuid=f3f254dd-9339-4b41-9dab-5c4713108457))" added...
INFO: exposing new endpoint "a8f21ca6-712e-4ff2-8edb-39919fc14a37"...
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=org.syntech.mainboard.configuration.MainboardConfigurator)(!(type=ATMAppHandler)))"
added
LogWriter: BUNDLE_EVENT_STARTED from org.syntech.configurationhandler
LogWriter: BUNDLE_EVENT_RESOLVED from org.syntech.configurationhandler.shell
LogWriter: BUNDLE_EVENT_STARTED from org.syntech.configurationhandler.shell
WARNING: ENDPOINT_DESCRIPTOR_READER: Only single-valued string supported for service.id

WARNING: ENDPOINT_DESCRIPTOR_READER: Only single-valued string supported for service.id

WARNING: ENDPOINT_DESCRIPTOR_READER: Only single-valued string supported for service.id

INFO: Adding service (org.syntech.unit.message.embedded.RemoteMessageLogService)
INFO: TOPOLOGY_MANAGER: Add imported service (org.syntech.unit.message.embedded.RemoteMessageLogService;
cd0f1086-39c1-4bb7-87d2-91389c1a7a52).
INFO: RSA: Import service org.syntech.unit.message.embedded.RemoteMessageLogService
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=remote_proxy_factory)(proxy.interface=org.syntech.unit.message.embedded.RemoteMessageLogService))"
added
INFO: remoteServiceAdmin_importService: new registration_factory added for org.syntech.unit.message.embedded.RemoteMessageLogService
at 0xb5421dd8
LogWriter: BUNDLE_EVENT_INSTALLED from org.syntech.unit.message.embedded.RemoteMessageLogService_proxy
LogWriter: BUNDLE_EVENT_RESOLVED from org.syntech.unit.message.embedded.RemoteMessageLogService_proxy
INFO: endpoints/org.syntech.unit.message.embedded.RemoteMessageLogService_proxy.zip successfully
started.
LogWriter: BUNDLE_EVENT_STARTED from org.syntech.unit.message.embedded.RemoteMessageLogService_proxy
INFO: Adding service (org.syntech.transaction.embedded.RemoteTransactionLogService)
INFO: TOPOLOGY_MANAGER: Add imported service (org.syntech.transaction.embedded.RemoteTransactionLogService;
dd1762bd-c3ea-4aaa-943a-48c904223471).
INFO: RSA: Import service org.syntech.transaction.embedded.RemoteTransactionLogService
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=remote_proxy_factory)(proxy.interface=org.syntech.transaction.embedded.RemoteTransactionLogService))"
added
INFO: remoteServiceAdmin_importService: new registration_factory added for org.syntech.transaction.embedded.RemoteTransactionLogService
at 0xb5419db0
LogWriter: BUNDLE_EVENT_INSTALLED from org.syntech.transaction.embedded.RemoteTransactionLogService_proxy
LogWriter: BUNDLE_EVENT_RESOLVED from org.syntech.transaction.embedded.RemoteTransactionLogService_proxy
INFO: endpoints/org.syntech.transaction.embedded.RemoteTransactionLogService_proxy.zip successfully
started.
LogWriter: BUNDLE_EVENT_STARTED from org.syntech.transaction.embedded.RemoteTransactionLogService_proxy
INFO: Adding service (org.syntech.mainboard.configuration.MainboardConfigurator)
INFO: TOPOLOGY_MANAGER: Add imported service (org.syntech.mainboard.configuration.MainboardConfigurator;
f2f67b38-a959-4d0e-a261-842793931b90).
INFO: RSA: Import service org.syntech.mainboard.configuration.MainboardConfigurator
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=remote_proxy_factory)(proxy.interface=org.syntech.mainboard.configuration.MainboardConfigurator))"
added
INFO: remoteServiceAdmin_importService: new registration_factory added for org.syntech.mainboard.configuration.MainboardConfigurator
at 0xb541fc60
Cannot open endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_proxy.zip
or endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_proxy.zip.zip
ERROR: File I/O exception [70008]: "Failed to create revision"
        at bundleRevision_create(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_revision.c:74)
ERROR: File I/O exception [70008]: "Could not create revision [location=endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_proxy.zip,inputFile=(null)]"
        at bundleArchive_createRevisionFromLocation(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:575)
ERROR: File I/O exception [70008]: "Could not revise bundle archive"
        at bundleArchive_reviseInternal(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:548)
ERROR: File I/O exception [70008]: "Could not revise bundle archive"
        at bundleArchive_revise(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:525)
ERROR: File I/O exception [70008]: "Could not create archive"
        at bundleArchive_create(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_archive.c:137)
ERROR: File I/O exception [70008]: "Failed to create archive"
        at bundleCache_createArchive(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_cache.c:135)
ERROR: File I/O exception [70008]: Could not install bundle
        at fw_installBundle2(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/framework.c:556)
ERROR: Framework exception [70007]: "Failed to install bundle"
        at bundleContext_installBundle2(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/framework/private/src/bundle_context.c:135)
ERROR: endpoints/org.syntech.mainboard.configuration.MainboardConfigurator_proxy.zip could
not be installed.
        at importRegistrationFactory_open(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/remote_services/remote_service_admin_http/private/src/import_registration_impl.c:135)
ERROR: remoteServiceAdmin_importService: cannot open registration_factory for org.syntech.mainboard.configuration.MainboardConfigurator.
        at importRegistrationFactory_install(/home/dparker/yocto/poky/build-jetway/tmp/work/core2-elp-linux/celix/1.0.0-r2/trunk/remote_services/remote_service_admin_http/private/src/import_registration_impl.c:230)
INFO: TOPOLOGY_MANAGER: listener with filter "(&(objectClass=remote_proxy_factory)(proxy.interface=org.syntech.mainboard.configuration.MainboardConfigurator))"
removed.
WARNING: RSA: no proxyFactory available.
ps
  ID    State        Name
  0     Active       framework
  1     Active       apache_celix_rsa_discovery_configured
  2     Active       apache_celix_rs_topology_manager
  3     Active       apache_celix_remote_service_admin_http
  4     Active       org.syntech.unit.atmapp.embedded.ATMapp
  5     Active       apache_celix_shell
  6     Active       apache_celix_shell_tui
  7     Active       apache_celix_log_service
  8     Active       apache_celix_log_writer
  9     Active       org.syntech.authorizationComponent
  10    Active       org.syntech.configurationhandler
  11    Active       org.syntech.configurationhandler.shell
  13    Active       org.syntech.unit.message.embedded.RemoteMessageLogService_proxy
  14    Active       org.syntech.transaction.embedded.RemoteTransactionLogService_proxy

> Remote services can fail to restart when felix restarts
> -------------------------------------------------------
>
>                 Key: CELIX-170
>                 URL: https://issues.apache.org/jira/browse/CELIX-170
>             Project: Celix
>          Issue Type: Bug
>          Components: Remote Service Admin
>            Reporter: Daniel Parker
>
> If you have a number of services which are offered remotely from felix, but only some
of them actually have proxies installed on the celix side, then the system works fine the
first time, but it can get confused if felix restarts.  In this case, some of the remote services
which do have proxies installed may not restart properly in celix.
> Example: at Syntech, the felix side provides an Authorization Service, a Configuration
Service, a Transaction Service, and a Message service.  The Authorization Service and the
Configuration Service are still being worked on, so they don't have endpoints installed in
celix.  The first time the system starts, the installed services are loaded correctly.  If
the felix side is restarted, the Message service starts correctly, but the Transaction Service
does not start.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message