felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dieter Wimberger (JIRA)" <j...@apache.org>
Subject [jira] Closed: (FELIX-585) org.apache.felix.webconsole.internal.compendium.ConfigManager.listConfigurations(): Configuration instances for ManagedServiceFactoy instances cause IllegalArgumentException
Date Wed, 06 Aug 2008 16:40:44 GMT

     [ https://issues.apache.org/jira/browse/FELIX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dieter Wimberger closed FELIX-585.
----------------------------------


> org.apache.felix.webconsole.internal.compendium.ConfigManager.listConfigurations(): Configuration
instances for ManagedServiceFactoy instances cause IllegalArgumentException
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-585
>                 URL: https://issues.apache.org/jira/browse/FELIX-585
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Dieter Wimberger
>         Attachments: ConfigManager.java.diff
>
>
> Once a Configuration can be created for a ManagedServiceFactory instance, this instance
will cause a IllegalArgumentException in 
> org.apache.felix.webconsole.internal.compendium.ConfigManager.listConfigurations(): 
> java.lang.IllegalArgumentException: Object Class Definition ID not found
> The reason for this is the fact that the code does not properly look for the ObjectClassDefinition
of the factory (which would apply in the case of ManagedServiceFactory instances).
> Example:
> When creating a Configuration instance for the factory "net.wimpi.telnetd.service.TelnetListenerServiceFactory",
the ConfigurationAdmin will assign a unique identifier (pid) for the Configuration instance
e.g. "net.wimpi.telnetd.service.TelnetListenerServiceFactory-1212198114040-7". This Configuration
has the pid "net.wimpi.telnetd.service.TelnetListenerServiceFactory-1212198114040-7", but
there will never be any ObjectClassDefinition for this pid available from the MetaTypeService.
> Given that the code does not check for an associated factoryPid FIRST, the exception
will happen and nothing will appear in the list in the console form.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message