| Summary: | "Invalid Datagram Packet Received" error logged when system clock not accurate | ||
|---|---|---|---|
| Product: | [Tools] TCF | Reporter: | Martin Oberhuber <mober.at+eclipse> |
| Component: | Core | Assignee: | Project Inbox <tcf.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Eugene Tarassov <eugene> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug |
| Version: | unspecified | ||
| Target Milestone: | 0.4.0 | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
Martin Oberhuber
This looks like duplicate of Bug 333610, which is supposed to be fixed. I double-checked I was using o.e.tm.tcf.core 0.4.0.201106081058 ... the message was logged once per session per peer only, but it was logged. ... though interestingly, I cannot reproduce this now with a system where I deliberately changed the clock. The messages can be caused by an old agent running somewhere on your local network. Hm... how could I diagnose that? For the log entry below, I'm 100% sure that the local tcf is current, and I'm 95% sure that the remote agent was current. As you see, this log entry is kind of "the other end" of the original log entry (comment #0 was from 193.81.18.166)... though I must confess it's confusing that the line number information in this log entry is different, so perhaps the remote agent was in fact old. !ENTRY org.eclipse.tm.tcf 4 0 2011-07-06 13:01:02.154 !MESSAGE Invalid datagram packet received from /193.81.18.166/1534 !STACK 0 java.lang.Exception: Invalid slave info timestamp: 1309946265446 -> 2011-07-06 11:57:45.446 at org.eclipse.tm.internal.tcf.services.local.LocatorService.handleSlavesInfoPacket(LocatorService.java:1075) at org.eclipse.tm.internal.tcf.services.local.LocatorService.handleDatagramPacket(LocatorService.java:954) at org.eclipse.tm.internal.tcf.services.local.LocatorService.access$7(LocatorService.java:929) at org.eclipse.tm.internal.tcf.services.local.LocatorService$3$1.run(LocatorService.java:287) at org.eclipse.tm.tcf.protocol.Protocol$3.run(Protocol.java:209) at org.eclipse.tm.tcf.EventQueue.run(EventQueue.java:99) at java.lang.Thread.run(Unknown Source) I think I know what is causing the problem. I have found one place in Java version of Locator service code that correctly computes time-to-live, but then still erroneously sends absolute time stamp instead of just computed value. I will commit a fix. Committed a fix into both trunk and 0.4.0 release branch. |