Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2072

NoSuchDataException is thrown after importing pages through export/import tool.

    Details

    • Sprint:
      Sprint 83, Sprint 87
    • Steps to Reproduce:
      Hide

      On fresh install of gatein.
      1) Login and go to Group -> Administration -> Site Export/Import. (If this is not a fresh install, add the Export/Import gadget to a page on the portal).
      2) Expand the sites and portal nodes in the tree nav on the left. Select the site classic, hit the export button, and save the zip file to local filesystem.
      4) Hit the import link and upload zip file previously exported. Check the overwrite existing data checkbox, and hit the import button.
      5) Navigate back to the home page. (sometimes this will error, sometimes not). Click Edit Page, you should see errors and similar stacktrace in server logs.

      Show
      On fresh install of gatein. 1) Login and go to Group -> Administration -> Site Export/Import. (If this is not a fresh install, add the Export/Import gadget to a page on the portal). 2) Expand the sites and portal nodes in the tree nav on the left. Select the site classic, hit the export button, and save the zip file to local filesystem. 4) Hit the import link and upload zip file previously exported. Check the overwrite existing data checkbox, and hit the import button. 5) Navigate back to the home page. (sometimes this will error, sometimes not). Click Edit Page, you should see errors and similar stacktrace in server logs.
    • Workaround Description:
      Hide

      Log out and back in.

      Show
      Log out and back in.

      Description

      Below exception is thrown after importing pages through management tools (see steps to reproduce section). I think this is a stale storageId coming from the UI when the data has changed outside the UI. Typically logging out solves the issue, but this isn't optimal. Changes to data should not be only achievable through the UI. The changes are being sent through DataStorage, so there should be someway to sync this data up.

      Stacktrace:

      Caused by: org.exoplatform.portal.config.NoSuchDataException: Can not find 1c42bec77f0000011076449207f5d085
      	at org.exoplatform.portal.pom.config.POMSession.findCustomizationById(POMSession.java:214)
      	at org.exoplatform.portal.pom.config.tasks.PreferencesTask$Load.run(PreferencesTask.java:91)
      	at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:405)
      	at org.exoplatform.portal.pom.config.ExecutorDispatcher.execute(ExecutorDispatcher.java:60)
      	at org.exoplatform.portal.pom.config.TaskExecutionDecorator.execute(TaskExecutionDecorator.java:38)
      	at org.exoplatform.portal.pom.config.cache.DataCache.read(DataCache.java:169)
      	at org.exoplatform.portal.pom.config.cache.DataCache.execute(DataCache.java:61)
      	at org.exoplatform.portal.pom.config.TaskExecutionDecorator.execute(TaskExecutionDecorator.java:38)
      	at org.exoplatform.portal.pom.config.cache.PortalNamesCache.execute(PortalNamesCache.java:77)
      	at org.exoplatform.portal.pom.config.POMSessionManager.execute(POMSessionManager.java:251)
      	at org.exoplatform.portal.pom.config.POMDataStorage.load(POMDataStorage.java:176)
      	at org.exoplatform.portal.config.DataStorageImpl.load(DataStorageImpl.java:111)
      	at org.exoplatform.portal.webui.application.ModelAdapter$1.getPortletContext(ModelAdapter.java:89)
      	at org.exoplatform.portal.webui.application.UIPortlet.getPortletContext(UIPortlet.java:993)
      	at org.exoplatform.portal.webui.application.UIPortlet.create(UIPortlet.java:829)
      	at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:212)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vstorm83 Vu Viet Phuong
                  Reporter:
                  nscavell Nick Scavelli
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 days, 6 hours
                    2d 6h