Blueprint context init fails with "Unknown protocol: profile" at container startup
Issue
When a bundle opens a resource with the "profile:" protocol, sometimes the following error is seen when starting the container:
Caused by: java.net.MalformedURLException: Unknown protocol: profile
at java.net.URL.<init>(URL.java:630)[:1.7.0_101]
at java.net.URL.<init>(URL.java:493)[:1.7.0_101]
at java.net.URL.<init>(URL.java:442)[:1.7.0_101]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_101]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_101]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_101]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_101]
at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:331)[15:org.apache.aries.blueprint.core:1.4.4]
at org.apache.aries.blueprint.container.AggregateConverter.createObject(AggregateConverter.java:319)[15:org.apache.aries.blueprint.core:1.4.4]
... 33 more
Caused by: java.lang.IllegalStateException: Unknown protocol: profile
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
at java.net.URL.<init>(URL.java:625)[:1.7.0_101]
Environment
- Red Hat JBoss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
