java.io.IOException: Only 32bit unsigned integers are supported at position 44

Discussion in 'Java' started by Jayraj, May 22, 2018.

  1. Jayraj

    Jayraj

    Joined:
    May 22, 2018
    Messages:
    1
    Likes Received:
    0
    Hi,

    We have a Scala application which calls third party code (snmp) ...when this code is invoked we get following error:

    SNMP req for 300-200003038-0
    SNMPRequestMaker,Sent,300-200003038,1526963334673
    java.io.IOException: Only 32bit unsigned integers are supported at position 44java.io.IOException: Only 32bit unsigned integers are supported at position 44
    java.io.IOException: Only 32bit unsigned integers are supported at position 70

    at org.snmp4j.asn1.BER.decodeUnsignedInteger(BER.java:762)
    at org.snmp4j.smi.TimeTicks.decodeBER(TimeTicks.java:75)
    at org.snmp4j.smi.AbstractVariable.createFromBER(AbstractVariable.java:173)
    at org.snmp4j.smi.VariableBinding.decodeBER(VariableBinding.java:191)
    at org.snmp4j.PDU.decodeBER(PDU.java:584)
    at org.snmp4j.mp.MPv2c.prepareDataElements(MPv2c.java:201)
    at org.snmp4j.MessageDispatcherImpl.dispatchMessage(MessageDispatcherImpl.java:278)
    at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:387)
    at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:347)
    at org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(AbstractTransportMapping.java:76)
    at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(DefaultUdpTransportMapping.java:430)
    at java.lang.Thread.run(Unknown Source)
    java.io.IOException: Only 32bit unsigned integers are supported at position 70
    at org.snmp4j.asn1.BER.decodeUnsignedInteger(BER.java:762)
    at org.snmp4j.smi.TimeTicks.decodeBER(TimeTicks.java:75)
    at org.snmp4j.smi.AbstractVariable.createFromBER(AbstractVariable.java:173)
    at org.snmp4j.smi.VariableBinding.decodeBER(VariableBinding.java:191)
    at org.snmp4j.PDU.decodeBER(PDU.java:584)
    at org.snmp4j.mp.MPv2c.prepareDataElements(MPv2c.java:201)
    at org.snmp4j.MessageDispatcherImpl.dispatchMessage(MessageDispatcherImpl.java:278)
    at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:387)
    at org.snmp4j.MessageDispatcherImpl.processMessage(MessageDispatcherImpl.java:347)
    at org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(AbstractTransportMapping.java:76)
    at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(DefaultUdpTransportMapping.java:430)
    at java.lang.Thread.run(Unknown Source)

    The issue is due counter value exceeding range of Integer (2 power 32)

    since this is a defect in snmp4j confirmation here- (http://oosnmp.net/pipermail/snmp4j/2014-January/005228.html)
    we tried to find fix for the same by checking the latest snmp4 jars. Replacing current snmp jar (snmp4j-2.5.3)
    with latest one snmp4j-2.6.2 hasn't resolved the issue. Would appreciate your help here.

    Regards,
    Jayraj
     
    Jayraj, May 22, 2018
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.