Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-769

ClassCastException during JNDI lookup from WAB inside EBA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3
    • None
    • JNDI
    • None

    Description

      I was trying to perform a JNDI lookup from a WAB inside an EBA and I hit this problem.
      java.lang.ClassCastException: org.eclipse.osgi.internal.serviceregistry.ServiceReferenceImpl incompatible with org.eclipse.osgi.internal.serviceregistry.ServiceReferenceImpl
      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594)
      at org.apache.aries.jndi.Utils$4.run(Utils.java:197)
      at java.security.AccessController.doPrivileged(AccessController.java:202)
      at org.apache.aries.jndi.Utils.getServicePrivileged(Utils.java:195)
      at org.apache.aries.jndi.ContextHelper.getInitialContextUsingBuilder(ContextHelper.java:206)
      at org.apache.aries.jndi.ContextHelper.getContextProvider(ContextHelper.java:140)
      at org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:118)
      at org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:225)
      at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:318)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:348)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:411)
      at javax.naming.InitialContext.lookup(InitialContext.java:436)

      Attachments

        1. Aries-769-patch.txt
          1 kB
          Richard Ellis

        Activity

          People

            not Alasdair Nottingham
            ricellis Richard Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: