Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29049

Better init of web context for plugins

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.1-SNAPSHOT
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Explorer

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m