Alejandro Fernandez Haro created AMQ-6870:
---------------------------------------------
Summary: java.lang.IllegalArgumentException: Invalid connect
parameters: {wireFormat.host=localhost}
Key: AMQ-6870
URL: https://issues.apache.org/jira/browse/AMQ-6870
Project: ActiveMQ
Issue Type: Bug
Reporter: Alejandro Fernandez Haro
when using connection string {{"stomp+ssl://localhost:61612"}} or
{{"ssl://localhost:61612?wireFormat=stomp"}}, I'm getting this error. I think
it might be related to this piece of code where it enforces the value if it
doesn't exist:
{code:title=org/apache/activemq/transport/TransportFactory.java}
public Transport doConnect(URI location) throws Exception {
try {
Map<String, String> options = new HashMap<String,
String>(URISupport.parseParameters(location));
if( !options.containsKey("wireFormat.host") ) {
options.put("wireFormat.host", location.getHost());
}
WireFormat wf = createWireFormat(options);
Transport transport = createTransport(location, wf);
Transport rc = configure(transport, wf, options);
if (!options.isEmpty()) {
throw new IllegalArgumentException("Invalid connect parameters:
" + options);
}
return rc;
} catch (URISyntaxException e) {
throw IOExceptionSupport.create(e);
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)