java.lang.Exception

Terracotta Project Issue Tracker | Christian Stoeber | 6 years ago
  1. 0

    As requested, here is my bug report regarding my forum entry: http://forums.terracotta.org/forums/posts/list/4592.page In the following example I am using a disk persistent cache with overflowToDisk and timeToIdle of 60 seconds and timeToLive of 10 minutes. As you can see in the output the cached element will be removed through the DiskExpiryTask allthough I am accessing the object every 30 seconds. It seems to me that the last access time of the element in the disk store will not be updated. And so the DiskExpiryTask is removing an up to date element. Especially see the lastAccessDate while getting the element and while it will be expired. The lastAccessDate while expiring is the date from putting it to the cache (plus 1 second). I am expecting that with this configuration the element will expire after 60 seconds without access or after a lifetime of 10 minutes. I am using EHCache 2.3.0. {code:title=EHCacheTest.java} import java.util.Date; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehcache.Element; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.event.CacheEventListener; public class EHCacheTest { public static void main(String[] args) { CacheManager cacheManager = CacheManager.getInstance(); CacheConfiguration configuration = new CacheConfiguration("testCache", 20); configuration.setOverflowToDisk(true); configuration.setTimeToIdleSeconds(60); configuration.setTimeToLiveSeconds(10 * 60); configuration.setDiskPersistent(true); Cache cache = new Cache(configuration); cache.getCacheEventNotificationService().registerListener(new CacheEventListener() { @Override public void notifyRemoveAll(Ehcache arg0) { System.out.println("removeAll"); } @Override public void notifyElementUpdated(Ehcache arg0, Element arg1) throws CacheException { System.out.println("updated: " + arg1.getKey()); } @Override public void notifyElementRemoved(Ehcache arg0, Element arg1) throws CacheException { System.out.println("removed: " + arg1.getKey()); } @Override public void notifyElementPut(Ehcache arg0, Element arg1) throws CacheException { System.out.println("put: " + arg1); System.out.println("put: lastAccessDate: " + new Date(arg1.getLastAccessTime())); System.out.println("put: expirationDate: " + new Date(arg1.getExpirationTime())); } @Override public void notifyElementExpired(Ehcache arg0, Element arg1) { System.out.println("expired: " + arg1); System.out.println("expired: lastAccessDate: " + new Date(arg1.getLastAccessTime())); System.out.println("expired: expirationDate: " + new Date(arg1.getExpirationTime())); new Exception().printStackTrace(); } @Override public void notifyElementEvicted(Ehcache arg0, Element arg1) { System.out.println("evicted: " + arg1.getKey()); } @Override public void dispose() { System.out.println("dispose"); } @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }); cacheManager.addCache(cache); cache.put(new Element("1", "A value")); while (true) { Element element = cache.get("1"); System.out.println("get: " + new Date()); System.out.println("get: " + element); if (element != null) { System.out.println("get: lastAccessDate: " + new Date(element.getLastAccessTime())); System.out.println("get: expirationDate: " + new Date(element.getExpirationTime())); } else { break; } try { Thread.sleep(30 * 1000); } catch (InterruptedException e) { // } } cache.removeAll(); cacheManager.shutdown(); } } {code} {noformat} put: [ key = 1, value=A value, version=1, hitCount=0, CreationTime = 1291709161187, LastAccessTime = 1291709161187 ] put: lastAccessDate: Tue Dec 07 09:06:01 CET 2010 put: expirationDate: Tue Dec 07 09:07:01 CET 2010 get: Tue Dec 07 09:06:01 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=1, CreationTime = 1291709161187, LastAccessTime = 1291709161205 ] get: lastAccessDate: Tue Dec 07 09:06:01 CET 2010 get: expirationDate: Tue Dec 07 09:07:01 CET 2010 get: Tue Dec 07 09:06:31 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=2, CreationTime = 1291709161187, LastAccessTime = 1291709191206 ] get: lastAccessDate: Tue Dec 07 09:06:31 CET 2010 get: expirationDate: Tue Dec 07 09:07:31 CET 2010 get: Tue Dec 07 09:07:01 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=3, CreationTime = 1291709161187, LastAccessTime = 1291709221207 ] get: lastAccessDate: Tue Dec 07 09:07:01 CET 2010 get: expirationDate: Tue Dec 07 09:08:01 CET 2010 get: Tue Dec 07 09:07:31 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=4, CreationTime = 1291709161187, LastAccessTime = 1291709251208 ] get: lastAccessDate: Tue Dec 07 09:07:31 CET 2010 get: expirationDate: Tue Dec 07 09:08:31 CET 2010 expired: [ key = 1, value=A value, version=1, hitCount=1, CreationTime = 1291709162000, LastAccessTime = 1291709162000 ] expired: lastAccessDate: Tue Dec 07 09:06:02 CET 2010 expired: expirationDate: Tue Dec 07 09:07:02 CET 2010 java.lang.Exception at EHCacheTest$1.notifyElementExpired(EHCacheTest.java:60) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementExpiry(RegisteredEventListeners.java:139) at net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.checkExpiry(DiskStorageFactory.java:675) at net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.run(DiskStorageFactory.java:664) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) get: Tue Dec 07 09:08:01 CET 2010 get: null removeAll dispose {noformat}

    Terracotta Project Issue Tracker | 6 years ago | Christian Stoeber
    java.lang.Exception
  2. 0

    As requested, here is my bug report regarding my forum entry: http://forums.terracotta.org/forums/posts/list/4592.page In the following example I am using a disk persistent cache with overflowToDisk and timeToIdle of 60 seconds and timeToLive of 10 minutes. As you can see in the output the cached element will be removed through the DiskExpiryTask allthough I am accessing the object every 30 seconds. It seems to me that the last access time of the element in the disk store will not be updated. And so the DiskExpiryTask is removing an up to date element. Especially see the lastAccessDate while getting the element and while it will be expired. The lastAccessDate while expiring is the date from putting it to the cache (plus 1 second). I am expecting that with this configuration the element will expire after 60 seconds without access or after a lifetime of 10 minutes. I am using EHCache 2.3.0. {code:title=EHCacheTest.java} import java.util.Date; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Ehcache; import net.sf.ehcache.Element; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.event.CacheEventListener; public class EHCacheTest { public static void main(String[] args) { CacheManager cacheManager = CacheManager.getInstance(); CacheConfiguration configuration = new CacheConfiguration("testCache", 20); configuration.setOverflowToDisk(true); configuration.setTimeToIdleSeconds(60); configuration.setTimeToLiveSeconds(10 * 60); configuration.setDiskPersistent(true); Cache cache = new Cache(configuration); cache.getCacheEventNotificationService().registerListener(new CacheEventListener() { @Override public void notifyRemoveAll(Ehcache arg0) { System.out.println("removeAll"); } @Override public void notifyElementUpdated(Ehcache arg0, Element arg1) throws CacheException { System.out.println("updated: " + arg1.getKey()); } @Override public void notifyElementRemoved(Ehcache arg0, Element arg1) throws CacheException { System.out.println("removed: " + arg1.getKey()); } @Override public void notifyElementPut(Ehcache arg0, Element arg1) throws CacheException { System.out.println("put: " + arg1); System.out.println("put: lastAccessDate: " + new Date(arg1.getLastAccessTime())); System.out.println("put: expirationDate: " + new Date(arg1.getExpirationTime())); } @Override public void notifyElementExpired(Ehcache arg0, Element arg1) { System.out.println("expired: " + arg1); System.out.println("expired: lastAccessDate: " + new Date(arg1.getLastAccessTime())); System.out.println("expired: expirationDate: " + new Date(arg1.getExpirationTime())); new Exception().printStackTrace(); } @Override public void notifyElementEvicted(Ehcache arg0, Element arg1) { System.out.println("evicted: " + arg1.getKey()); } @Override public void dispose() { System.out.println("dispose"); } @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }); cacheManager.addCache(cache); cache.put(new Element("1", "A value")); while (true) { Element element = cache.get("1"); System.out.println("get: " + new Date()); System.out.println("get: " + element); if (element != null) { System.out.println("get: lastAccessDate: " + new Date(element.getLastAccessTime())); System.out.println("get: expirationDate: " + new Date(element.getExpirationTime())); } else { break; } try { Thread.sleep(30 * 1000); } catch (InterruptedException e) { // } } cache.removeAll(); cacheManager.shutdown(); } } {code} {noformat} put: [ key = 1, value=A value, version=1, hitCount=0, CreationTime = 1291709161187, LastAccessTime = 1291709161187 ] put: lastAccessDate: Tue Dec 07 09:06:01 CET 2010 put: expirationDate: Tue Dec 07 09:07:01 CET 2010 get: Tue Dec 07 09:06:01 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=1, CreationTime = 1291709161187, LastAccessTime = 1291709161205 ] get: lastAccessDate: Tue Dec 07 09:06:01 CET 2010 get: expirationDate: Tue Dec 07 09:07:01 CET 2010 get: Tue Dec 07 09:06:31 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=2, CreationTime = 1291709161187, LastAccessTime = 1291709191206 ] get: lastAccessDate: Tue Dec 07 09:06:31 CET 2010 get: expirationDate: Tue Dec 07 09:07:31 CET 2010 get: Tue Dec 07 09:07:01 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=3, CreationTime = 1291709161187, LastAccessTime = 1291709221207 ] get: lastAccessDate: Tue Dec 07 09:07:01 CET 2010 get: expirationDate: Tue Dec 07 09:08:01 CET 2010 get: Tue Dec 07 09:07:31 CET 2010 get: [ key = 1, value=A value, version=1, hitCount=4, CreationTime = 1291709161187, LastAccessTime = 1291709251208 ] get: lastAccessDate: Tue Dec 07 09:07:31 CET 2010 get: expirationDate: Tue Dec 07 09:08:31 CET 2010 expired: [ key = 1, value=A value, version=1, hitCount=1, CreationTime = 1291709162000, LastAccessTime = 1291709162000 ] expired: lastAccessDate: Tue Dec 07 09:06:02 CET 2010 expired: expirationDate: Tue Dec 07 09:07:02 CET 2010 java.lang.Exception at EHCacheTest$1.notifyElementExpired(EHCacheTest.java:60) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementExpiry(RegisteredEventListeners.java:139) at net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.checkExpiry(DiskStorageFactory.java:675) at net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.run(DiskStorageFactory.java:664) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) get: Tue Dec 07 09:08:01 CET 2010 get: null removeAll dispose {noformat}

    Terracotta Project Issue Tracker | 6 years ago | Christian Stoeber
    java.lang.Exception
  3. 0

    Strange expiration behavior?

    Terracotta | 6 years ago | cstoeber
    java.lang.Exception
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I try to do dumpExportTable on one of our slaves, it only spits out a lot of exceptions. I have never run dumpExportTable before but I am guessing it is not supposed to look like this: {code} Master to slave #1 (ref.1) : hudson.remoting.Channel@4fc15384:<slavename> java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.Channel.<init>(Channel.java:366) at hudson.remoting.Channel.<init>(Channel.java:354) at hudson.remoting.Channel.<init>(Channel.java:315) at hudson.remoting.Channel.<init>(Channel.java:311) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:315) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:380) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:239) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #2 (ref.1073742079) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@682bc3f5[winstone.classLoader.WebappClassLoader@682bc3f5] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:334) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:380) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:239) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #3 (ref.75) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@37d7a424[java.net.URLClassLoader@37d7a424] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.callAsync(Channel.java:695) at net.bull.javamelody.RemoteCallHelper.collectDataByNodeName(RemoteCallHelper.java:148) at net.bull.javamelody.RemoteCallHelper.collectJavaInformationsList(RemoteCallHelper.java:160) at net.bull.javamelody.NodesCollector.collectWithoutErrors(NodesCollector.java:123) at net.bull.javamelody.NodesCollector$2.run(NodesCollector.java:104) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) #4 (ref.1) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@798fd984[java.net.URLClassLoader@798fd984] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:414) at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #5 (ref.5) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@7e6baf24[java.net.URLClassLoader@7e6baf24] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:731) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:676) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) #155 (ref.1) : hudson.CloseProofOutputStream@1d950ed6 java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteOutputStream.writeObject(RemoteOutputStream.java:82) at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.util.StreamTaskListener.writeObject(StreamTaskListener.java:161) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:731) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:676) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) #18 (ref.3) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@43900f17[java.net.URLClassLoader@43900f17] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.plugins.systemloadaverage_monitor.SystemLoadAverageMonitor$1.monitor(SystemLoadAverageMonitor.java:47) at hudson.plugins.systemloadaverage_monitor.SystemLoadAverageMonitor$1.monitor(SystemLoadAverageMonitor.java:42) at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:202) #158 (ref.1) : hudson.CloseProofOutputStream@4da035d9 java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteOutputStream.writeObject(RemoteOutputStream.java:82) at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.util.StreamTaskListener.writeObject(StreamTaskListener.java:161) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) [...] {code}

    Jenkins JIRA | 5 years ago | Angela Johansson
    java.lang.Exception
  6. 0

    When I try to do dumpExportTable on one of our slaves, it only spits out a lot of exceptions. I have never run dumpExportTable before but I am guessing it is not supposed to look like this: {code} Master to slave #1 (ref.1) : hudson.remoting.Channel@4fc15384:<slavename> java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.Channel.<init>(Channel.java:366) at hudson.remoting.Channel.<init>(Channel.java:354) at hudson.remoting.Channel.<init>(Channel.java:315) at hudson.remoting.Channel.<init>(Channel.java:311) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:315) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:380) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:239) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #2 (ref.1073742079) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@682bc3f5[winstone.classLoader.WebappClassLoader@682bc3f5] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:334) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:380) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:239) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #3 (ref.75) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@37d7a424[java.net.URLClassLoader@37d7a424] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.callAsync(Channel.java:695) at net.bull.javamelody.RemoteCallHelper.collectDataByNodeName(RemoteCallHelper.java:148) at net.bull.javamelody.RemoteCallHelper.collectJavaInformationsList(RemoteCallHelper.java:160) at net.bull.javamelody.NodesCollector.collectWithoutErrors(NodesCollector.java:123) at net.bull.javamelody.NodesCollector$2.run(NodesCollector.java:104) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) #4 (ref.1) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@798fd984[java.net.URLClassLoader@798fd984] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch2(RemoteClassLoader.java:414) at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.Request$2.run(Request.java:287) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) #5 (ref.5) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@7e6baf24[java.net.URLClassLoader@7e6baf24] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:731) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:676) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) #155 (ref.1) : hudson.CloseProofOutputStream@1d950ed6 java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteOutputStream.writeObject(RemoteOutputStream.java:82) at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.util.StreamTaskListener.writeObject(StreamTaskListener.java:161) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:731) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:676) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) #18 (ref.3) : hudson.remoting.RemoteClassLoader$ClassLoaderProxy@43900f17[java.net.URLClassLoader@43900f17] java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteClassLoader.exportId(RemoteClassLoader.java:369) at hudson.remoting.MultiClassLoaderSerializer$Output.annotateClass(MultiClassLoaderSerializer.java:66) at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source) at java.io.ObjectOutputStream.writeClassDesc(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) at hudson.plugins.systemloadaverage_monitor.SystemLoadAverageMonitor$1.monitor(SystemLoadAverageMonitor.java:47) at hudson.plugins.systemloadaverage_monitor.SystemLoadAverageMonitor$1.monitor(SystemLoadAverageMonitor.java:42) at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:202) #158 (ref.1) : hudson.CloseProofOutputStream@4da035d9 java.lang.Exception at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:66) at hudson.remoting.ExportTable.export(ExportTable.java:166) at hudson.remoting.Channel.export(Channel.java:548) at hudson.remoting.RemoteOutputStream.writeObject(RemoteOutputStream.java:82) at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.util.StreamTaskListener.writeObject(StreamTaskListener.java:161) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:667) [...] {code}

    Jenkins JIRA | 5 years ago | Angela Johansson
    java.lang.Exception

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

      No message provided

      at EHCacheTest$1.notifyElementExpired()
    2. Unknown
      EHCacheTest$1.notifyElementExpired
      1. EHCacheTest$1.notifyElementExpired(EHCacheTest.java:60)
      1 frame
    3. Ehcache
      RegisteredEventListeners.notifyElementExpiry
      1. net.sf.ehcache.event.RegisteredEventListeners.notifyElementExpiry(RegisteredEventListeners.java:139)
      1 frame
    4. ApacheDS All
      DiskStorageFactory$DiskExpiryTask.run
      1. net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.checkExpiry(DiskStorageFactory.java:675)
      2. net.sf.ehcache.store.compound.factories.DiskStorageFactory$DiskExpiryTask.run(DiskStorageFactory.java:664)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
      6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      9. java.lang.Thread.run(Thread.java:662)
      9 frames