Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-24 Thread Anis Hachani
Dear Frank, I hope all you are doing fine , well Mr frank with snmp4j when i try to enregister the system description i get the *exception duplicate registration * *here is what i have added : *public static final OID sysdescr = new OID(new int[] { 1,3,6,1,2,1,1,1,0}); *Here is the Exception na

Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-23 Thread Amol Rao
Thanks for the response, Frank. I was bit surprised by NPE since we are getting it only on one system. I fixed the SNMP4J code in our environment for Null check and the problem went away. We are investigating our code in more detail and initial investigation reveals that there is SNMP get request

Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-18 Thread Frank Fock
Hi, Another user pointed me to the fact that you probalby using SNMP4J 1.x. In that case line 499 uses the variable binding list Vector of the PDU. If you get a NPE there, then you have set the list to null. You will have to fix that. Best regards, Frank Am 17.04.2012 23:20, schrieb Frank Fock:

Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-17 Thread Frank Fock
Hi, A NullPointerException at that location can be caused only by a NULL request ID. How you managed to be NULL - I don't know. Normally, SNMP4J takes care to set it. So you must have done something special. A SNMP packet fragementation does not exists on UDP level in the way you described it (tw

Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-16 Thread Amol Rao
...any thoughts? anyone? On Mon, Apr 16, 2012 at 4:09 PM, Amol Rao wrote: > I see the following exception when trap is being sent out. Any pointers? > > > java.lang.NullPointerException >        at org.snmp4j.PDU.getBERPayloadLengthPDU(PDU.java:499) >        at org.snmp4j.PDU.getBERLength(PDU.jav

Re: [SNMP4J] V2 Trap Packet Fragmentation

2012-04-16 Thread Amol Rao
I see the following exception when trap is being sent out. Any pointers? java.lang.NullPointerException at org.snmp4j.PDU.getBERPayloadLengthPDU(PDU.java:499) at org.snmp4j.PDU.getBERLength(PDU.java:436) at org.snmp4j.mp.MPv2c.prepareOutgoingMessage(MPv2c.java:118)