Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13808

Double clicking ImagePicker shows "Cannot replace a component which had not been added..."

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Outdated
    • 14.2.2
    • 14.3.0
    • None
    • None
    • Flagged

    Description

      Double clicking the ImagePicker's "Select" button leads to a toast message "Something went wrong.." and accompanying track trace in the logs. After that, the UI state is unstable so more messages can appear.

      Easily reproducible in the public demo, see .

      In the client report there was mention it could be related to CMS-12556 but that is not verified.

      Stack trace:

      20.08.2020 15:18:23 ERROR http-nio-8080-exec-10 [DefaultExceptionMapper.mapUnexpectedExceptions:170] Unexpected error occurred
      org.apache.wicket.WicketRuntimeException: Cannot replace a component which has not been added: id='extension.list', component=[ImageGalleryPlugin [Component id = extension.list]]:
      [DocumentCollectionView [Component id = documents]]
      	at org.apache.wicket.MarkupContainer.replace(MarkupContainer.java:844) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView$2.onServiceAdded(DocumentCollectionView.java:97) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView$2.onServiceAdded(DocumentCollectionView.java:91) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.service.ServiceTracker.addService(ServiceTracker.java:42) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.internalRegisterService(PluginManager.java:276) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.registerService(PluginManager.java:147) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceForwarder.forwardService(ServiceForwarder.java:132) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceForwarder.onServiceAdded(ServiceForwarder.java:114) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.service.ServiceTracker.addService(ServiceTracker.java:42) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.internalRegisterService(PluginManager.java:276) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceRegistration.notifyTrackers(ServiceRegistration.java:56) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.connect(PluginContext.java:332) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:86) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:372) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:149) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView.showFolder(DocumentCollectionView.java:188) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView.updateView(DocumentCollectionView.java:154) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.DocumentCollectionView$1.onEvent(DocumentCollectionView.java:84) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:77) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.model.ObservableModel.notifyObservers(ObservableModel.java:69) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.model.ObservableModel.setObject(ObservableModel.java:52) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.service.BrowseService.lambda$new$7cb48953$1(BrowseService.java:100) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_262]
      	at org.hippoecm.frontend.plugins.cms.browse.model.BrowserSections.notifyListeners(BrowserSections.java:119) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.model.BrowserSections.addSection(BrowserSections.java:63) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.service.BrowseService$2.onServiceAdded(BrowseService.java:110) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.cms.browse.service.BrowseService$2.onServiceAdded(BrowseService.java:106) ~[hippo-cms-perspectives-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.service.ServiceTracker.addService(ServiceTracker.java:42) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.internalRegisterService(PluginManager.java:276) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.registerService(PluginManager.java:147) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceForwarder.forwardService(ServiceForwarder.java:132) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceForwarder.onServiceAdded(ServiceForwarder.java:114) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.service.ServiceTracker.addService(ServiceTracker.java:42) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.internalRegisterService(PluginManager.java:276) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ServiceRegistration.notifyTrackers(ServiceRegistration.java:56) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.connect(PluginContext.java:332) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:86) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:372) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:149) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.loader.PluginClusterLoader.start(PluginClusterLoader.java:61) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.connect(PluginContext.java:339) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:86) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:372) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:149) ~[hippo-cms-engine-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.plugins.standards.picker.NodePickerController.create(NodePickerController.java:95) ~[hippo-cms-api-14.2.2.jar:14.2.2]
      	at org.hippoecm.frontend.editor.plugins.linkpicker.LinkPickerDialog.<init>(LinkPickerDialog.java:95) ~[hippo-cms-editor-frontend-14.2.2.jar:14.2.2]
      	at org.onehippo.addon.frontend.gallerypicker.dialog.GalleryPickerDialog.<init>(GalleryPickerDialog.java:45) ~[hippo-plugin-gallerypicker-14.2.2.jar:14.2.2]
      	at org.onehippo.addon.frontend.gallerypicker.GalleryPickerPlugin.createDialog(GalleryPickerPlugin.java:258) ~[hippo-plugin-gallerypicker-14.2.2.jar:14.2.2]
      	at org.onehippo.addon.frontend.gallerypicker.GalleryPickerPlugin.access$000(GalleryPickerPlugin.java:63) ~[hippo-plugin-gallerypicker-14.2.2.jar:14.2.2]
      	at org.onehippo.addon.frontend.gallerypicker.GalleryPickerPlugin$1.onClick(GalleryPickerPlugin.java:137) ~[hippo-plugin-gallerypicker-14.2.2.jar:14.2.2]
      	at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:85) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601) ~[wicket-core-7.14.0.jar:7.14.0]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_262]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_262]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_262]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_262]
      	at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895) ~[wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) ~[wicket-request-7.14.0.jar:7.14.0]
      	at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284) [wicket-core-7.14.0.jar:7.14.0]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.31]
      	at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:42) [hippo-cms-login-14.2.2.jar:14.2.2]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.31]
      	at org.hippoecm.hst.core.container.FilterChainInvokingValve.invoke(FilterChainInvokingValve.java:72) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.JCRSessionStatefulConcurrencyValve.invoke(JCRSessionStatefulConcurrencyValve.java:56) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.SubjectBasedSessionValve.invoke(SubjectBasedSessionValve.java:58) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.SecurityValve.invoke(SecurityValve.java:177) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.LocalizationValve.invoke(LocalizationValve.java:101) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.CmsSecurityValve.invoke(CmsSecurityValve.java:63) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.InitializationValve.invoke(InitializationValve.java:40) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline$Invocation.invokeNext(HstSitePipeline.java:288) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline.invokeValves(HstSitePipeline.java:173) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstSitePipeline.invoke(HstSitePipeline.java:155) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.core.container.HstRequestProcessorImpl.processRequest(HstRequestProcessorImpl.java:81) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.container.HstDelegateeFilterBean.doFilter(HstDelegateeFilterBean.java:562) [hst-core-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.container.DelegatingFilter.doFilter(DelegatingFilter.java:68) [hst-commons-14.2.2.jar:14.2.2]
      	at org.hippoecm.hst.container.HstFilter.doFilter(HstFilter.java:51) [hst-commons-14.2.2.jar:14.2.2]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:9.0.31]
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [catalina.jar:9.0.31]
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.31]
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688) [catalina.jar:9.0.31]
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [catalina.jar:9.0.31]
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [catalina.jar:9.0.31]
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367) [tomcat-coyote.jar:9.0.31]
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:9.0.31]
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-coyote.jar:9.0.31]
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639) [tomcat-coyote.jar:9.0.31]
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.31]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_262]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_262]
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.31]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: