[AAA-122] NPE in org.opendaylight.aaa.shiro.realm.MDSALDynamicAuthorizationFilter Created: 12/Apr/17 Updated: 21/Mar/19 Resolved: 05/May/17 |
|
| Status: | Resolved |
| Project: | aaa |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Ryan Goulding |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8214 |
| Description |
|
2017-04-11 11:10:31,367 | WARN | tp1159369930-242 | ServletHandler | 44 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.19.v20160209 | Error Processing URI: /restconf/modules - (java.lang.NullPointerException) null |
| Comments |
| Comment by Peter Gubka [ 13/Apr/17 ] |
|
I am switching this bug to blocker, because i am unable to move forward in DOMDataBroker testing if tell-based protocol is used. |
| Comment by Ryan Goulding [ 18/Apr/17 ] |
|
Please add me to AAA bugs in the future. It looks like the dataBroker reference is null. I think I need to update the blueprint.xml to include a dataBroker reference so it is non-null when the AAAShiroProvider is loaded. |
| Comment by Ryan Goulding [ 19/Apr/17 ] |
|
Actually I see now... NETCONF/RESTCONF doesn't have an OSGI dependency on AAA. Thats for a good reason, we never exposed an API for it. I would think the correct thing to do here would be to: 1) expose service api w/ filter method Make sense, Robert et al.? |
| Comment by Ryan Goulding [ 19/Apr/17 ] |
|
1) is done through https://git.opendaylight.org/gerrit/#/c/55255/ |
| Comment by Ryan Goulding [ 19/Apr/17 ] |
|
2) Draft patch in NETCONF |
| Comment by Ryan Goulding [ 27/Apr/17 ] |
|
stable/carbon: |
| Comment by Peter Gubka [ 28/Apr/17 ] |
|
Please have a look at https://jenkins.opendaylight.org/sandbox/job/bgpcep-csit-3node-bgpclustering-longevity-only-carbon/8/ NPE returned here: It comes from node 2: |
| Comment by Ryan Goulding [ 01/May/17 ] |
|
Data store isn't accessible... is the node isolated? |
| Comment by Ryan Goulding [ 01/May/17 ] |
|
https://git.opendaylight.org/gerrit/#/c/56330/ should handle the other NPE in this same section of code. |
| Comment by Peter Gubka [ 02/May/17 ] |
|
I still hit the problem with NPE. Here the suite restarts (kill and ./bin/start) all 3 odl nodes. |
| Comment by Ryan Goulding [ 02/May/17 ] |
|
Okay I see... dataBroker is null which means that AAAShiroProvider.getInstance().getDataBroker() is returning null. My guess is that there is some sort of race or the container is restarted resulting on null dataBroker. I will try injecting the bean directly into the MDSALDynamicAuthorizationFilter instead and avoid the kludge of managing lifecycle in java code... |
| Comment by Viera Zelcamova [ 04/May/17 ] |
|
Hi Ryan, |
| Comment by Peter Gubka [ 04/May/17 ] |
|
Stored logs from job mentioned in comment 10. Robot's log.html is not attached, because it is bigger tham 1MB. |
| Comment by Peter Gubka [ 04/May/17 ] |
|
Attachment logs.tar has been added with description: stored logs from comment 10 |
| Comment by Ryan Goulding [ 04/May/17 ] |
|
I think this should fix it: https://git.opendaylight.org/gerrit/#/c/56540/ This is a workaround due to |
| Comment by Ryan Goulding [ 04/May/17 ] |
| Comment by Ryan Goulding [ 04/May/17 ] |
|
Leaving this as Waiting For Review until you verify it is fixed, Peter. |
| Comment by Vratko Polak [ 05/May/17 ] |
|
https://git.opendaylight.org/gerrit/56548 is merged, so setting status to FIXED. Now it is time for Peter to look at the new results and reopen, or set VERIFIED. |