java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature

Terracotta Project Issue Tracker | Himadri Singh | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    While running all-in-one app, got following Error when jta enabled (w/ btm 2.0.1) cache is created. And NPE when jetty is shutdown. all-in-one war: URL:https://svn.terracotta.org/repo/internal/qa/trunk/all-in-one You might need to make ehcache-terracotta & terracotta-toolkit-1.1-runtime, non-enterprise else it will complaint for license, etc. To run w/ jetty: mvn clean package tc:run On 8080, check for JTA sample app. JTA: {code} [WARNING] [cargo] java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature [WARNING] [cargo] at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateXAStore(TerracottaClusteredInstanceFactory.java:194) [WARNING] [cargo] at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createXAStore(TerracottaClusteredInstanceFactory.java:125) [WARNING] [cargo] at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createXAStore(StandaloneTerracottaClusteredInstanceFactory.java:60) [WARNING] [cargo] at net.sf.ehcache.CacheManager.createEhcacheXAStore(CacheManager.java:427) [WARNING] [cargo] at net.sf.ehcache.Cache.initialise(Cache.java:1038) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1010) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:938) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:916) [WARNING] [cargo] at org.terracotta.ehcache.TMLookup.init(TMLookup.java:68) [WARNING] [cargo] at javax.servlet.GenericServlet.init(GenericServlet.java:241) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) [WARNING] [cargo] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [WARNING] [cargo] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [WARNING] [cargo] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [WARNING] [cargo] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [WARNING] [cargo] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [WARNING] [cargo] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [WARNING] [cargo] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [WARNING] [cargo] at org.mortbay.jetty.Server.handle(Server.java:326) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [WARNING] [cargo] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [WARNING] [cargo] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [WARNING] [cargo] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [WARNING] [cargo] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) {code} NPE: {code} [WARNING] [cargo] 2010-10-20 13:18:19.673:INFO::Shutdown hook executing [WARNING] [cargo] Exception in thread "Thread-17" java.lang.NullPointerException [WARNING] [cargo] at net.sf.ehcache.Cache.isNodeCoherent(Cache.java:3247) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook.shutdownRegisteredCaches(CacheShutdownHook.java:50) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook.access$000(CacheShutdownHook.java:19) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook$1.run(CacheShutdownHook.java:29) {code}

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature
  2. 0

    While running all-in-one app, got following Error when jta enabled (w/ btm 2.0.1) cache is created. And NPE when jetty is shutdown. all-in-one war: URL:https://svn.terracotta.org/repo/internal/qa/trunk/all-in-one You might need to make ehcache-terracotta & terracotta-toolkit-1.1-runtime, non-enterprise else it will complaint for license, etc. To run w/ jetty: mvn clean package tc:run On 8080, check for JTA sample app. JTA: {code} [WARNING] [cargo] java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature [WARNING] [cargo] at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateXAStore(TerracottaClusteredInstanceFactory.java:194) [WARNING] [cargo] at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createXAStore(TerracottaClusteredInstanceFactory.java:125) [WARNING] [cargo] at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createXAStore(StandaloneTerracottaClusteredInstanceFactory.java:60) [WARNING] [cargo] at net.sf.ehcache.CacheManager.createEhcacheXAStore(CacheManager.java:427) [WARNING] [cargo] at net.sf.ehcache.Cache.initialise(Cache.java:1038) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1010) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:938) [WARNING] [cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:916) [WARNING] [cargo] at org.terracotta.ehcache.TMLookup.init(TMLookup.java:68) [WARNING] [cargo] at javax.servlet.GenericServlet.init(GenericServlet.java:241) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) [WARNING] [cargo] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) [WARNING] [cargo] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [WARNING] [cargo] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [WARNING] [cargo] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [WARNING] [cargo] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [WARNING] [cargo] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [WARNING] [cargo] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [WARNING] [cargo] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [WARNING] [cargo] at org.mortbay.jetty.Server.handle(Server.java:326) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [WARNING] [cargo] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [WARNING] [cargo] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [WARNING] [cargo] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [WARNING] [cargo] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [WARNING] [cargo] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) {code} NPE: {code} [WARNING] [cargo] 2010-10-20 13:18:19.673:INFO::Shutdown hook executing [WARNING] [cargo] Exception in thread "Thread-17" java.lang.NullPointerException [WARNING] [cargo] at net.sf.ehcache.Cache.isNodeCoherent(Cache.java:3247) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook.shutdownRegisteredCaches(CacheShutdownHook.java:50) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook.access$000(CacheShutdownHook.java:19) [WARNING] [cargo] at org.terracotta.modules.ehcache.coherence.CacheShutdownHook$1.run(CacheShutdownHook.java:29) {code}

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature
  3. 0

    [CDV-1522] LinkageError with ehcache jta & jetty (maven plugin) - Terracotta Project Issue Tracker

    terracotta.org | 2 years ago
    java.lang.LinkageError: loader constraint violation in itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) net/sf/ehcache /transaction/xa/EhcacheXAStore have different objects the type javax/transaction/xa/Xid used in the signature
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation in interface itable initialization: when resolving method "org.terracotta.modules.ehcache.xa.EhcacheXAStoreClusteredImpl.isValid(Lnet/sf/ehcache/transaction/xa/VersionAwareCommand;Ljavax/transaction /xa/Xid;)Z" the class loader (instance of org/terracotta/express/ClusteredStateLoader) of the current class, org/terracotta/modules/ehcache /xa/EhcacheXAStoreClusteredImpl, and the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) for interface net/sf/ehcache /transaction/xa/EhcacheXAStore have different Class objects for the type javax/transaction/xa/Xid used in the signature

      at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateXAStore()
    2. org.terracotta.modules
      TerracottaClusteredInstanceFactory.createXAStore
      1. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.getOrCreateXAStore(TerracottaClusteredInstanceFactory.java:194)[cargo]
      2. org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createXAStore(TerracottaClusteredInstanceFactory.java:125)[cargo]
      2 frames
    3. Ehcache
      CacheManager.addCache
      1. net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createXAStore(StandaloneTerracottaClusteredInstanceFactory.java:60)[cargo]
      2. net.sf.ehcache.CacheManager.createEhcacheXAStore(CacheManager.java:427)[cargo]
      3. net.sf.ehcache.Cache.initialise(Cache.java:1038)[cargo]
      4. net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1010)[cargo]
      5. net.sf.ehcache.CacheManager.addCache(CacheManager.java:938)[cargo]
      6. net.sf.ehcache.CacheManager.addCache(CacheManager.java:916)[cargo]
      6 frames
    4. org.terracotta.ehcache
      TMLookup.init
      1. org.terracotta.ehcache.TMLookup.init(TMLookup.java:68)[cargo]
      1 frame
    5. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:241)[cargo]
      1 frame
    6. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)[cargo]
      2. org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)[cargo]
      3. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)[cargo]
      4. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[cargo]
      5. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)[cargo]
      6. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[cargo]
      7. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[cargo]
      8. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)[cargo]
      9. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[cargo]
      10. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[cargo]
      11. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[cargo]
      12. org.mortbay.jetty.Server.handle(Server.java:326)[cargo]
      13. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[cargo]
      14. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[cargo]
      15. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[cargo]
      16. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[cargo]
      17. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[cargo]
      18. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[cargo]
      18 frames
    7. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
      1 frame