java.net.MalformedURLException: Stream handler unavailable due to: For input string: "password@localhost:8081"

Solution Verified - Updated -

Issue

Trying to resolve an OSGi bundle from a repository url that also sets HTTP credentials and where the username contains the '@' character, e.g.
http://user@domain.org:password@localhost:8081/artifactory/libs-release@id=artifactory

results in
java.net.MalformedURLException: Stream handler unavailable due to: For input string: "password@localhost:8081"

Environment

  • Fuse ESB Enterprise 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In