[BGPCEP-977] Graph fails with NPE Created: 26/Jul/21 Updated: 14/Nov/21 Resolved: 14/Nov/21 |
|
| Status: | Resolved |
| Project: | bgpcep |
| Component/s: | Graph |
| Affects Version/s: | 0.16.1 |
| Fix Version/s: | 0.16.10 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Olivier Dugeon |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
CSIT run here: shows this nasty: 2021-07-26T03:51:15,484 | ERROR | Framework stop - Equinox Container: a89c8372-1e32-4c35-8320-2e341d4c405f | ConnectedGraphServer | 250 - org.opendaylight.bgpcep.graph-impl - 0.16.1 | bundle org.opendaylight.bgpcep.graph-impl:0.16.1 (250)[org.opendaylight.graph.impl.ConnectedGraphServer(130)] : The close method has thrown an exception java.lang.NullPointerException: null at org.opendaylight.graph.impl.ConnectedGraphImpl.clear(ConnectedGraphImpl.java:299) ~[?:?] at org.opendaylight.graph.impl.ConnectedGraphServer.destroyOperationalGraphModel(ConnectedGraphServer.java:146) ~[?:?] at org.opendaylight.graph.impl.ConnectedGraphServer.close(ConnectedGraphServer.java:87) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:244) ~[bundleFile:?] at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) ~[bundleFile:?] at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:685) ~[bundleFile:?] at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:529) [bundleFile:?] at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:318) [bundleFile:?] at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:308) [bundleFile:?] at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:421) [bundleFile:?] at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:165) [bundleFile:?] at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:853) [bundleFile:?] |
| Comments |
| Comment by Olivier Dugeon [ 09/Nov/21 ] |
|
The problem comes from the fact that graph is deleted twice:
There is 2 solutions to solve the problem:
Second method seems better
|