Jolokia request reports "Invalid number of operation arguments" in an invocation with URIs

Solution Verified - Updated -

Issue

Making a Jolokia request that involves a URI, like this:

http://fuse:8181/hawtio/jolokia/exec/io.fabric8:type=Fabric/importProfiles(java.lang.String,java.util.List)/1.0/["mvn:foo.bar/foo/bar/1.0.0-SNAPSHOT/zip/profile"]

fails with an error message about the number of arguments:

"java.lang.IllegalArgumentException: Invalid number of operation arguments. Operation importProfiles(java.lang.String,java.util.List) on io.fabric8:type=Fabric requires 2 parameters, not 6 as given

Environment

  • Red Hat JBoss Fuse
    • 6.2
    • 6.3

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.