Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C8289FCF for ; Sun, 26 May 2013 19:32:20 +0000 (UTC) Received: (qmail 64005 invoked by uid 500); 26 May 2013 19:32:20 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 63977 invoked by uid 500); 26 May 2013 19:32:20 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 63968 invoked by uid 99); 26 May 2013 19:32:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 May 2013 19:32:20 +0000 Date: Sun, 26 May 2013 19:32:20 +0000 (UTC) From: "Mark Struberg (JIRA)" To: deltaspike-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DELTASPIKE-339) JndiUtils is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg resolved DELTASPIKE-339. -------------------------------------- Resolution: Fixed exception now gets ignored. This is a standard operation situation. > JndiUtils is broken > ------------------- > > Key: DELTASPIKE-339 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-339 > Project: DeltaSpike > Issue Type: Bug > Components: Core > Affects Versions: 0.4-incubating > Reporter: Mark Struberg > Assignee: Mark Struberg > Priority: Blocker > Fix For: 0.4-incubating > > > A recent change in JndiUtils caused a bug in a few Containers > java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI > at org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79) > at org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186) > at org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72) > The code currently enlists all registered objects in JNDI java:comp and tries to lookup() them as a specific type. But as per the spec of javax.naming.Context this will always throw a javax.naming.NamingException if the type of the registered object in JNDI does not match the type for the bind() operation. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira