Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B61DB200C0E for ; Wed, 1 Feb 2017 12:26:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B464D160B44; Wed, 1 Feb 2017 11:26:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB792160B43 for ; Wed, 1 Feb 2017 12:26:35 +0100 (CET) Received: (qmail 47163 invoked by uid 500); 1 Feb 2017 11:26:35 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 47152 invoked by uid 99); 1 Feb 2017 11:26:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2017 11:26:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 53EC4185DBB for ; Wed, 1 Feb 2017 11:26:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.78 X-Spam-Level: * X-Spam-Status: No, score=1.78 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id q10gqzdtpcuX for ; Wed, 1 Feb 2017 11:26:32 +0000 (UTC) Received: from SNT004-OMC2S28.hotmail.com (snt004-omc2s28.hotmail.com [65.55.90.103]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2543A5F2F0 for ; Wed, 1 Feb 2017 11:26:31 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com ([65.55.90.71]) by SNT004-OMC2S28.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 1 Feb 2017 03:25:42 -0800 Received: from DB5EUR01FT053.eop-EUR01.prod.protection.outlook.com (10.152.4.51) by DB5EUR01HT176.eop-EUR01.prod.protection.outlook.com (10.152.5.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2; Wed, 1 Feb 2017 11:25:34 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com (10.152.4.58) by DB5EUR01FT053.mail.protection.outlook.com (10.152.5.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Wed, 1 Feb 2017 11:25:33 +0000 Received: from VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) by VI1PR0901MB0893.eurprd09.prod.outlook.com ([10.167.199.9]) with mapi id 15.01.0860.026; Wed, 1 Feb 2017 11:25:33 +0000 From: Adel Boutros To: "users@qpid.apache.org" Subject: Re: [Qpid Java Broker 6.0.4][Qpid JMS 0.11.1] Setting SSL options to AMQP non secured port triggers exception in JMS Thread-Topic: [Qpid Java Broker 6.0.4][Qpid JMS 0.11.1] Setting SSL options to AMQP non secured port triggers exception in JMS Thread-Index: AQHSfHNQwqDVZz0BB0i7iwVTbJj7iaFT9QiAgAADGQCAAAKHZ4AAA1kAgAAE24I= Date: Wed, 1 Feb 2017 11:25:33 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: qpid.apache.org; dkim=none (message not signed) header.d=none;qpid.apache.org; dmarc=none action=none header.from=live.com; x-incomingtopheadermarker: OriginalChecksum:80AB336AB035906618F0502596CC85EB24F2276C6730E623C7318090EEDB1ACA;UpperCasedChecksum:FB09833815117AAD5A24CA3AC22C246C2767F9A54FDFCD8E429FA01B905E7ED9;SizeAsReceived:8170;Count:38 x-tmn: [Rtnj4BnLJSQiZwGVsWlp/2kM3z7FdUCP] x-incomingheadercount: 38 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;DB5EUR01HT176;7:IrTSNvzpMMA6GSfZ2911T1g+KC2zJYQhbVpcde5oXuPmkjize/odVFeOdGBCWDpyNX+lU0P1ZraK+o3WQmRc3zpz3uGkgNo48xJ+FP4m4t9eLQn+HDiRCVDOzvOTlj0/HCwZ455sLqjri39hzyL5b7RN0UizU8BXSV6sPBf73EcF7P5kdvj7b78fbBd6i1MnZ63LgHBokqK8qiuYfPKHSmY55aCdZIAi6aTRfXvdRV98NGIb67usij6MS4ZOor3EduTZwQjox6GOmlWY+IC+6PqPHc1GyDV+DmV+ukadd43GiioNn79MRKvR7mG3uza/qgok3I+1OUjac12z2X+MhpT+zRygtPK9uWglyEQ4o3NLxIUKMT00TlAm/e7fepTQQGWtrOXggyNZA7NsU006feML7oSEpwmckj+DvzPjTXEQ8pPRO/QUDexpC2FPnjLrhileKilvE6yp+T2BJhybyPYoMj1wKZ2cCTxS7HsGoSZ0oXBatVbVbgKmpGIVJOROBJtBzsi3ww0YBayetiPhoA== x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900005);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5EUR01HT176;H:VI1PR0901MB0893.eurprd09.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 553a6467-6e57-4c0c-abbb-08d44a9509b1 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(1601124038)(5061506344)(1603103123)(1601125047)(1701031033);SRVR:DB5EUR01HT176; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444111334)(444112120)(432015012)(82015046);SRVR:DB5EUR01HT176;BCL:0;PCL:0;RULEID:;SRVR:DB5EUR01HT176; x-forefront-prvs: 0205EDCD76 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_VI1PR0901MB08930E3D6BD55394B27BC428CD4D0VI1PR0901MB0893_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2017 11:25:33.8366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT176 X-OriginalArrivalTime: 01 Feb 2017 11:25:42.0591 (UTC) FILETIME=[EC642CF0:01D27C7D] archived-at: Wed, 01 Feb 2017 11:26:36 -0000 --_000_VI1PR0901MB08930E3D6BD55394B27BC428CD4D0VI1PR0901MB0893_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Understood. Thanks! Adel ________________________________ From: Rob Godfrey Sent: Wednesday, February 1, 2017 12:08:02 PM To: users@qpid.apache.org Subject: Re: [Qpid Java Broker 6.0.4][Qpid JMS 0.11.1] Setting SSL options = to AMQP non secured port triggers exception in JMS So - bearing in mind that I was not involved (except very slightly) in the development of this component, the general reason to throw an exception rather than to ignore is in case the application programmer has made a typo, or is expecting some behaviour by setting the option... and the fact that no action will be taken (because of a typo, or because the option has no effect in the context) will be a surprise to them. So, if - for example - you were using an SSL connection, but had supplied the option verfyHost=3Dfalse (i.e. you had accidentally omitted the i in verify) then it seems appropriate to throw the exception. Ideally a better error message could be generated to differentiate between completely unknown (and thus likely typos) options, and options that are not valid on this transport (e.g. verifyHost on a non TLS connection), but overall I think the decision to throw an exception is reasonable. -- Rob On 1 February 2017 at 11:57, Adel Boutros wrote: > So for me there are 2 possible solutions: > > 1) Throw exception > > 2 ) Ignore the useless parameters > > > So for my general knowledge, why do you think the first one (Which is > implemented in the JMS client) is the appropriate one? > > > Regards, > > Adel > > ________________________________ > From: Robbie Gemmell > Sent: Wednesday, February 1, 2017 11:47:00 AM > To: users@qpid.apache.org > Subject: Re: [Qpid Java Broker 6.0.4][Qpid JMS 0.11.1] Setting SSL option= s > to AMQP non secured port triggers exception in JMS > > Yep, the client is reporting that a given transport option was not > able to be applied, in this case because its still using the 'tcp > transport' and the verifyHost option only applies with the 'ssl > transport'. As you thought, this occurs before it even attempts to > make a connection. > > Robbie > > On 1 February 2017 at 10:35, Rob Godfrey wrote: > > I'm not an expert on the JMS client, but I'm not sure that the > "verifyHost" > > option would make any sense on a non-TLS connection (since by definitio= n > > you can only verify the host when you receive the TLS certificate). > > > > I think the use of the Java Broker here is not important, as I assume > this > > fails before it even tries to make a connection, > > > > -- Rob > > > > On 1 February 2017 at 11:31, Adel Boutros wrote: > > > >> Hello, > >> > >> > >> I was playing around SSL/SASL with the Java Broker and noticed that so= me > >> of the options which I can pass to the JMS client do not work. > >> > >> > >> For example, if I set the following url for the JMS Connection Factory= , > I > >> will get the below exception. Is this expected behavior? > >> > >> > >> JmsConnectionFactory jmsConnectionFactory =3D new > >> JmsConnectionFactory("amqp://localhost:5672?transport. > verifyHost=3Dfalse"); > >> jmsConnectionFactory.createConnection(); > >> > >> > >> Caused by: java.lang.IllegalArgumentException: Not all transport > options > >> could be set on the TCP Transport. Check the options are spelled > correctly. > >> Unused parameters=3D[{verifyHost=3Dfalse}]. This provider instance can= not > be > >> started. > >> at org.apache.qpid.jms.transports.TransportFactory.createTransport= ( > >> TransportFactory.java:64) > >> at org.apache.qpid.jms.transports.TransportFactory. > >> create(TransportFactory.java:120) > >> at org.apache.qpid.jms.provider.amqp.AmqpProvider.connect( > >> AmqpProvider.java:160) > >> > >> > >> Regards, > >> > >> Adel > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > > --_000_VI1PR0901MB08930E3D6BD55394B27BC428CD4D0VI1PR0901MB0893_--