skip to main content
10.1145/1462735.1462749acmotherconferencesArticle/Chapter ViewAbstractPublication PagesmiddlewareConference Proceedingsconference-collections
research-article

Using the service coroner tool for diagnosing stale references in the OSGi platform

Published: 01 December 2008 Publication History

Abstract

The OSGi Service Platform is becoming the de facto middleware for the deployment of dynamic modular Java-based applications. It gives the possibility to install, to activate, to update and to uninstall application modules without needing to restart the host Java Virtual Machine. However, modules run on the memory space, and it is not possible to ensure that objects from unavailable (e.g. uninstalled) modules will no longer be referenced, since it depends on developers to correctly provide code that will handle the corresponding OSGi events which inform the departure of a module. Such errors, resulted from the mishandling of the dynamic arrival and departure of modules, are a hard to detect problem described in the OSGi specification as Stale References. It may lead to inconsistencies in application's behavior, state and memory. So far there were no tools addressing the diagnostics of this issue. In this demo we present the live utilization of our experimental tool, Service Coroner, which helps OSGi application developers and administrators in the diagnosis of stale references. Our presentation focus on the diagnosis of actual OSGi based applications that present the occurrence of stale references upon dynamic updates of modules.

References

[1]
OSGi Alliance. http://www.osgi.org
[2]
O. Gruber, B. J. Hargrave, J. McAffer, P. Rapicault, and T. Watson. The Eclipse 3.0 Platform: Adopting OSGi technology. IBM Syst. J., 44(2):289--299, 2005.
[3]
M. Desertot, D. Donsez, and P. Lalanda. A Dynamic Service-Oriented Implementation for Java EE Servers. In SCC '06: Proceedings of the IEEE International Conference on Services Computing, pages 159--166, Washington, DC, USA, 2006. IEEE Computer Society.
[4]
K. Gama and D. Donsez. A Practical Approach for Finding Stale References in a Dynamic Service Platform. In 11th International Symposium on Component Based Software Engineering (CBSE 2008). Springer LNCS volume 5282, 2008.
[5]
K. Gama and D. Donsez. Service Coroner: A Diagnostic Tool for Finding OSGi Stale References. In Proceedings of the 34th EUROMICRO Conference on Software Engineering and Advanced Applications (SEAA). IEEE, 2008.
[6]
G. Kiczales, J. Lamping, A. Mendhekar, C. Maeda, C. V. Lopes, J. M. Loingtier, J. Irwin: Aspect-Oriented Programming. In: M. Akşit, S. Matsuoka (eds.) ECOOP 1997. LNCS, vol. 1241. Springer, Heidelberg (1997)
[7]
The AspectJ Project. http://www.eclipse.org/aspectj
[8]
Apache Felix. http://felix.apache.org
[9]
Equinox Framework. http://www.eclipse.org/equinox/framework
[10]
Knopflerfish OSGi. http://www.knopflerfish.org
[11]
JOnAS Open Source Java EE Application Server, http://jonas.objectweb.org
[12]
SIP Communicator, http://www.sip-communicator.org
[13]
Newton Framework, http://newton.codecauldron.org
[14]
Z. Chen, S. Fickas: Do No Harm: Model Checking eHome Applications. In: Proceedings of the 29th Intl. Conference on Software Engineering Workshops, Minneapolis, USA (2007)

Cited By

View all
  • (2009)I-JVM: a Java Virtual Machine for component isolation in OSGi2009 IEEE/IFIP International Conference on Dependable Systems & Networks10.1109/DSN.2009.5270296(544-553)Online publication date: Jun-2009

Index Terms

  1. Using the service coroner tool for diagnosing stale references in the OSGi platform

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    Companion '08: Proceedings of the ACM/IFIP/USENIX Middleware '08 Conference Companion
    December 2008
    134 pages
    ISBN:9781605583693
    DOI:10.1145/1462735
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 December 2008

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. OSGi
    2. aspect oriented programming
    3. services platform
    4. stale references

    Qualifiers

    • Research-article

    Conference

    Middleware '08

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 07 Mar 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2009)I-JVM: a Java Virtual Machine for component isolation in OSGi2009 IEEE/IFIP International Conference on Dependable Systems & Networks10.1109/DSN.2009.5270296(544-553)Online publication date: Jun-2009

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media