Rest drivers are not starting

Hi,

Post patch update on Linux server Rest drivers are not starting. Below is the error. Please help.

Message: Code(-9010) An exception occurred: java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.getDefaultRegistry(PoolingHttpClientConnectionManager.java:116) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:123) at com.novell.nds.dirxml.driver.rest.HTTPSubscriberConnectionInfo.makeHttpClient(HttpRESTOperations.java:813) at com.novell.nds.dirxml.driver.rest.RESTSubscriptionShim.init(RESTSubscriptionShim.java:264) at com.novell.nds.dirxml.engine.Subscriber.init(Subscriber.java:279) at com.novell.nds.dirxml.engine.Subscriber.<init>(Subscriber.java:137) at com.novell.nds.dirxml.engine.Driver.startShim(Driver.java:1732) at com.novell.nds.dirxml.engine.Driver.initialize(Driver.java:330) at com.novell.nds.dirxml.engine.Driver.<init>(Driver.java:296) at com.novell.nds.dirxml.engine.DriverEntry.run(DriverEntry.java:626) at java.base/java.lang.Thread.run(Unknown Source)

Thanks

Siva ram T

Tags:

  • 0  

    What update did you apply?  Between 4.8.6 and 4.8.7 they switch JVMs from Java 8 to Java 11.  But they recompiled the driver shims in Java 8 compat mode, from Java 11.  In ID< 4.9 they recompiled and fixed the driver JARs to work native in Java 11.

    So what update did you do? Likely it broke SSL libraries as it is not found... 

    Try a REST shim that matches your engine level.  Worst case you can get it working on a Remote Loader, where you use say a 4.8.6 with Java 8 on the RL. 

  • 0 in reply to   

    Patch update is on SLES Linux os related nothing changed with respective to IDM. At present server has 4.8.7 IDM where rest drivers are running. Where can we find SSL Libraries?

  • 0 in reply to   

    Its been a month ago we have upgraded to 4.8.7 and all rest drivers were working. Post SLES patch upgrade we are facing the issues.

    NAME="SLES"
    VERSION="15-SP5"
    VERSION_ID="15.5"
    PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
    ID="sles"
    ID_LIKE="suse"
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:suse:sles:15:sp5"

  • 0

    Hi,

    is there a solution out there?

    I got the same problem after updating IDM AE from 4.8.4 to 4.8.7.
    Role and Resource Driver and REST Drivers are not starting anymore.

    We only did IDM updates, no SLES updates before or after.



    [09/05/24 15:11:53.835]:Role and Resource driver ST:
    DirXML Log Event -------------------
    Driver: \RR-DEV-ZWEI\system\driverset1\Role and Resource driver
    Status: Error
    Message: Code(-9010) An exception occurred: java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.getDefaultRegistry(PoolingHttpClientConnectionManager.java:116)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:123)
    at com.novell.soa.ws.impl.transport.http.Http.<init>(Http.java:93)

    More below in driver trace i also see such an error:

    09/05/24 15:11:46.717]:Role and Resource driver ST:
    DirXML Log Event -------------------
    Driver: \RR-DEV-ZWEI\system\driverset1\Role and Resource driver
    Status: Error
    Message: Code(-9010) An exception occurred: java.lang.NoSuchMethodError: 'boolean org.apache.logging.log4j.spi.LoggerContextFactory.isClassLoaderDependent()'
    at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
    at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
    at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:391)
    at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
    at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)

    I opened support ticket at opentext, waiting for an answer, solution, hint, ....

    regards,

    Lutz

  • 0   in reply to 

    Check your engine classpath /opt/novell/eDirectory/lib/dirxml/classes/ for duplicate artifacts with different versions numbers and remove all those that didn't come with IDM 4.8.7.

    This command might help:

    rpm -qf /opt/novell/eDirectory/lib/dirxml/classes/*.jar

  • 0 in reply to   

    Hi Norbert,

    I checked for dublicates in classes directory. couldn't find something.

    Newest version of rrsd driver is installed:

    rpm -qa | grep rrsd
    netiq-DXMLrrsd-4.8.7-0.noarch

    I also checked, which jars are using the class: org.apache.http.conn.ssl.SSLConnectionSocketFactory:

    Following command gives me the output:

    for x in *http*.jar; do echo $x; unzip -l $x | grep -i SSLConnectionSocketFactory; done;


    google-http-client-gson.jar
    google-http-client-jackson2.jar
    google-http-client.jar
    httpclient-4.5.14.jar
             13799 2022-11-30 19:40 org/apache/http/conn/ssl/SSLConnectionSocketFactory.class
    httpcore-4.4.16.jar
    httpmime-4.5.13.jar

    Regards,

    Lutz

  • 0   in reply to 

    Hmm, do you have any custom jars in /classes that didn't come with IDM or remove/replace any of the OOTB jars?

  • 0 in reply to   

    Hi Norbert,

    only one OT Consulting jar and 2 custom jars. i removed all of them. 

  • 0 in reply to   

    just for testing purpose i upgraded to 4.9 and now it's working again. Hmm. Thats not really an solution for me.