java.lang.ExceptionInInitializerError

JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [export/home/oracle/midtier/lib/libsapjcorfc.so: /export/home/oracle/midtier/lib/libsapjcorfc.so: cannot open shared object file: No such file or directory]. java.library.path [export/home/oracle/midtier/jdk/jre/lib/i386/server:/export/home/oracle/midtier/jdk/jre/lib/i386:/export/home/oracle/midtier/jdk/jre/../lib/i386:/export/home/oracle/midtier/lib:/export/home/oracle/midtier/lib:/export/home/oracle/midtier/network/lib:/export/home/oracle/midtier/jdk/jre/lib/i386]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web160

  • via Oracle Community by Pamato-Oracle, 11 months ago
    /libsapjcorfc.so: cannot open shared object file: No such file or directory]. java.library.path [export/home/oracle/midtier/jdk/jre/lib/i386/server:/export/home/oracle/midtier/jdk/jre/lib/i386:/export/home/oracle/midtier/jdk/jre/../lib/i386:/export/home
  • via Oracle Community by rmirchan-Oracle, 11 months ago
    JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [export/oracle/products/9ias_midtier/lib/libsapjcorfc.so: ld.so.1: /export/oracle
  • via Oracle Community by 17928, 1 year ago
    JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library /opt/jco/lib/libsapjcorfc.so already loaded in another classloader
  • Stack trace

    • java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [export/home/oracle/midtier/lib/libsapjcorfc.so: /export/home/oracle/midtier/lib/libsapjcorfc.so: cannot open shared object file: No such file or directory]. java.library.path [export/home/oracle/midtier/jdk/jre/lib/i386/server:/export/home/oracle/midtier/jdk/jre/lib/i386:/export/home/oracle/midtier/jdk/jre/../lib/i386:/export/home/oracle/midtier/lib:/export/home/oracle/midtier/lib:/export/home/oracle/midtier
    • etwork/lib:/export/home/oracle/midtier/jdk/jre/lib/i386] at com.sap.mw.jco.JCO.<clinit>(JCO.java:738) at oracle.webdb.reformlet.plugin.datasource.sap.jco.JCOUtils.testForAuthentication(Unknown Source) at oracle.webdb.reformlet.plugin.datasource.sap.jco.JCOUtils.testForAuthentication(Unknown Source) at oracle.webdb.reformlet.plugin.datasource.sap.LoginServlet.doGet(Unknown Source) at oracle.webdb.reformlet.plugin.datasource.sap.LoginServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.