[SNMP4J] Re: FIXED POSSIBLE JAR BUG e.getMessageDispatcher().returnResponsePdu WITH messageProcessingModel : 0
lemar at canada.com
lemar at canada.com
Sat Jun 5 14:23:53 CEST 2004
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
More information about the SNMP4J
mailing list