Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14593

Illegal reflective access to constructor com.sun.jndi.ldap.LdapCtxFactory()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 23.0.0.Final
    • Naming
    • None
    • Undefined

    Description

      I've wildfly running on Windows 10 as standalone. When my application tries to access open LDAP running on remote Linux (Ubuntu 20.10 with kernel 5.8.0) this fails and warning messages are logged:

      1:45:43,846 INFO  [org.jboss.as (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://192.168.2.101:9990
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.jboss.as.naming.InitialContext (jar:file:/C:/app/jboss/wildfly-22.0.1.Final/modules/system/layers/base/org/jboss/as/naming/main/wildfly-naming-22.0.1.Final.jar!/) to constructor com.sun.jndi.ldap.LdapCtxFactory()
      WARNING: Please consider reporting this to the maintainers of org.jboss.as.naming.InitialContext
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release

      I can access LDAP from Windows 10 eg via JXPlorer indeed and this works when my application is running locally on Ubuntu.

      I've tested this under wildfly-22.0.1.Final as well as wildfly-23.0.0.Final
      Any idea what might be wrong?

      Attachments

        Activity

          People

            Unassigned Unassigned
            mayerw Wolfgang Mayer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: