Exception: "Illegal to use different protocols when multiple URLs are specified".

Exception: "Illegal to use different protocols when multiple URLs are specified".

book

Article ID: KB0089420

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Causes:
=========
The exception can be thrown in the following situation:

1). Application does JNDI lookup via URL that includes "|".  For example,

"tibjmsnaming://localhost:7222,tibjmsnaming://localhost:7224|tibjmsnaming://localhhost:7227,tibjmsnaming://localhost:7228"

"|" is not supported for JNDI server URL.

Exception can be shown as:

javax.naming.ServiceUnavailableException: Failed to query JNDI: Illegal to use different protocols when multiple URLs are specified [Root exception is javax.jms.JMSException: Illegal to use different protocols when multiple URLs are specified]

2). Application is connected to EMS via a FT URL that includes both TCP and SSL.  For example,

tcp://localhost:7222,ssl://localhost:7243

If a JNDI lookup is performed, check if the FT URL in the factories.conf file is configured correctly.

Issue/Introduction

Exception: "Illegal to use different protocols when multiple URLs are specified".