admin管理员组文章数量:1122846
I use snmp4j to query data using snmpwalk, the version is 3.7.7. Sometime it is ok,but sometime it has a error:org.snmp4j.MessageException: Operation not permitted. How to fix it? According to this question, I have try to add the iptable rule, but it is still has the error in radom. The total error is:
org.snmp4j.MessageException: Operation not permitted at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:642) at org.snmp4j.Snmp.sendMessage(Snmp.java:1074) at org.snmp4j.Snmp.send(Snmp.java:974) at org.snmp4j.Snmp.send(Snmp.java:956) at org.snmp4j.Snmp.send(Snmp.java:924) com.iwhalecloud.uncc.util.SnmpUtil.lambda$getTableByWalkOid$0(SnmpUtil.java:581) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.io.IOException: Operation not permitted at java.base/java.PlainDatagramSocketImpl.send(Native Method) at java.base/java.DatagramSocket.send(DatagramSocket.java:695) at org.snmp4j.transport.DefaultUdpTransportMapping.sendMessage(DefaultUdpTransportMapping.java:128) at org.snmp4j.transport.DefaultUdpTransportMapping.sendMessage(DefaultUdpTransportMapping.java:46) at org.snmp4j.MessageDispatcherImpl.sendMessage(MessageDispatcherImpl.java:261) at org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:619) … 10 more
本文标签: javaHow to fix 39 Operation not permitted39 random error using snmp4jStack Overflow
版权声明:本文标题:java - How to fix ' Operation not permitted' random error using snmp4j? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736308303a1933613.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论