java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268"

Jenkins JIRA | Petr H | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    In the case of LDAP plugin it's possible to provide list of multiple ldap servers separated by space, see for example JENKINS-16443 But in the case of Active directory plugin it doesn't work as entering the following in the server entry: dc3.intra.net:3268 10.1.1.11:3268 dc2.intra.net:3268 leads to:{noformat}java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.sun.jndi.toolkit.url.Uri.parse(Uri.java:232) at com.sun.jndi.toolkit.url.Uri.init(Uri.java:138) at com.sun.jndi.ldap.LdapURL.<init>(LdapURL.java:82) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:163) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:484) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:434) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:273) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:219) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:163) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.authenticate(ActiveDirectorySecurityRealm.java:666) ...{noformat}

    Jenkins JIRA | 1 year ago | Petr H
    java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268"
  2. 0

    In the case of LDAP plugin it's possible to provide list of multiple ldap servers separated by space, see for example JENKINS-16443 But in the case of Active directory plugin it doesn't work as entering the following in the server entry: dc3.intra.net:3268 10.1.1.11:3268 dc2.intra.net:3268 leads to:{noformat}java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.sun.jndi.toolkit.url.Uri.parse(Uri.java:232) at com.sun.jndi.toolkit.url.Uri.init(Uri.java:138) at com.sun.jndi.ldap.LdapURL.<init>(LdapURL.java:82) at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:163) at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:484) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:434) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:273) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:219) at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:163) at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.authenticate(ActiveDirectorySecurityRealm.java:666) ...{noformat}

    Jenkins JIRA | 1 year ago | Petr H
    java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268"

    Root Cause Analysis

    1. java.lang.NumberFormatException

      For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268"

      at java.lang.NumberFormatException.forInputString()
    2. Java RT
      LdapCtxFactory.getLdapCtxInstance
      1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      2. java.lang.Integer.parseInt(Integer.java:580)
      3. java.lang.Integer.parseInt(Integer.java:615)
      4. com.sun.jndi.toolkit.url.Uri.parse(Uri.java:232)
      5. com.sun.jndi.toolkit.url.Uri.init(Uri.java:138)
      6. com.sun.jndi.ldap.LdapURL.<init>(LdapURL.java:82)
      7. com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:163)
      8. com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)
      8 frames
    3. hudson.plugins.active_directory
      ActiveDirectorySecurityRealm.authenticate
      1. hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:484)
      2. hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:434)
      3. hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:273)
      4. hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:219)
      5. hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:163)
      6. hudson.plugins.active_directory.ActiveDirectorySecurityRealm.authenticate(ActiveDirectorySecurityRealm.java:666)
      6 frames