Fabric - java.net.MalformedURLException: Unknown protocol: profile2
Environment
- Red Hat Fuse
- 6.3 Rollup 8 - build number 630347
- 6.3 Rollup 9 - build number 630356
- Fabric managed environment
Issue
-
After the restart of the container, we get the following error:
java.net.MalformedURLException: Unknown protocol: profile2 -
The error is thrown randomly at various container restarts
Resolution
This Bug ENTESB-9517 has been resolved, and the fix is included in JBoss Fuse 6.3 Rollup 10 or later.
Note: From JBoss Fuse 6.3 R10 onwards you can increase the default profile URL time-out of 40s to any higher value via the following command:
profile-edit --pid io.fabric8.agent/config.profile.url.timeout='60' default
As a possible workaround:
1 - Restart the bundle pax-web-jetty:
container-connect <container>
JBossFuse:admin@child5> osgi:list -l -t 0 | grep pax-web-jetty
[ 147] [Active ] [ ] [ 30] mvn:org.ops4j.pax.web/pax-web-jetty/4.3.6
JBossFuse:admin@child5> osgi:restart 147
You are about to access system bundle 147. Do you wish to continue (yes/no): yes
2 - Restart the concerned Fabric container, like following:
container-stop <container_name>
container-start <container_name>
Root Cause
Bug ENTESB-7896.
The default retry interval of 20 seconds was too short to retrieve the profile URL handler.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
