Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8141685

com/sun/jndi/ldap/InvalidLdapFilters.java initializes context failed

    XMLWordPrintable

    Details

      Description

      InvalidLdapFilters.java failed intermittently. This test tried to new InitialDirContext(env), but failed for 5 times.

      #section:build
      ----------messages:(3/101)----------
      command: build InvalidLdapFilters
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. All files up to date

      #section:main
      ----------messages:(3/199)----------
      command: main InvalidLdapFilters invalid "&(objectClass=*)(uid=*)"
      reason: User specified action: run main/othervm InvalidLdapFilters invalid "&(objectClass=*)(uid=*)"
      elapsed time (seconds): 0.913
      ----------System.out:(1/20)----------
      arguments length: 2
      ----------System.err:(33/2105)----------
      java.lang.Exception: Maybe timeout during context initialization
      at InvalidLdapFilters.doClientSide(InvalidLdapFilters.java:184)
      at InvalidLdapFilters.startClient(InvalidLdapFilters.java:284)
      at InvalidLdapFilters.<init>(InvalidLdapFilters.java:292)
      at InvalidLdapFilters.main(InvalidLdapFilters.java:329)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:747)
      Caused by: javax.naming.ServiceUnavailableException: localhost:53427; socket closed
      at com.sun.jndi.ldap.Connection.readReply(Connection.java:407)
      at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:365)
      at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:192)
      at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2791)
      at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:320)
      at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)
      at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210)
      at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153)
      at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:717)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
      at javax.naming.InitialContext.init(InitialContext.java:236)
      at javax.naming.InitialContext.<init>(InitialContext.java:208)
      at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101)
      at InvalidLdapFilters.doClientSide(InvalidLdapFilters.java:178)
      ... 9 more

      JavaTest Message: Test threw exception: java.lang.Exception: Maybe timeout during context initialization
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: Maybe timeout during context initialization

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aefimov Aleksej Efimov
              Reporter:
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: