Hi again,
Done a bit more digging and I've found out what is going on here - the situation wasn't precisely as indicated above.
The solution works fine if I start the C# listener and then the Java sender such that they both start at the same time. However, if I stop one or the other, then restart after a couple of minutes, the requests are all rejected.
From walking through the code, the problem seems to be the testing of the time window of the messages - once the difference is >150s, it (correctly) rejects it as notInTimeWindow; however, it doesn't actually send the response to indicate that this is the reason for rejection (marked "TODO: handle error here. return TRAP saying authenticationFailed in SnmpApplication:117), so the SNMP4J time is never synchronized with the #SNMP time, and the problem continues indefinitely.
Thanks,
Austen
Done a bit more digging and I've found out what is going on here - the situation wasn't precisely as indicated above.
The solution works fine if I start the C# listener and then the Java sender such that they both start at the same time. However, if I stop one or the other, then restart after a couple of minutes, the requests are all rejected.
From walking through the code, the problem seems to be the testing of the time window of the messages - once the difference is >150s, it (correctly) rejects it as notInTimeWindow; however, it doesn't actually send the response to indicate that this is the reason for rejection (marked "TODO: handle error here. return TRAP saying authenticationFailed in SnmpApplication:117), so the SNMP4J time is never synchronized with the #SNMP time, and the problem continues indefinitely.
Thanks,
Austen