[SNMP4J] Re: SNMP4J Digest, Vol 5, Issue 4

Vee realvee2000 at yahoo.com
Mon Jun 7 10:34:37 CEST 2004


Thank you for your effort Ian, u did very good job. 
It works for me as well :D 
 
Thanks again

snmp4j-request at agentpp.org wrote:
Send SNMP4J mailing list submissions to
snmp4j at agentpp.org

To subscribe or unsubscribe via the World Wide Web, visit
http://p15141779.pureserver.info/mailman/listinfo/snmp4j
or, via email, send a message with subject or body 'help' to
snmp4j-request at agentpp.org

You can reach the person managing the list at
snmp4j-owner at agentpp.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of SNMP4J digest..."


Today's Topics:

1. Re: FIXED POe.getMessageDispatcher().returnResponsePdu WITH
messageProcessingModel : 0 (lemar at canada.com)
2. Re: FIXED POe.getMessageDispatcher().returnResponsePdu WITH
messageProcessingModel : 0 (lemar at canada.com)
3. Re: FIXED POSSIBLE JAR BUG
e.getMessageDispatcher().returnResponsePdu WITH
messageProcessingModel : 0 (lemar at canada.com)


----------------------------------------------------------------------

Message: 1
Date: Sat, 05 Jun 2004 05:18:03 -0700 (PDT)
From: lemar at canada.com
Subject: [SNMP4J] Re: FIXED
POe.getMessageDispatcher().returnResponsePdu WITH
messageProcessingModel : 0
To: snmp4j at agentpp.org
Message-ID:
<20040605051804.18737.h003.c009.wm at mail.canada.com.criticalpath.net>
Content-Type: text/plain; charset=iso-8859-1

On Thu, 03 Jun 2004 13:24:43 -0700 (PDT),
lemar at canada.com wrote:

> 
> 
> Hello,
> 
> I've tried getting the SnmpRequest.java application to
> work with version 1 messaging, but as of yet I haven't
> had any success.
> 
> I've been using the SNMP4j code as an agent, and I
have
> been sending SNMPv1 GET messages to the agent. The
> agent makes it to the call to the 'returnResponsePDU'
> method, at which point I get a 'StackOverflowError
> Catch: Error while sending response:
> java.lang.StackOverflowError'.
> 
> Does anyone have any ideas?
> 
> Even better, does anyone have any sample code using
> SNMPv1 GET?
> 
> (by the way, I was able to get the 'returnResponsePDU'
> to work using SNMPv2c messages.
> 
> thank you.
> 
> -Ian


------------------------------

Message: 2
Date: Sat, 05 Jun 2004 05:18:33 -0700 (PDT)
From: lemar at canada.com
Subject: [SNMP4J] Re: FIXED
POe.getMessageDispatcher().returnResponsePdu WITH
messageProcessingModel : 0
To: snmp4j at agentpp.org
Message-ID:
<20040605051833.9988.h003.c009.wm at mail.canada.com.criticalpath.net>
Content-Type: text/plain; charset=iso-8859-1

On Thu, 03 Jun 2004 13:24:43 -0700 (PDT),
lemar at canada.com wrote:

> 
> 
> Hello,
> 
> I've tried getting the SnmpRequest.java application to
> work with version 1 messaging, but as of yet I haven't
> had any success.
> 
> I've been using the SNMP4j code as an agent, and I
have
> been sending SNMPv1 GET messages to the agent. The
> agent makes it to the call to the 'returnResponsePDU'
> method, at which point I get a 'StackOverflowError
> Catch: Error while sending response:
> java.lang.StackOverflowError'.
> 
> Does anyone have any ideas?
> 
> Even better, does anyone have any sample code using
> SNMPv1 GET?
> 
> (by the way, I was able to get the 'returnResponsePDU'
> to work using SNMPv2c messages.
> 
> thank you.
> 
> -Ian


------------------------------

Message: 3
Date: Sat, 05 Jun 2004 05:23:53 -0700 (PDT)
From: lemar at canada.com
Subject: [SNMP4J] Re: FIXED POSSIBLE JAR BUG
e.getMessageDispatcher().returnResponsePdu WITH messageProcessingModel
: 0
To: snmp4j at agentpp.org
Message-ID:
<20040605052353.19629.h003.c009.wm at mail.canada.com.criticalpath.net>
Content-Type: text/plain; charset=iso-8859-1


I think that I've made it past the bug that I had had a
couple of days earlier.

There is an infinite loop inside of the PDUv1 class,
and more specifically in the "getBERPayloadLengthPDU"
method.

Inside of the method, it begins with a reference to
"return super.getBERPayloadLength();
", but I think that it should have been "return
super.getBERPayloadLengthPDU();
".

I've made the code change, tested it, and it works
great.

I'd be curious to see if this is a fix or not.

(thank you Zied for the response. Ton idee m'a dirigee
vers la bonne direction. Salut).

-Ian

On Thu, 03 Jun 2004 13:24:43 -0700 (PDT),
lemar at canada.com wrote:

> 
> 
> Hello,
> 
> I've tried getting the SnmpRequest.java application to
> work with version 1 messaging, but as of yet I haven't
> had any success.
> 
> I've been using the SNMP4j code as an agent, and I
have
> been sending SNMPv1 GET messages to the agent. The
> agent makes it to the call to the 'returnResponsePDU'
> method, at which point I get a 'StackOverflowError
> Catch: Error while sending response:
> java.lang.StackOverflowError'.
> 
> Does anyone have any ideas?
> 
> Even better, does anyone have any sample code using
> SNMPv1 GET?
> 
> (by the way, I was able to get the 'returnResponsePDU'
> to work using SNMPv2c messages.
> 
> thank you.
> 
> -Ian


------------------------------

_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://p15141779.pureserver.info/mailman/listinfo/snmp4j


End of SNMP4J Digest, Vol 5, Issue 4
************************************

Surmsak Mahittivanitcha [V] 
Address : 71/398 Pitt st. Sydney, NSW  2000
Mob. : +61(4)-2165-5794


		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger


More information about the SNMP4J mailing list