Forgot file path to code: src/main/java/hudson/node_monitors/SwapSpaceMonitor.java
On Tue, Apr 30, 2013 at 2:05 PM, Åsmund Østvold <[email protected]> wrote: > I forgot to tell but this issue is a timing issue. It only happens 1/20 > nodes. It is random between nodes. > > Question: > > Is it correct to assume that the below indicates that it is in the Master > that has a issue. My assumption is that serialVersionUID should be 1L > and it is the Object on the master that is not 1L. > > > java.io.InvalidClassException: > hudson.node_monitors.SwapSpaceMonitor$MonitorTask; > local class incompatible: stream classdesc serialVersionUID = 1, local > class serialVersionUID = 1184166703664094906 > > I base this assumption from reading the code: > > private static class MonitorTask implements > Callable<MemoryUsage,IOException> { > public MemoryUsage call() throws IOException { > MemoryMonitor mm; > try { > mm = MemoryMonitor.get(); > } catch (IOException e) { > return report(e); > } catch (LinkageError e) { // JENKINS-15796 > return report(e); > } > return new MemoryUsage2(mm.monitor()); > } > > private <T extends Throwable> MemoryUsage report(T e) throws T { > if (!warned) { > warned = true; > throw e; > } else { // JENKINS-2194 > return null; > } > } > > private static final long serialVersionUID = 1L; > > private static boolean warned = false; > } > > Asmund > > > On Tue, Apr 30, 2013 at 9:52 AM, Åsmund Østvold <[email protected]> wrote: > >> The issue JENKINS-15717 [1] is a issue for my Jenkins installation. I >> have this issue on SSH slave nodes. I am investigating the issue but >> have difficulties finding the code. If you could point me to the sender / >> producer of the serialized object I would appreciate it. >> >> Sorry for the basic question but I do not have much knowledge of Jenkins >> code. >> >> The stack trace for convenience: >> >> Apr 30, 2013 9:14:17 AM >> hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run >> WARNING: Failed to monitor ao1 for Free Swap Space >> java.io.InvalidClassException: >> hudson.node_monitors.SwapSpaceMonitor$MonitorTask; local class >> incompatible: stream classdesc serialVersionUID = 1, local class >> serialVersionUID = 1184166703664094906 >> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604) >> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620) >> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515) >> at >> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769) >> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348) >> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) >> at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) >> at hudson.remoting.UserRequest.perform(UserRequest.java:98) >> at hudson.remoting.UserRequest.perform(UserRequest.java:48) >> at hudson.remoting.Request$2.run(Request.java:326) >> at >> hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:722) >> >> >> Asmund >> >> [1] https://issues.jenkins-ci.org/browse/JENKINS-15717 >> > > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
