Testsuite: org.apache.catalina.realm.TestJNDIRealm Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.067 sec ------------- Standard Error ----------------- Dec 05, 2024 9:55:34 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:256) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) 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:520) 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:2544) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2514) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2469) at org.apache.catalina.realm.JNDIRealm.startInternal(JNDIRealm.java:2721) 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.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) 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:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:345) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:288) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:235) ... 43 more Dec 05, 2024 9:55:34 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:256) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) 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:520) 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:2544) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2514) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2469) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1153) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$0(TestJNDIRealm.java:129) at java.base/java.lang.Thread.run(Thread.java:1570) 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:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:345) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:288) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:235) ... 20 more Dec 05, 2024 9:55:34 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:256) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) 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:520) 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:2544) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2514) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2469) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1153) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$1(TestJNDIRealm.java:130) at java.base/java.lang.Thread.run(Thread.java:1570) 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:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:345) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:288) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:235) ... 20 more Dec 05, 2024 9:55:34 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:256) at java.naming/com.sun.jndi.ldap.LdapClient.(LdapClient.java:144) at java.naming/com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1656) at java.naming/com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2859) at java.naming/com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:351) 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:520) 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:2544) at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:2514) at org.apache.catalina.realm.JNDIRealm.get(JNDIRealm.java:2469) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:1153) at org.apache.catalina.realm.TestJNDIRealm.lambda$testErrorRealm$2(TestJNDIRealm.java:131) at java.base/java.lang.Thread.run(Thread.java:1570) 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:682) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:592) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) at java.base/java.net.Socket.connect(Socket.java:752) at java.naming/com.sun.jndi.ldap.Connection.createConnectionSocket(Connection.java:345) at java.naming/com.sun.jndi.ldap.Connection.createSocket(Connection.java:288) at java.naming/com.sun.jndi.ldap.Connection.(Connection.java:235) ... 20 more ------------- ---------------- --------------- Testcase: testAuthenticateWithUserPassword took 1.838 sec Testcase: testAuthenticateWithoutUserPassword took 0.005 sec Testcase: testAuthenticateWithUserPasswordAndCredentialHandler took 0.002 sec Testcase: testErrorRealm took 0.166 sec