SnmpTrapHelper forwardV2Trap method exception

Description

When using fowardV2Trap (or forwardTrap on a V2 trap) in a scriptd trap
forwarding script as in the example scriptd-configuration.xml file, the method
fails with the following exception:

2007-03-20 21:59:42,383 ERROR [Scriptd-Executor] Executor: Non-UEI-specific
event handler script [0] execution failed
com.ibm.bsf.BSFException: The application script threw an exception:
org.opennms.netmgt.scriptd.helper.SnmpTrapHelperException: Failed to send trap
the problem resulted from:
org.opennms.protocols.snmp.SnmpPduEncodingException: Cannot send pdu,
invalid SNMP version BSF info: at line: 0 column: columnNo
at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
at com.ibm.bsf.BSFManager.exec(BSFManager.java:479)
at org.opennms.netmgt.scriptd.Executor.run(Executor.java:302)
at java.lang.Thread.run(Thread.java:595)

I have verified that the event.snmp.getVersion method returns "v2".

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created March 26, 2007 at 11:39 AM
Updated September 21, 2021 at 6:23 PM