interface.jsp gives NPE
Description
Environment
Java (Java and JVM):
Boot Class Path: /opt/opennms/lib/endorsed/com.springsource.javax.xml.bind-2.1.7.jar:/usr/java/jdk1.6.0_22/jre/lib/resources.jar:/usr/java/jdk1.6.0_22/jre/lib/rt.jar:/usr/java/jdk1.6.0_22/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_22/jre/lib/jsse.jar:/usr/java/jdk1.6.0_22/jre/lib/jce.jar:/usr/java/jdk1.6.0_22/jre/lib/charsets.jar:/usr/java/jdk1.6.0_22/jre/classes
Class Path: /opt/opennms/lib/opennms_bootstrap.jar
Class Version: 50.0
Compiler:
Heap Memory Usage: init = 263065088(256899K) used = 6806871040(6647335K) committed = 7785938944(7603456K) max = 7785938944(7603456K)
Home: /usr/java/jdk1.6.0_22/jre
Input Arguments: [-Djava.endorsed.dirs=/opt/opennms/lib/endorsed, -Dopennms.home=/opt/opennms, -Dcom.sun.management.jmxremote.port=18980, -Dcom.sun.management.jmxremote.ssl=false, -Dcom.sun.management.jmxremote.authenticate=false, -Xmx8192m, -Djava.net.preferIPv4Stack=true, -Dcom.sun.management.snmp.port=9004, -XX:MaxPermSize=128m]
Library Path: /usr/java/jdk1.6.0_22/jre/lib/amd64/server:/usr/java/jdk1.6.0_22/jre/lib/amd64:/usr/java/jdk1.6.0_22/jre/../lib/amd64::/opt/opennms/lib:/opt/opennms/lib/linux64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Loaded Class Count: 13816
Management Spec Version: 1.2
Name: 19684@opennms-dev.state.or.us
Non Heap Memory Usage: init = 24313856(23744K) used = 118813880(116029K) committed = 129499136(126464K) max = 184549376(180224K)
Notification Info: [Ljavax.management.MBeanNotificationInfo;@2ae6fe94
Object Pending Finalization Count: 0
Spec Name: Java Virtual Machine Specification
Spec Vendor: Sun Microsystems Inc.
Spec Version: 1.0
Start Time: 1298513129208
System Properties: {java.vm.version=17.1-b03, java.vendor.url=http://java.sun.com/, org.snmp4j.smisyntaxes=opennms-snmp4j-smisyntaxes.properties, gwt.geocoder.email=, snmp4j.LogFactory=org.snmp4j.log.Log4jLogFactory, org.opennms.snmp.workarounds.allow64BitIpAddress=true, opennms.library.jrrd=/usr/lib64/libjrrd.so, opennms.home=/opt/opennms, com.sun.management.jmxremote.ssl=false, opennms.rtc-client.http-post.base-url=http://localhost:8980/opennms/rtc/post, opennms.ticketer.plugin=org.opennms.netmgt.ticketd.NullTicketerPlugin, gwt.geocoder.minimumQuality=ZIP, java.awt.printerjob=sun.print.PSPrinterJob, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, org.mortbay.jetty.webapp.NoTLDJarPattern=start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar, line.separator=
, opennms.map-client.http-post.password=map, gnu.io.SerialPorts=/dev/ttyACM0:/dev/ttyACM1:/dev/ttyACM2:/dev/ttyACM3:/dev/ttyACM4:/dev/ttyACM5, java.vm.vendor=Sun Microsystems Inc., org.opennms.thresholds.filtersReloadEnabled=false, java.class.path=/opt/opennms/lib/opennms_bootstrap.jar, gwt.geocoder.class=org.opennms.features.poller.remote.gwt.server.geocoding.NullGeocoder, opennms.rtc-client.http-post.username=rtc, opennms.report.dir=/opt/opennms/share/reports, user.name=root, os.arch=amd64, smslib.serial.polling=true, sun.boot.class.path=/opt/opennms/lib/endorsed/com.springsource.javax.xml.bind-2.1.7.jar:/usr/java/jdk1.6.0_22/jre/lib/resources.jar:/usr/java/jdk1.6.0_22/jre/lib/rt.jar:/usr/java/jdk1.6.0_22/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_22/jre/lib/jsse.jar:/usr/java/jdk1.6.0_22/jre/lib/jce.jar:/usr/java/jdk1.6.0_22/jre/lib/charsets.jar:/usr/java/jdk1.6.0_22/jre/classes, sun.cpu.endian=little, java.endorsed.dirs=/opt/opennms/lib/endorsed, java.net.preferIPv4Stack=true, org.opennms.rrd.fileExtension=.jrb, opennms.nodesWithOutagesCount=10, java.specification.vendor=Sun Microsystems Inc., opennms.library.jicmp=/usr/lib64/libjicmp.so, user.timezone=America/Los_Angeles, os.name=Linux, java.ext.dirs=/usr/java/jdk1.6.0_22/jre/lib/ext:/usr/java/packages/lib/ext, sun.arch.data.model=64, os.version=2.6.16.60-0.21-smp, com.sun.management.jmxremote.port=18980, java.specification.name=Java Platform API Specification, gwt.geocoder.rate=10, org.opennms.rrd.storeByGroup=false, parentContextKey=daoContext, com.sun.management.snmp.port=9004, java.vendor=Sun Microsystems Inc., org.opennms.snmp.snmp4j.forwardRuntimeExceptions=false, contextConfigLocation=/WEB-INF/applicationContext-common.xml
classpath:/org/opennms/web/svclayer/applicationContext-svclayer.xml
classpath*:/META-INF/opennms/component-service.xml
classpath:/META-INF/opennms/applicationContext-systemReport.xml
classpath:/META-INF/opennms/applicationContext-reportingCore.xml
classpath:/META-INF/opennms/applicationContext-reportingAvailability.xml
classpath:/META-INF/opennms/applicationContext-reportingJasperReports.xml
classpath:/META-INF/opennms/applicationContext-reporting.xml
/WEB-INF/applicationContext-spring-security.xml
/WEB-INF/applicationContext-jersey.xml
/WEB-INF/applicationContext-spring-webflow.xml
/WEB-INF/applicationContext-remote-poller.xml, sun.jnu.encoding=ANSI_X3.4-1968, java.vm.info=mixed mode, user.dir=/opt/opennms, java.awt.headless=true, sun.cpu.isalist=, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, com.sun.management.jmxremote.authenticate=false, sun.os.patch.level=unknown, opennms.report.template.dir=/opt/opennms/etc, jcifs.properties=/opt/opennms/etc/jcifs.properties, user.home=/root, java.io.tmpdir=/tmp, java.version=1.6.0_22, file.encoding.pkg=sun.io, file.encoding=ANSI_X3.4-1968, gwt.apikey=, log4jConfigLocation=/WEB-INF/log4j.properties, importer.adapter.dns.server=127.0.0.1, java.vm.specification.vendor=Sun Microsystems Inc., org.opennms.netmgt.jetty.port=8980, gwt.maptype=, sun.io.unicode.encoding=UnicodeLittle, org.opennms.rrd.strategyClass=org.opennms.netmgt.rrd.jrobin.JRobinRrdStrategy, user.language=en, java.runtime.version=1.6.0_22-b04, jrobin.fontdir=/opt/opennms/etc, rrd.base.dir=/opt/opennms/share/rrd, opennms.eventlist.acknowledge=false, sun.boot.library.path=/usr/java/jdk1.6.0_22/jre/lib/amd64, java.home=/usr/java/jdk1.6.0_22/jre, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, opennms.map-client.http-post.url=http://localhost:8980/opennms/map/post, gwt.openlayers.url=http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png, opennms.bin.dir=/opt/opennms/bin, sun.management.compiler=HotSpot 64-Bit Server Compiler, java.runtime.name=Java(TM) SE Runtime Environment, opennms.webapplogs.dir=/opt/opennms/logs/webapp, dontBlameOpenNMS=false, opennms.map-client.http-post.username=map, java.library.path=/usr/java/jdk1.6.0_22/jre/lib/amd64/server:/usr/java/jdk1.6.0_22/jre/lib/amd64:/usr/java/jdk1.6.0_22/jre/../lib/amd64::/opt/opennms/lib:/opt/opennms/lib/linux64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib, opennms.eventlist.showCount=false, file.separator=/, distributed.layoutApplicationsVertically=false, java.rmi.server.randomIDs=true, java.vm.specification.version=1.0, rrd.binary=/usr/bin/rrdtool, sun.java.launcher=SUN_STANDARD, opennms.report.logo=/opt/opennms/webapps/images/logo.gif, path.separator=:, version.display=1.8.9, user.country=US, java.class.version=50.0, gwt.geocoder.referer=http://localhost/, java.vm.specification.name=Java Virtual Machine Specification, java.specification.version=1.6, ksc.default.graphsPerLine=1, opennms.rtc-client.http-post.password=rtc}
Total Loaded Class Count: 13820
Unloaded Class Count: 4
Uptime: 3904688
VM Name: Java HotSpot(TM) 64-Bit Server VM
VM Vendor: Sun Microsystems Inc.
VM Version: 17.1-b03
Vendor: Sun Microsystems Inc.
Version: 1.6.0_22
OS (Kernel, OS, and Distribution):
Arch: amd64
Architecture: amd64
Available Processors: 4
Distribution: Linux
Name: Linux
System Load Average: 3.98
Version: 2.6.16.60-0.21-smp
OpenNMS (OpenNMS Core, Version, and Basic Configuration):
Number of Alarms: 143
Number of Events: 674313
Number of IP Interfaces: 130963
Number of Nodes: 2687
Number of SNMP Interfaces: 128434
Version: 1.8.9
TopEvent (Top 20 Most Reported Events):
state.or.us/sdc/collection/Discards: 24347
state.or.us/sdc/collection/Discards-rearmed: 23611
state.or.us/sdc/collection/Interface-Errors: 1734
state.or.us/sdc/collection/Interface-Errors-rearmed: 1535
state.or.us/sdc/poller/ICMP-latency: 7774
state.or.us/sdc/poller/ICMP-latency-rearmed: 7659
uei.opennms.org/generic/traps/SNMP_Authen_Failure: 127335
uei.opennms.org/internal/capsd/rescanCompleted: 65629
uei.opennms.org/internal/promoteQueueData: 10697
uei.opennms.org/internal/rtc/subscribe: 2804
uei.opennms.org/nodes/dataCollectionFailed: 33734
uei.opennms.org/nodes/dataCollectionSucceeded: 14034
uei.opennms.org/nodes/interfaceDown: 156972
uei.opennms.org/nodes/interfaceIPHostNameChanged: 2600
uei.opennms.org/nodes/interfaceUp: 18509
uei.opennms.org/nodes/nodeDown: 62405
uei.opennms.org/nodes/nodeLabelChanged: 2127
uei.opennms.org/nodes/nodeLostService: 64277
uei.opennms.org/nodes/nodeRegainedService: 3856
uei.opennms.org/nodes/nodeUp: 36337
Acceptance / Success Criteria
None
Attachments
2
- 24 Feb 2011, 08:35 PM
- 23 Feb 2011, 10:23 PM
Lucidchart Diagrams
Activity
Show:

Benjamin Reed February 24, 2011 at 11:02 PM
Fixed in 1.8 and master
[1.8 299b03d] https://opennms.atlassian.net/browse/NMS-4469#icft=NMS-4469, null-pointer check for old upgrades
[master 09e0d6b] https://opennms.atlassian.net/browse/NMS-4469#icft=NMS-4469, null-pointer check for old upgrades

Ken Eshelby February 24, 2011 at 8:58 PM
updating isSnmpPrimary to N for NULL entries stops the NPE errors in jetty.log
looks like the log was getting hit when the node page loaded

Ken Eshelby February 24, 2011 at 8:35 PM
snmpinterface query for node in jetty log error

Benjamin Reed February 24, 2011 at 8:26 PM
Looks like isSnmpPrimary can be null, going by the schema. We should do a null-check in getPrimaryString()
Fixed
Details
Assignee
Benjamin ReedBenjamin ReedReporter
Ken EshelbyKen EshelbyComponents
Affects versions
Priority
Major
Details
Details
Assignee

Reporter

Components
Affects versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Created February 23, 2011 at 10:23 PM
Updated January 27, 2017 at 4:19 PM
Resolved February 24, 2011 at 11:02 PM
Since upgrading to 1.8.9, going into an interface page from a node's page leaves the browser in an indefinite query. jetty.log shows an NPE (attached)
This occurs for any interface I've attempted. This is a test box that occasionally gets a new db restored from a 1.3.11 prod box. This is the only related oddity I can think of (1.3.11 --> 1.8.x installs have never given trouble).
interface.jsp appears unmodified.