Issue #886 has been updated by Clément OUDOT.

Category set to Sample
Target version set to 2.1.4


----------------------------------------
Bug #886: Quick start tutorial not working with Java 8 
http://tools.lsc-project.org/issues/886

Author: Soisik Froger
Status: New
Priority: Normal
Assigned to: 
Category: Sample
Target version: 2.1.4
Problem in version: 2.1.3


Build environment : Apache Maven 3.0.2 & Java 1.6
Runtime environment : Java 1.8

Quick start tutorial  : http://lsc-project.org/wiki/documentation/2.0/sample.

Problem : Java 6 or 7 is required to get the demo working. With Java 8, we have 
this error :
     Exception in thread "main" java.lang.ExceptionInInitializerError: A 
security class cannot be found in this JVM because of the following reason: 
sun.security.x509.CertAndKeyGen
         at 
org.opends.server.util.Platform$PlatformIMPL.<clinit>(Platform.java:127)
         at org.opends.server.util.Platform.<clinit>(Platform.java:80)
         at 
org.opends.server.util.CertificateManager.generateSelfSignedCertificate(CertificateManager.java:283)
         at 
org.opends.server.admin.AdministrationConnector.createSelfSignedCertifIfNeeded(AdministrationConnector.java:698)
         at 
org.opends.server.admin.AdministrationConnector.initializeAdministrationConnector(AdministrationConnector.java:181)
         at 
org.opends.server.core.ConnectionHandlerConfigManager.initializeAdministrationConnectorConfig(ConnectionHandlerConfigManager.java:350)
         at 
org.opends.server.core.DirectoryServer.initializeAdministrationConnector(DirectoryServer.java:2898)
         at 
org.opends.server.core.DirectoryServer.startServer(DirectoryServer.java:1401)
         at org.lsc.opendj.EmbeddedOpenDJ.startServer(EmbeddedOpenDJ.java:157)
         at org.lsc.opendj.LdapServer.start(LdapServer.java:80)
         at org.lsc.opendj.LdapServer.usage(LdapServer.java:179)
         at org.lsc.opendj.LdapServer.main(LdapServer.java:122)


Solution : According to 
https://forgerock.org/topic/opendj-2-6-does-not-compatible-with-java-8/, for 
java 8 support, OpenDJ should be upgraded to at least 2.6.2. Current version is 
2.4.5.
This is done by :
- changing the version in the pom,
- updating server conf under src/test/resources/etc/config/
- updating sample/hsqldb/etc/test.ldif use to initialize root dn 

Please note : 
- OpenDJ being also used in junit tests, this fix is needed for running a mvn 
build with java 8.
- OpenDJ is only used in demo and junit tests, so this patch should have no 
impact on core functionalities
- Attached patch also contains fix for issue #885

Since this bug may discourage new users from using lsc, I recommend to patch 
2.1.4 and 2.2.0 releases to come.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
lsc-dev@lists.lsc-project.org
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to