> On Sep 3, 2023, at 8:32 PM, Emmanuel Lécharny <[email protected]> wrote:
>
> Hi Shawn,
>
> just checked out the tag (3.0.0) and tried it, got an error in SECTION 4,
> step 2:
>
Hey Emmanuel,
Based on the error (extracted from output below):
```
2023-09-04 03:30:009 INFO LdapConnectionProvider:425 - Use Default TLS
protocols:[TLSv1, TLSv1.1, TLSv1.2]
2023-09-04 03:30:009 ERROR DefaultLdapConnectionFactory:72 -
ERR_04102_UNABLE_TO_BIND_CONNECTION unable to bind connection:
ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: Connection
refused
2023-09-04 03:30:009 ERROR LdapConnectionPool:183 -
ERR_04107_UNEXPECTED_THROWN_EXCEPTION An unexpected exception was thrown:
Returned object not currently part of this pool
java.lang.IllegalStateException: Returned object not currently part of this pool
at
org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:1023)
~[commons-pool2-2.11.1.j
```
The connection is refused. Which ldap server are you connecting with, ADS?
It’s trying localhost:389. Is that right?
Thanks
—
Shawn
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> 2023-09-04 03:30:009 INFO LogUtil:64 - TD-RLS TR1
> 2023-09-04 03:30:009 INFO Config:557 - static init: found from:
> fortress.properties path:
> /Users/elecharny/apacheds/directory-fortress-core/target/test-classes/fortress.properties
> 2023-09-04 03:30:009 INFO Config:559 - static init: loading from:
> fortress.properties
> 2023-09-04 03:30:009 INFO Config:775 - static init: load config realm
> [DEFAULT]
> 2023-09-04 03:30:009 INFO ConfigDAO:332 - getConfig dn
> [cn=DEFAULT,ou=Config,dc=example,dc=com]
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:127 - LDAP POOL:
> host=[localhost], port=[389], min=[1], max=[10]
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:425 - Use Default TLS
> protocols:[TLSv1, TLSv1.1, TLSv1.2]
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:123 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.18060.0.0.1)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:131 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.7)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:139 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.2)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:148 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.319)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:156 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.3)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:164 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.18)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:172 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.473)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:180 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.474)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:188 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.10.1)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:85 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.18060.0.0.1)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:94 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.7)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:103 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.2)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:113 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.319)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:122 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.3)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:131 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.18)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:140 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.473)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:149 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.474)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:158 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.10.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:116 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.841)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:125 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.841)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:134 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.2239)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:147 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.417)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:157 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.528)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:166 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.4)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:175 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.42.2.27.8.5.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:184 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.42.2.27.8.5.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:193 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.1413)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:202 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:211 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:221 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.2)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:230 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.1.21.2)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:240 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.9)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:250 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.10)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:259 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.666.5.12)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:291 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.8)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:300 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.8)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:309 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.21.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:317 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.5)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:327 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:335 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.1466.20036)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:344 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.1.11.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:353 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.1466.20037)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:362 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.21.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:371 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.6)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:380 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.1.11.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:403 -
> MSG_06002_REGISTERED_INTERMEDIATE_FACTORY (1.3.6.1.4.1.4203.1.9.1.4)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.1)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.2)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.3)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.4)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.5)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.6)
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:425 - Use Default TLS
> protocols:[TLSv1, TLSv1.1, TLSv1.2]
> 2023-09-04 03:30:009 ERROR DefaultLdapConnectionFactory:72 -
> ERR_04102_UNABLE_TO_BIND_CONNECTION unable to bind connection:
> ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: Connection
> refused
> 2023-09-04 03:30:009 ERROR LdapConnectionPool:183 -
> ERR_04107_UNEXPECTED_THROWN_EXCEPTION An unexpected exception was thrown:
> Returned object not currently part of this pool
> java.lang.IllegalStateException: Returned object not currently part of this
> pool
> at
> org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:1023)
> ~[commons-pool2-2.11.1.jar:2.11.1]
> at
> org.apache.directory.ldap.client.api.LdapConnectionPool.releaseConnection(LdapConnectionPool.java:171)
> [api-all-2.1.4.jar:2.1.4]
> at
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.closeAdminConnection(LdapConnectionProvider.java:269)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ldap.LdapDataProvider.closeAdminConnection(LdapDataProvider.java:1254)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigDAO.getConfig(ConfigDAO.java:354)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigP.read(ConfigP.java:175)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigMgrImpl.read(ConfigMgrImpl.java:117)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.getRemoteConfig(Config.java:438)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.loadRemoteConfig(Config.java:776)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.getInstance(Config.java:110)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ReviewMgrFactory.createInstance(ReviewMgrFactory.java:66)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ReviewMgrFactory.createInstance(ReviewMgrFactory.java:114)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ReviewMgrImplTest.getManagedReviewMgr(ReviewMgrImplTest.java:1794)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.ReviewMgrImplTest.teardownRequired(ReviewMgrImplTest.java:419)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.FortressJUnitTest.getFirstRun(FortressJUnitTest.java:65)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.FortressJUnitTest.<clinit>(FortressJUnitTest.java:60)
> [test-classes/:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at
> org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer.getRunner(Computer.java:50)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer$1.runnerForClass(Computer.java:31)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:125)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:111)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runners.Suite.<init>(Suite.java:81)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer$2.<init>(Computer.java:33)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer.getSuite(Computer.java:28)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Request.classes(Request.java:77)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Request.classes(Request.java:92)
> [junit-4.13.2.jar:4.13.2]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at
> org.apache.maven.surefire.common.junit4.JUnit4Reflector.createRequest(JUnit4Reflector.java:63)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.common.junit4.JUnit4ProviderUtil.createSuiteDescription(JUnit4ProviderUtil.java:113)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.createTestsDescription(JUnit4Provider.java:257)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> [surefire-booter-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> [surefire-booter-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [surefire-booter-2.18.1.jar:2.18.1]
> 2023-09-04 03:30:009 WARN LdapConnectionProvider:273 - Error closing admin
> connection: java.lang.RuntimeException: java.lang.IllegalStateException:
> Returned object not currently part of this pool
> 2023-09-04 03:30:009 ERROR Config:816 - static init: Error loading from
> remote config:
> SecurityException=org.apache.directory.fortress.core.FinderException:
> getConfig dn [cn=DEFAULT,ou=Config,dc=example,dc=com] caught
> LdapException=org.apache.directory.api.ldap.model.exception.LdapException:
> org.apache.directory.ldap.client.api.exception.InvalidConnectionException:
> ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: Connection
> refused
> Running org.apache.directory.fortress.core.impl.FortressJUnitTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<<
> FAILURE! - in org.apache.directory.fortress.core.impl.FortressJUnitTest
> initializationError(org.apache.directory.fortress.core.impl.FortressJUnitTest)
> Time elapsed: 0.005 sec <<< ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.directory.fortress.core.impl.FortressJUnitTest
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
> at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
> at
> org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
> at
> org.junit.internal.requests.ClassRequest$CustomSuiteMethodBuilder.runnerForClass(ClassRequest.java:51)
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> at
> org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> at
> org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
> at
> org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
>
> Results :
>
> Tests in error:
> FortressJUnitTest.initializationError » NoClassDefFound Could not initialize
> c...
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.814 s
> [INFO] Finished at: 2023-09-04T03:30:09+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on
> project fortress-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /Users/elecharny/apacheds/directory-fortress-core/target/surefire-reports for
> the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> 2023-09-04 03:30:009 INFO LogUtil:64 - TD-RLS TR1
> 2023-09-04 03:30:009 INFO Config:557 - static init: found from:
> fortress.properties path:
> /Users/elecharny/apacheds/directory-fortress-core/target/test-classes/fortress.properties
> 2023-09-04 03:30:009 INFO Config:559 - static init: loading from:
> fortress.properties
> 2023-09-04 03:30:009 INFO Config:775 - static init: load config realm
> [DEFAULT]
> 2023-09-04 03:30:009 INFO ConfigDAO:332 - getConfig dn
> [cn=DEFAULT,ou=Config,dc=example,dc=com]
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:127 - LDAP POOL:
> host=[localhost], port=[389], min=[1], max=[10]
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:425 - Use Default TLS
> protocols:[TLSv1, TLSv1.1, TLSv1.2]
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:123 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.18060.0.0.1)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:131 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.7)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:139 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.2)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:148 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.319)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:156 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.3)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:164 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.18)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:172 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.473)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:180 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.474)
> 2023-09-04 03:30:009 INFO DefaultLdapCodecService:188 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.10.1)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:85 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.18060.0.0.1)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:94 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.7)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:103 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.2)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:113 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.319)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:122 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.3)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:131 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.18)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:140 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.473)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:149 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.474)
> 2023-09-04 03:30:009 INFO StockCodecFactoryUtil:158 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.10.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:116 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.841)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:125 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.841)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:134 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.2239)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:147 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.417)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:157 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.528)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:166 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.4)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:175 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.42.2.27.8.5.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:184 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.42.2.27.8.5.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:193 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.2.840.113556.1.4.1413)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:202 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:211 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:221 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.1.9.1.2)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:230 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.1.21.2)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:240 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.9)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:250 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (2.16.840.1.113730.3.4.10)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:259 -
> MSG_06000_REGISTERED_CONTROL_FACTORY (1.3.6.1.4.1.4203.666.5.12)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:291 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.8)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:300 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.8)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:309 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.21.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:317 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.5)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:327 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:335 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.1466.20036)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:344 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.1.11.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:353 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.1466.20037)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:362 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.1.21.1)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:371 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.18060.0.1.6)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:380 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.1.11.3)
> 2023-09-04 03:30:009 INFO ExtrasCodecFactoryUtil:403 -
> MSG_06002_REGISTERED_INTERMEDIATE_FACTORY (1.3.6.1.4.1.4203.1.9.1.4)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.1)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.2)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.3)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.4)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.5)
> 2023-09-04 03:30:009 INFO StandaloneLdapApiService:462 -
> MSG_06001_REGISTERED_EXTENDED_OP_FACTORY (1.3.6.1.4.1.4203.555.6)
> 2023-09-04 03:30:009 INFO LdapConnectionProvider:425 - Use Default TLS
> protocols:[TLSv1, TLSv1.1, TLSv1.2]
> 2023-09-04 03:30:009 ERROR DefaultLdapConnectionFactory:72 -
> ERR_04102_UNABLE_TO_BIND_CONNECTION unable to bind connection:
> ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: Connection
> refused
> 2023-09-04 03:30:009 ERROR LdapConnectionPool:183 -
> ERR_04107_UNEXPECTED_THROWN_EXCEPTION An unexpected exception was thrown:
> Returned object not currently part of this pool
> java.lang.IllegalStateException: Returned object not currently part of this
> pool
> at
> org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:1023)
> ~[commons-pool2-2.11.1.jar:2.11.1]
> at
> org.apache.directory.ldap.client.api.LdapConnectionPool.releaseConnection(LdapConnectionPool.java:171)
> [api-all-2.1.4.jar:2.1.4]
> at
> org.apache.directory.fortress.core.ldap.LdapConnectionProvider.closeAdminConnection(LdapConnectionProvider.java:269)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ldap.LdapDataProvider.closeAdminConnection(LdapDataProvider.java:1254)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigDAO.getConfig(ConfigDAO.java:354)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigP.read(ConfigP.java:175)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ConfigMgrImpl.read(ConfigMgrImpl.java:117)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.getRemoteConfig(Config.java:438)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.loadRemoteConfig(Config.java:776)
> [classes/:?]
> at
> org.apache.directory.fortress.core.util.Config.getInstance(Config.java:110)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ReviewMgrFactory.createInstance(ReviewMgrFactory.java:66)
> [classes/:?]
> at
> org.apache.directory.fortress.core.ReviewMgrFactory.createInstance(ReviewMgrFactory.java:114)
> [classes/:?]
> at
> org.apache.directory.fortress.core.impl.ReviewMgrImplTest.getManagedReviewMgr(ReviewMgrImplTest.java:1794)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.ReviewMgrImplTest.teardownRequired(ReviewMgrImplTest.java:419)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.FortressJUnitTest.getFirstRun(FortressJUnitTest.java:65)
> [test-classes/:?]
> at
> org.apache.directory.fortress.core.impl.FortressJUnitTest.<clinit>(FortressJUnitTest.java:60)
> [test-classes/:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at
> org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer.getRunner(Computer.java:50)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer$1.runnerForClass(Computer.java:31)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:125)
> [junit-4.13.2.jar:4.13.2]
> at
> org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:111)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runners.Suite.<init>(Suite.java:81)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer$2.<init>(Computer.java:33)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Computer.getSuite(Computer.java:28)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Request.classes(Request.java:77)
> [junit-4.13.2.jar:4.13.2]
> at org.junit.runner.Request.classes(Request.java:92)
> [junit-4.13.2.jar:4.13.2]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
> at
> org.apache.maven.surefire.common.junit4.JUnit4Reflector.createRequest(JUnit4Reflector.java:63)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.common.junit4.JUnit4ProviderUtil.createSuiteDescription(JUnit4ProviderUtil.java:113)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.createTestsDescription(JUnit4Provider.java:257)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> [surefire-junit4-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> [surefire-booter-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> [surefire-booter-2.18.1.jar:2.18.1]
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [surefire-booter-2.18.1.jar:2.18.1]
> 2023-09-04 03:30:009 WARN LdapConnectionProvider:273 - Error closing admin
> connection: java.lang.RuntimeException: java.lang.IllegalStateException:
> Returned object not currently part of this pool
> 2023-09-04 03:30:009 ERROR Config:816 - static init: Error loading from
> remote config:
> SecurityException=org.apache.directory.fortress.core.FinderException:
> getConfig dn [cn=DEFAULT,ou=Config,dc=example,dc=com] caught
> LdapException=org.apache.directory.api.ldap.model.exception.LdapException:
> org.apache.directory.ldap.client.api.exception.InvalidConnectionException:
> ERR_04110_CANNOT_CONNECT_TO_SERVER Cannot connect to the server: Connection
> refused
> Running org.apache.directory.fortress.core.impl.FortressJUnitTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<<
> FAILURE! - in org.apache.directory.fortress.core.impl.FortressJUnitTest
> initializationError(org.apache.directory.fortress.core.impl.FortressJUnitTest)
> Time elapsed: 0.005 sec <<< ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.directory.fortress.core.impl.FortressJUnitTest
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35)
> at org.junit.internal.runners.SuiteMethod.<init>(SuiteMethod.java:24)
> at
> org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11)
> at
> org.junit.internal.requests.ClassRequest$CustomSuiteMethodBuilder.runnerForClass(ClassRequest.java:51)
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> at
> org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
> at
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
> at
> org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
> at
> org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
>
> Results :
>
> Tests in error:
> FortressJUnitTest.initializationError » NoClassDefFound Could not initialize
> c...
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.814 s
> [INFO] Finished at: 2023-09-04T03:30:09+02:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on
> project fortress-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /Users/elecharny/apacheds/directory-fortress-core/target/surefire-reports for
> the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
>
> Any idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]