java.lang.NullPointerException

Terracotta Project Issue Tracker | Himadri Singh | 6 years ago
  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 | 6 years ago | Himadri Singh
    java.lang.NullPointerException
  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 | 6 years ago | Himadri Singh
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at net.sf.ehcache.Cache.isNodeCoherent()
    2. Ehcache
      Cache.isNodeCoherent
      1. net.sf.ehcache.Cache.isNodeCoherent(Cache.java:3247)[cargo]
      1 frame
    3. org.terracotta.modules
      CacheShutdownHook$1.run
      1. org.terracotta.modules.ehcache.coherence.CacheShutdownHook.shutdownRegisteredCaches(CacheShutdownHook.java:50)[cargo]
      2. org.terracotta.modules.ehcache.coherence.CacheShutdownHook.access$000(CacheShutdownHook.java:19)[cargo]
      3. org.terracotta.modules.ehcache.coherence.CacheShutdownHook$1.run(CacheShutdownHook.java:29)
      3 frames