Survillance tap fails with "The OpenNMS Web User Interface Has Experienced an Error"

Description

Clicking on Survilance tab causes following exception.

org.springframework.orm.ObjectRetrievalFailureException
at org.opennms.web.svclayer.support.DefaultSurveillanceService$SurveillanceView.getOnmsCategoriesFromViewCategories(DefaultSurveillanceService.java:277)
at org.opennms.web.svclayer.support.DefaultSurveillanceService$SurveillanceView.getCategoriesForRow(DefaultSurveillanceService.java:256)
at org.opennms.web.svclayer.support.DefaultSurveillanceService$VeryLowMemCellStatusStrategy.calculateCellStatus(DefaultSurveillanceService.java:205)
at org.opennms.web.svclayer.support.DefaultSurveillanceService.createSurveillanceTable(DefaultSurveillanceService.java:333)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy91.createSurveillanceTable(Unknown Source)
at org.opennms.web.controller.SurveillanceViewController$1.run(SurveillanceViewController.java:133)

Environment

OpenNMS Version: 1.10.3-SNAPSHOT Java Version: 1.7.0_03 Oracle Corporation Java Virtual Machine: 22.1-b02 Oracle Corporation Operating System: Linux 2.6.32-220.4.1.el6.x86_64 (amd64) Servlet Container: jetty/7.5.1.v20110908 (Servlet Spec 2.5) User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8)

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Seth Leger July 30, 2012 at 8:26 PM

This is caused when you remove a category and a reference to it still remains in surveillance-views.xml in the /opt/opennms/etc directory. Just remove the orphaned entries from the config file and you should be able to view that page.

Configuration

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created May 22, 2012 at 9:46 PM
Updated September 20, 2014 at 2:45 PM
Resolved July 30, 2012 at 8:26 PM