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. Found version "2.1.6 (2005-06-20)" but required version "2.1.8 (2006-12-11)".

Coderanch | Ethiraj Palchuru | 4 years ago
  1. 0

    No container-managed authentication alias found for connection factory or datasource sae/sap/Factory

    Coderanch | 4 years ago | Ethiraj Palchuru
    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. Found version "2.1.6 (2005-06-20)" but required version "2.1.8 (2006-12-11)".
  2. 0

    Password sync

    Oracle Community | 7 years ago | 17928
    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 [Native Library /opt/jco/lib/libsapjcorfc.so already loaded in another classloader]. java.library.path [opt/j2sdk1.4.2_16/jre/lib/i386/server:/opt/j2sdk1.4.2_16/jre/lib/i386:/opt/j2sdk1.4.2_16/jre/../lib/i386:/opt/jco/lib:/usr/lib:/lib:/opt/oracle/xellerate/ThirdParty:/usr/lib:/usr/local/lib:]
  3. 0

    SAP OmniPortlet integration error

    Oracle Community | 10 years ago | tmrabet - oracle
    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 [apps/oracle/products/10g/as/portal/lib/libsapjcorfc.sl: specified file is not a shared library, or a format error was detected.]. java.library.path [apps/oracle/products/10g/as/portal/jdk/jre/lib/PA_RISC2.0:/apps/oracle/products/10g/as/portal/jdk/jre/lib/PA_RISC2.0/server:/apps/oracle/products/10g/as/portal/jdk/jre/../lib/PA_RISC2.0:/apps/oracle/products/10g/as/portal/lib32:/apps/oracle/products/10g/as/portal/lib:/apps/oracle/products/10g/as/portal/lib32:/apps/oracle/products/10g/as/portal/network/lib32:/apps/oracle/products/10g/as/portal/jdk/jre/lib/PA_RISC:/apps/oracle/products/10g/as/portal/jdk/jre/lib/PA_RISC/server:/usr/lib]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SAP Portlet Sample fixed the IllegalStateException bug

    Oracle Community | 1 decade ago | Rbaig-Oracle
    java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load mid dleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' no sapjcorfc in java.library.path
  6. 0

    SAPDS Portlet: Errors: java.lang.*

    Oracle Community | 1 decade ago | rmirchan-Oracle
    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/oracle/products/9ias_midtier/lib/libsapjcorfc.so: ld.so.1: /export/oracle/products/9ias_midtier/jdk//bin/../bin/sparc/native_threads/java: fatal: /export/oracle/products/9ias_midtier/lib/libsapjcorfc.so: wrong ELF class: ELFCLASS64]. java.library.path [export/oracle/products/9ias_midtier/jdk//bin/../jre/lib/sparc/client:/export/oracle/products/9ias_midtier/jdk//bin/../jre/lib/sparc::/export/oracle/products/9ias_midtier/jdk//bin/../jre/../lib/sparc:/export/oracle/products/9ias_midtier/lib::/usr/lib]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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. Found version "2.1.6 (2005-06-20)" but required version "2.1.8 (2006-12-11)".

      at com.sap.mw.jco.JCO.<clinit>()
    2. com.sap.mw
      JCO.<clinit>
      1. com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
      1 frame
    3. Java RT
      J9VMInternals.initialize
      1. java.lang.J9VMInternals.initializeImpl(Native Method)
      2. java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
      2 frames
    4. com.ibm.sap
      RfcConnectionFactory.createConnection
      1. com.ibm.sap.bapi.jco.JCOUtil$Client.init(JCOUtil.java:420)
      2. com.ibm.sap.bapi.jco.JCOUtil$Client.<init>(JCOUtil.java:250)
      3. com.ibm.sap.bapi.jco.RfcConnectionFactory.createConnection(RfcConnectionFactory.java:70)
      3 frames
    5. com.ibm.connector2
      SAPManagedConnectionFactory.createManagedConnection
      1. com.ibm.connector2.sap.SAPManagedConnection.<init>(SAPManagedConnection.java:107)
      2. com.ibm.connector2.sap.SAPManagedConnectionFactory.createManagedConnection(SAPManagedConnectionFactory.java:233)
      2 frames
    6. com.ibm.ejs
      ConnectionManager.allocateConnection
      1. com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1751)
      2. com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1518)
      3. com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2141)
      4. com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:846)
      5. com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:585)
      5 frames
    7. com.ibm.connector2
      SAPConnectionFactory.getConnection
      1. com.ibm.connector2.sap.SAPConnectionFactory.getConnection(SAPConnectionFactory.java:227)
      1 frame
    8. saer.com.sapconnector
      GenSapConnection.execute
      1. saer.com.sapconnector.GenSapConnection.execute(GenSapConnection.java)
      1 frame
    9. saer.servlet
      SaerLogon.doPost
      1. saer.servlet.SaerLogon.performTask(SaerLogon.java)
      2. saer.servlet.SaerLogon.doPost(SaerLogon.java:81)
      2 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      2 frames
    11. WebSphere
      ServletWrapper.handleRequest
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
      2. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      2 frames
    12. com.ibm.ws
      ServletWrapper.handleRequest
      1. com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
      1 frame
    13. WebSphere
      WebContainer.handleRequest
      1. com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
      2. com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
      3. com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
      3 frames
    14. com.ibm.ws
      WCChannelLink.ready
      1. com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      2. com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
      2 frames
    15. WebSphere
      AioReadCompletionListener.futureCompleted
      1. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      2. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      3. com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
      4. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
      4 frames
    16. com.ibm.io
      ResultHandler$2.run
      1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
      2. com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
      3. com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      4. com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
      5. com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
      6. com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
      6 frames
    17. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
      1 frame