Re: [SNMP4J] ThreadPool in a J2EE environment

2009-04-17 Thread Brice Fines
Hi Frank, Ups, sorry (I should get some sleep before answering mails). Perfect then. Would it be possible in a future version to modify the constructor public MultiThreadedMessageDispatcher(ThreadPool threadPool, MessageDispatcher decoratedDispatcher)

Re: [SNMP4J] ThreadPool in a J2EE environment

2009-04-17 Thread Brice Fines
Hi Frank, Ok, I did it and it is working. I implemented a MessageDispatcher, basically copying the MultithreadedMessageDispatcher. Internally it also uses a decorated MessageDispatcher, and a TaskExecutor instead of the ThreadPool (it is a org.springframework.core.task.TaskExecutor, I use

[SNMP4J] Problem with DefaultTCPTransportMapping

2009-09-30 Thread Brice Fines
Hi, I have a problem using DefaultTCPTransportMapping. I am using SNMP4J.jar version 1.10.1 to send SNMP GET over TCP. I am using a unique TcpTransportMapping instance to send the SNMP commands to various clients. It seems that everything is ok while I get a SNMP GET response from the clients,

[SNMP4J] Problem with DefaultTCPTransportMapping

2009-10-01 Thread Brice Fines
Hi Frank, Please let me know if you need more information to reproduce it. I made further tests. I checked with previous releases, but I have the same problem using SNMP4J version 1.10.0 or 1.9.3d. I make sure that commands over TCP are working (I mean not only the first one) with the

Re: [SNMP4J] Problem with DefaultTCPTransportMapping

2009-10-09 Thread Brice Fines
Hi Frank, First of all, thank you for the quick answer. I downloaded the snapshot version of SNMP4J 1.10 (dated 07-Oct-2009 22:48 in your repository) and tried it. It works, i.e. the SNMP commands over TCP keeps working after a communication failure. I hope your fix will make it for the next

Re: [SNMP4J] Problem with DefaultTCPTransportMapping

2009-10-13 Thread Brice Fines
Hi Frank, Thanks for providing another update so quickly. I donwloaded and tried the snapshot version dated 12 October 2009 in various environments. As you said, I have no longer to wait for the connection timeout to happen, now everything works right. I think I found another problem, but I

[SNMP4J] TcpTransportMapping.close(address) hanging in AIX

2009-10-15 Thread Brice Fines
Hi, The following code works under Windows but hangs under AIX (when sending the same command to the same client). (code without the finally block has been tested and works perfectly under both OS) try{ //blablabla final ResponseEvent responseEvent = snmp.send(pdu, target); //blablabla }

Re: [SNMP4J] TcpTransportMapping.close(address) hanging in AIX

2009-10-16 Thread Brice Fines
Hi Frank, You were ritght, I had a little mistake in my log4.properties, traces were logged twice but methods were only called once. I had: log4j.rootLogger=INFO, stdout log4j.logger.org.snmp4j = DEBUG, stdout Corrected it to: log4j.rootLogger=INFO, stdout log4j.logger.org.snmp4j = DEBUG (We

Re: [SNMP4J] TcpTransportMapping.close(address) hanging in AIX

2009-10-19 Thread Brice Fines
Hi Frank, I downloaded the snapshot (19 October 2009). Here are the logs (I sent a SNMP get, the application keep hanging if I use TcpTransportMapping.close(address) ). Hope it helps. Regards [10/19/09 19:07:52:610 CEST] 002b SystemOut O org.snmp4j.security.USM generateResponseMessage

Re: [SNMP4J] TcpTransportMapping.close(address) hanging in AIX

2009-10-21 Thread Brice Fines
Hi, (sorry I had no time to try it yesterday). I downloaded snapshot of 21 October 2009. Here are the logs. Regards. [10/21/09 19:00:33:097 CEST] 0034 SystemOut O org.snmp4j.mp.MPv3 prepareOutgoingMessage Context engine ID of scoped PDU is empty! Setting it to authoritative engine ID:

[SNMP4J] random problem sending command over TCP

2009-11-04 Thread Brice Fines
Hi Frank, I have a random problem using SNMP4J version 1.10 SNAPSHOT 12/10/2009. I know that SNMP4J 1.10.2 was released since then, but I cannot try it in this environment right now. I hope to try it soon, to check if it solves this problem. My application hangs forever while sending a command

[SNMP4J] decode TRAP from debug log?

2010-02-19 Thread Brice Fines
Hi Frank, Is it possible to rebuild a TRAP object (PDUv1) just using data from the log? For example: org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread run Received message from /10.xxx.x.xxx/162 with length 107:

Re: [SNMP4J] decode TRAP from debug log?

2010-02-22 Thread Brice Fines
Hi, Thanks. I got it working with the following code: import java.nio.ByteBuffer; import org.snmp4j.CommandResponder; import org.snmp4j.CommandResponderEvent; import org.snmp4j.MessageDispatcher; import org.snmp4j.MessageDispatcherImpl; import org.snmp4j.TransportMapping; import

[SNMP4J] high CPU usage with SNMP4J 1.11 and DefaultTcpTransportMapping

2010-03-01 Thread Brice Fines
Hi Frank, I noticed that SNMP4J 1.11 release fixes some leak when using DefaultTcpTransportMapping([SFJ-22]), so I updated my jar with 1.11. We use DefaultTcpTransportMapping to send command to our clients. But while I was trying our app with the new jar, I noticed a high CPU usage (near 100%)

Re: [SNMP4J] high CPU usage with SNMP4J 1.11 and DefaultTcpTransportMapping

2010-03-01 Thread Brice Fines
Hi Frank, Thanks for the quick answer, I will try to update and I will let you know. (I am using ibm jdk 1.5.0 SR9, will try to update to at least SR10, since it comes with some NIO fixes) Regards Brice ___ SNMP4J mailing list SNMP4J@agentpp.org

[SNMP4J] (WIP) SNMP4J CommonJ integration contrib

2010-03-08 Thread Brice Fines
Hi Frank, I'am working on integrating SNMP4J in WAS 6.1 (with SNMP4JSettings). I based my work on some IBM example code (i.e. not official code) that provide the base for a J2EE thread factory under WAS 6.1. The IBM code is available at :

[SNMP4J] (WIP) SNMP4J CommonJ integration, second round (with Spring)

2010-03-09 Thread Brice Fines
Hi Frank, Thanks for your advices. I tried to use the IBM WAS ThreadFactory code, thinking this would match what SNMP4J was expecting (a threadfactory) (and their WasTreadFactory was wrapping new threads around WorkManager threads). I switched my implementation to the one you suggested (got rid

[SNMP4J] (WIP) SNMP4J CommonJ/Spring integration contrib, round 3

2010-03-10 Thread Brice Fines
Hi Frank, I made some little changes in SpringTaskExecutorWorkerTaskImpl, now I use the daemon parameter from SNMP4J. I wrap the provided WorkerTask to use Spring SchedulingAwareRunnable, this way, I can submit daemon tasks and normal tasks to the executor. Now, I do not get the WAS warnings

[SNMP4J] (WIP) SNMP4J CommonJ/Spring integration contrib, round 5

2010-03-16 Thread Brice Fines
Hi again, I made a TimerFactory based on CommonJ TimerManager. I include my current code in this post. It was interesting: SNMP4J relies on java.util.TimerTask, and java,util.Timer handle all the black magic for TimerTask (change state, handle stack of TimerTask, ...). CommonJ API is an

Re: [SNMP4J] How to enable logging for SNMP4J using declarative in log4j.properties file

2010-04-05 Thread Brice Fines
Hi Bangar, In order to activate the logging for SNMP4J API in your application, you can add the following line in your log4j.properties (your log4j.properties had to be in your classpath): log4j.logger.org.snmp4j = DEBUG Regards Brice bangarappa bang.ch...@gmail.com Enviado por:

Re: [SNMP4J] Fix for High CPU usage and SNMP4J DefaultTcpTransportMapping

2010-04-16 Thread Brice Fines
Hi, Jim, thanks for the patch you supplied. I just tested it under Windows XP SP3 with IBM JDK 1.5 SR11 and it solves the problem of high cpu usage. Our application work like with SNMP4J 1.10.2: commands are sent quickly over TCP and almost no CPU usage is required (less than 8%), and when the

Re: [SNMP4J] Fix for High CPU usage and SNMP4J DefaultTcpTransportMapping

2010-04-16 Thread Brice Fines
Hi, I cheked Jim's patch for SNMP4J under AIX 5.3.0.0 with IBM JDK 1.5, it also solves the problem of high CPU usage when sending SNMP command over TCP. Regards ___ SNMP4J mailing list SNMP4J@agentpp.org

Re: [SNMP4J] reg: USM and MPV3

2010-04-21 Thread Brice Fines
Hi, I had a similar problem, I was getting a Unknown security name from USM. I checked that the user was added correctly, and it was, but after doing some debugging I noticed I was using a different USM. My error was I was doing initialization twice in my application with different USM (one

Re: [SNMP4J] Socket behaviour with SNMP commands over TCP

2010-09-22 Thread Brice Fines
Hi, @Bangar So far, we did not run into socket port problems (maybe later with a higher number of SNMP over TCP clients). As Frank stated, this seems to be the default (and correct) behaviour of the underlying OS with sockets. Inside the JVM, the socket.close() method get called, but the JVM

[SNMP4J] SNMP4J 1.11.x EOL and security update maintenance?

2011-12-12 Thread Brice Fines
Hi Frank, We have an application based on SNMP4J 1.11.x , and we are wondering if there are any plans for SNMP4J 1.x corrective maintenance in the future, or if we should think about migrating to SNMP4J 2.x soon. Please, can you provide some information about SNMP4J 1.11.x branch. Is it

Re: [SNMP4J] elusive ClosedChannelException in DefaultTcpTransportMapping

2012-01-25 Thread Brice Fines
Hi Frank, Thanks for the fix. I will download and use the snapshot version in our test environment, but I will have to wait for SNMP4J 1.11.04 maintenance release to put it in our production environment. Regards Brice ___ SNMP4J mailing list

[SNMP4J] SNMP4J 1.11.04 release date

2012-04-12 Thread Brice Fines
Hi Frank, Please, can you release SNMP4J 1.11.04, including fixes from version 2.1.0, as a security update release. As I explained in my previous message ( http://lists.agentpp.org/pipermail/snmp4j/2012-January/004774.html ), I would need an official release to put it in a production

Re: [SNMP4J] SNMP4J 1.11.04 release date

2012-04-19 Thread Brice Fines
Hi Frank, Thanks for the release. I will apply this update. I will let you know if it does not fix these TCP ClosedChannelExceptions. Regards ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

[SNMP4J] elusive ClosedChannelException in DefaultTcpTransportMapping strikes back?

2012-11-19 Thread Brice Fines
Hi Frank, Back in April we updated snmp4j to version 1.11.0.4 to solve a race condition in DefaultTcpTransportMapping ( [SFJ-57] ). See previous threads: http://lists.agentpp.org/pipermail/snmp4j/2012-January/004768.html http://lists.agentpp.org/pipermail/snmp4j/2012-April/004815.html Our app