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, 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