Details
-
Bug
-
Status: Resolved (View Workflow)
-
Blocker
-
Resolution: Fixed
-
14.0.3
-
Security Level: Default (Default Security Scheme)
-
None
-
Newts - Phase 3
Description
During startup on my machine, I'm seeing an exception inside EnhancedLinkdTopologyProvider that seems to indicate that it is not wrapping an OnmsNode.getLldpElement() call in a Hibernate transaction. This may prevent the topology map from showing LLDP links. The exception happens several times during startup.
2015-08-11 12:21:19,924 DEBUG org.opennms.features.topology.plugins.topo.linkd:17.0.0.SNAPSHOT(104) [FelixStartLevel] org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider: init: loading topology. 2015-08-11 12:21:19,924 DEBUG org.opennms.features.topology.app:17.0.0.SNAPSHOT(98) [Blueprint Extender: 3] org.opennms.features.topology.app: ServiceEvent REGISTERED - [org.osgi.service.cm.ManagedService, o rg.opennms.features.topology.api.IconRepository] - org.opennms.features.topology.app 2015-08-11 12:21:19,983 DEBUG org.opennms.features.topology.plugins.topo.linkd:17.0.0.SNAPSHOT(104) [FelixStartLevel] org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider: loadtopology: parsing lldp link with id '711' link 'org.opennms.netmgt.model.LldpLink@18e140ed[NodeId=8,lldpLocalPortNum=3,lldpPortIdSubType=interfaceName,lldpPortId=1/g3,lldpPortDescr=Ethernet Interface,lld pPortIfindex=<null>,lldpRemChassisId=a063917ca1a5,lldpRemChassisSubType=macAddress,lldpRemSysname=mrtwig,lldpRemPortIdSubType=local,lldpRemPortId=0/1,lldpRemPortDescr=0/1,createTime=2015-08-10 14:52:01.165,l astPollTime=2015-08-10 16:18:51.352]' 2015-08-11 12:21:19,992 ERROR org.opennms.features.topology.plugins.topo.linkd:17.0.0.SNAPSHOT(104) [FelixStartLevel] org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider: Exception getting Lldp link: could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)[hibernate-core-3.6.10.Final.jar:3.6.10.Final] at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)[hibernate-core-3.6.10.Final.jar:3.6.10.Final] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)[hibernate-core-3.6.10.Final.jar:3.6.10.Final] at org.opennms.netmgt.model.OnmsNode_$$_jvst1b8_f.getLldpElement(OnmsNode_$$_jvst1b8_f.java)[opennms-model-17.0.0-SNAPSHOT.jar:] at org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider.getLldpLinks(EnhancedLinkdTopologyProvider.java:539) at org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider.load(EnhancedLinkdTopologyProvider.java:412) at org.opennms.features.topology.plugins.topo.linkd.internal.EnhancedLinkdTopologyProvider.onInit(EnhancedLinkdTopologyProvider.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_40] at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_40] at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297)[14:org.apache.aries.blueprint.core:1.4.1] at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958)[14:org.apache.aries.blueprint.core:1.4.1] ...