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 9B519200B79 for ; Tue, 23 Aug 2016 14:36:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 99F0B160ABF; Tue, 23 Aug 2016 12:36:22 +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 E0E02160AA5 for ; Tue, 23 Aug 2016 14:36:21 +0200 (CEST) Received: (qmail 31522 invoked by uid 500); 23 Aug 2016 12:36:20 -0000 Mailing-List: contact dev-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list dev@flume.apache.org Received: (qmail 31503 invoked by uid 99); 23 Aug 2016 12:36:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2016 12:36:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9C6DB2C0031 for ; Tue, 23 Aug 2016 12:36:20 +0000 (UTC) Date: Tue, 23 Aug 2016 12:36:20 +0000 (UTC) From: "Denes Arvay (JIRA)" To: dev@flume.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLUME-2976) Exception when JMS source tries to connect to a Weblogic server without authentication MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 23 Aug 2016 12:36:22 -0000 Denes Arvay created FLUME-2976: ---------------------------------- Summary: Exception when JMS source tries to connect to a Weblogic server without authentication Key: FLUME-2976 URL: https://issues.apache.org/jira/browse/FLUME-2976 Project: Flume Issue Type: Bug Components: Sinks+Sources Affects Versions: v1.6.0 Reporter: Denes Arvay If no {{userName}} and {{passwordFile}} is set for the JMS source it sets the password to {{Optional("")}} (see: https://github.com/apache/flume/blob/trunk/flume-ng-sources/flume-jms-source/src/main/java/org/apache/flume/source/jms/JMSSource.java#L127) This leads to an exception in the weblogic jndi context implementation when trying to connect to a weblogic jms server. {noformat} java.lang.IllegalArgumentException: The 'java.naming.security.principal' property has not been specified at weblogic.jndi.Environment.getSecurityUser(Environment.java:562) at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:665) at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:485) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:373) at weblogic.jndi.Environment.getContext(Environment.java:319) at weblogic.jndi.Environment.getContext(Environment.java:288) at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.init(InitialContext.java:242) at javax.naming.InitialContext.(InitialContext.java:216) at org.apache.flume.source.jms.InitialContextFactory.create(InitialContextFactory.java:28) at org.apache.flume.source.jms.JMSSource.doConfigure(JMSSource.java:223) {noformat} Changing the above mentioned line to {{Optional.absent()}} fixes the issue. [~brocknoland]: Is there any specific reason for setting the password to {{Optional("")}} when there is no {{passwordFile}} set? -- This message was sent by Atlassian JIRA (v6.3.4#6332)