javax.naming.InvalidNameException: A null or empty name is not allowed.

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    WebSphere Dynacache Thread Blocking

    Stack Overflow | 5 months ago | Michael Hoffman
    javax.naming.InvalidNameException: A null or empty name is not allowed.
  2. 0

    JNDI Help!!

    Oracle Community | 8 years ago | 843830
    javax.naming.InvalidNameException: Support is available only for the NameService key string at com.sun.jndi.url.corbaname.corbanameURLContextFactory.rewriteUrl(corb anameURLContextFactory.java:196) at com.sun.jndi.url.corbaname.corbanameURLContextFactory.getUsingURLIgno reRest(corbanameURLContextFactory.java:113) at com.sun.jndi.url.corbaname.corbanameURLContext.getRootURLContext(corb anameURLContext.java:46) at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.j ava:185)

    Root Cause Analysis

    1. javax.naming.InvalidNameException

      A null or empty name is not allowed.

      at com.ibm.ws.naming.ipbase.NameSpace.validateName()
    2. WebSphere
      NameSpace.intermediateCacheLookup
      1. com.ibm.ws.naming.ipbase.NameSpace.validateName(NameSpace.java:1632)
      2. com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1115)
      3. com.ibm.ws.naming.ipbase.NameSpace.intermediateCacheLookup(NameSpace.java:1101)
      3 frames
    3. com.ibm.ws
      Cache.bind
      1. com.ibm.ws.naming.jcache.Cache.getParentContext(Cache.java:943)
      2. com.ibm.ws.naming.jcache.Cache.bind(Cache.java:382)
      2 frames
    4. WebSphere
      CNContextImpl.lookup
      1. com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:3738)
      2. com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1861)
      3. com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1762)
      4. com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1513)
      5. com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:645)
      5 frames
    5. com.ibm.ws
      WsnInitCtx.lookup
      1. com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:166)
      2. com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:180)
      2 frames
    6. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:436)
      1 frame