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

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web3

  • via Unknown by Himadri Singh,
  • via Unknown by Himadri Singh,
  • Stack trace

    • 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(TerracottaClusteredInstanceFactory.java:194)[cargo] at org.terracotta.modules.ehcache.store.TerracottaClusteredInstanceFactory.createXAStore(TerracottaClusteredInstanceFactory.java:125)[cargo] at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.createXAStore(StandaloneTerracottaClusteredInstanceFactory.java:60)[cargo] at net.sf.ehcache.CacheManager.createEhcacheXAStore(CacheManager.java:427)[cargo] at net.sf.ehcache.Cache.initialise(Cache.java:1038)[cargo] at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1010)[cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:938)[cargo] at net.sf.ehcache.CacheManager.addCache(CacheManager.java:916)[cargo] at org.terracotta.ehcache.TMLookup.init(TMLookup.java:68)[cargo] at javax.servlet.GenericServlet.init(GenericServlet.java:241)[cargo] at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)[cargo] at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)[cargo] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)[cargo] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[cargo] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)[cargo] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[cargo] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[cargo] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)[cargo] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[cargo] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[cargo] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[cargo] at org.mortbay.jetty.Server.handle(Server.java:326)[cargo] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[cargo] at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[cargo] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[cargo] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[cargo] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[cargo] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[cargo] at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

    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

    We couldn't find other users who have seen this exception.