java.lang.ClassCastException: java.lang.String

Oracle Community | 843797 | 1 decade ago
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

    "ctx = new InitialDirContext(Hashtable)" throws class cast exception

    Oracle Community | 1 decade ago | 843797
    java.lang.ClassCastException: java.lang.String
  2. 0

    InitialDirContext(Hashtable enviroment)

    Oracle Community | 1 decade ago | 807551
    java.lang.ClassCastException: java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String

      at com.sun.naming.internal.ResourceManager.getInitialEnvironment()
    2. Java RT
      InitialDirContext.<init>
      1. com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:129)
      2. javax.naming.InitialContext.init(InitialContext.java:215)
      3. javax.naming.InitialContext.<init>(InitialContext.java:195)
      4. javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
      4 frames
    3. Unknown
      showResults.start
      1. showResults.login(showResults.java:134)
      2. showResults.getResults(showResults.java:110)
      3. showResults.start(showResults.java:94)
      3 frames
    4. Java RT
      Thread.run
      1. sun.applet.AppletPanel.run(AppletPanel.java:355)
      2. java.lang.Thread.run(Thread.java:536)
      2 frames