javax.naming.NotContextException

Not an instance of DirContext at javax.naming.directory.InitialDirContext. getURLOrDefaultInitDirCtx(InitialDirContext.java:92) at javax.naming.directory.InitialDirContext. search(InitialDirContext.java:210)

Solutions on the web38

  • via Oracle Community by 392 Guest, 11 months ago
    Not an instance of DirContext at javax.naming.directory.InitialDirContext. getURLOrDefaultInitDirCtx(InitialDirContext.java:92) at javax.naming.directory.InitialDirContext. search(InitialDirContext.java:210)
  • Not an instance of DirContext at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:92) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:123) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:118)
  • via Java.net JIRA by mkuthan, 1 year ago
    Not an instance of DirContext at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:92) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:123) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:118)
  • Stack trace

    • javax.naming.NotContextException: Not an instance of DirContext at javax.naming.directory.InitialDirContext. getURLOrDefaultInitDirCtx(InitialDirContext.java:92) at javax.naming.directory.InitialDirContext. search(InitialDirContext.java:210) at ConnectLdap.search(ConnectLdap.java:173)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.