Blueprint context init fails with "Unknown protocol: profile" at container startup

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content