Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-339

JndiUtils is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.4
    • 0.4
    • Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            johndament John D. Ament
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: