Christian Niehues created TAMAYA-305:
----------------------------------------
Summary: InstantiationException on EnumConverter when adding
default converters
Key: TAMAYA-305
URL: https://issues.apache.org/jira/browse/TAMAYA-305
Project: Tamaya
Issue Type: Bug
Components: Core
Affects Versions: 0.4-incubating
Environment: Ubuntu 14.04
Java 8
Karaf 4.1.1
Reporter: Christian Niehues
When I try to add the default property converters to the
ConfigurationContextBuilder like
ConfigurationContextBuilder builder =
ConfigurationProvider.getConfigurationContextBuilder();
builder.addDefaultPropertyConverters();
I get the following error
2017-09-21T09:43:42,196 | ERROR | FelixDispatchQueue | core
| 367 - org.apache.tamaya.core - 0.4.0.incubating-201709190608 |
FrameworkEvent ERROR - org.apache.tamaya.core
org.osgi.framework.ServiceException: Service factory returned null. (Component:
org.apache.tamaya.core.internal.converters.EnumConverter (16))
at
org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
[?:?]
at
org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
[?:?]
at
org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
[?:?]
at org.apache.felix.framework.Felix.getService(Felix.java:3720) [?:?]
at
org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
[?:?]
at
org.apache.tamaya.core.internal.OSGIServiceContext.getServices(OSGIServiceContext.java:97)
[367:org.apache.tamaya.core:0.4.0.incubating-201709190608]
at
org.apache.tamaya.core.internal.DefaultConfigurationContextBuilder.getDefaultPropertyConverters(DefaultConfigurationContextBuilder.java:398)
[367:org.apache.tamaya.core:0.4.0.incubating-201709190608]
at
org.apache.tamaya.core.internal.DefaultConfigurationContextBuilder.addDefaultPropertyConverters(DefaultConfigurationContextBuilder.java:171)
[367:org.apache.tamaya.core:0.4.0.incubating-201709190608]
at
org.apache.tamaya.core.internal.DefaultConfigurationContextBuilder.addDefaultPropertyConverters(DefaultConfigurationContextBuilder.java:51)
[367:org.apache.tamaya.core:0.4.0.incubating-201709190608]
Checking the EnumConverter this makes sense because of missing default
constructor but I can't see how it has been added because it is not a part of
the core converters.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)