Testsuite: org.apache.catalina.realm.TestJNDIRealm Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.616 sec ------------- Standard Error ----------------- Oct 10, 2024 11:25:13 AM org.apache.catalina.realm.JNDIRealm startInternal SEVERE: Exception opening directory server connection javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:251) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:732) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) at org.apache.catalina.realm.JNDIRealm.startInternal(JNDIRealm.java:2724) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.realm.TestJNDIRealm.testErrorRealm(TestJNDIRealm.java:126) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:50) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1042) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:340) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:283) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:230) ... 45 more Oct 10, 2024 11:25:13 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:251) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:732) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$0(TestJNDIRealm.java:129) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:340) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:283) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:230) ... 20 more Oct 10, 2024 11:25:13 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:251) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:732) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$1(TestJNDIRealm.java:130) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:340) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:283) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:230) ... 20 more Oct 10, 2024 11:25:13 AM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.CommunicationException: 127.0.0.1:12345 [Root exception is java.net.ConnectException: Connection refused] at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:251) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:137) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1616) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2848) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:348) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl(LdapCtxFactory.java:229) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:189) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:247) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154) at java.naming/com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84) at java.naming/javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:732) at java.naming/javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305) at java.naming/javax.naming.InitialContext.init(InitialContext.java:236) at java.naming/javax.naming.InitialContext.(InitialContext.java:208) at java.naming/javax.naming.directory.InitialDirContext.(InitialDirContext.java:130) at org.apache.catalina.realm.JNDIRealm.createDirContext(JNDIRealm.java:2547) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2517) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2472) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1151) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$2(TestJNDIRealm.java:131) at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:633) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:340) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:283) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:230) ... 20 more ------------- ---------------- --------------- Testcase: testAuthenticateWithUserPassword took 1.474 sec Testcase: testAuthenticateWithoutUserPassword took 0.001 sec Testcase: testAuthenticateWithUserPasswordAndCredentialHandler took 0.002 sec Testcase: testErrorRealm took 0.075 sec