Re: [SNMP4J] Socket closed error in Windows 7

2010-08-17 Thread varma datla
Hello Frank, I apologize for that silly mistake and thanks for pointing it out. I've added a CountDownLatch so that the main() wouldn't exit unit all requests are being responded. Actually, we had this running in Tomcat..but just want to have a standalone program to reproduce the problem quicker

Re: [SNMP4J] Socket closed error in Windows 7

2010-08-17 Thread Frank Fock
Hi, There is an error in your program: main may return before the thread you started is finished. It is not related to SNMP4J other than the new release might be executed with a different speed on your system. Best regards, Frank Am 17.08.2010 um 18:30 schrieb varma datla : > Hello, > We ar

[SNMP4J] Socket closed error in Windows 7

2010-08-17 Thread varma datla
Hello, We are using snmp4j-1.9.3d asynchronously to find devices in a network. All is working well until we tested it in Windows 7 where it is throwing the "Socket is closed" exception after a few seconds and stops. Even the latest version 1.11.1 didn't seemed to work. Luckily we had an older v

Re: [SNMP4J] A Simple Trap Receiver using snmp4j

2010-08-17 Thread jaikar gupta
Hi, I had also the same problem, i had uses the the same methodology, but when i change the TRAP_ADRESS to 0.0.0.0/162, the it starts receiving TRAPS. try this may this will help you. Thanks & Regards Jaikar Gupta On Tue, Aug 17, 2010 at 2:06 PM, Tsiyona wrote: > Hello, > > I am trying to wr

Re: [SNMP4J] A Simple Trap Receiver using snmp4j

2010-08-17 Thread Shlomo
Hi, I used : http://code.google.com/p/snmphibernate/source/browse/trunk/project/org.opengoss.snmphibernate.impl.snmp4j/src/org/snmp4j/test/MultiThreadedTrapReceiver.java?spec=svn15&r=15 As a reference for my SNMP trap receiver and it works fine. How are you sending traps themselves? are you sure

[SNMP4J] A Simple Trap Receiver using snmp4j

2010-08-17 Thread Tsiyona
Hello, I am trying to write a simple snmp manager that listens to traps on port 162 and processes them. This manager will only handle traps, and does not need to send commands to agents. Attached is the code I wrote. It is straightforward, but it does not work - I do not get any snmp traps. I mak