问题描述
那位知道createRow方法的参数怎么设置,给个例子瞧瞧,多谢了.我设置的第一个参数Target如下:CommunityTargettarget=newCommunityTarget();target.setCommunity(newOctetString("public"));target.setVersion(SnmpConstants.version1);target.setAddress(newUdpAddress("10.66.244.132/161"));target.setRetries(1);target.setTimeout(time);总是提示如下错误:java.lang.NullPointerExceptionatorg.snmp4j.util.TableUtils.createRow(TableUtils.java:712)
时间: 2024-09-21 02:41:30