-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 11.1-SNAPSHOT
-
Component/s: Explorer
-
Epic Link:
-
Team:AT
-
Sprint:nxAT 11.1.16, nxAT 11.1.17
-
Story Points:1
Currently, after changes for NXP-28839, navigating directly to a seam component page after server restart leads to the following error:
020-04-30T12:37:05,310 ERROR [WebEngineExceptionMapper] java.util.NoSuchElementException: No value present java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:148) ~[?:?] at org.nuxeo.apidoc.seam.introspection.SeamRuntimeSnapshot.getItem(SeamRuntimeSnapshot.java:99) ~[nuxeo-apidoc-jsf-11.1-SNAPSHOT.jar:?] at org.nuxeo.apidoc.seam.introspection.SeamRuntimeSnapshot.getItem(SeamRuntimeSnapshot.java:38) ~[nuxeo-apidoc-jsf-11.1-SNAPSHOT.jar:?] at org.nuxeo.apidoc.seam.browse.SeamComponentWO.getTargetComponentInfo(SeamComponentWO.java:37) ~[nuxeo-apidoc-jsf-webengine-11.1-SNAPSHOT.jar:?] at org.nuxeo.apidoc.seam.browse.SeamComponentWO.getNxArtifact(SeamComponentWO.java:42) ~[nuxeo-apidoc-jsf-webengine-11.1-SNAPSHOT.jar:?] at org.nuxeo.apidoc.browse.NuxeoArtifactWebObject.doViewDefault(NuxeoArtifactWebObject.java:155) ~[nuxeo-apidoc-webengine-11.1-SNAPSHOT.jar:?] at org.nuxeo.apidoc.browse.NuxeoArtifactWebObject.doGet(NuxeoArtifactWebObject.java:150) ~[nuxeo-apidoc-webengine-11.1-SNAPSHOT.jar:?] 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) ~[?:?]
Method SnapshotManager#initWebContext is called in specific cases, it could be called when setting the http context in the webengine module root to address all cases at once (knowing that these inits are actually only performed once by implemented plugins).