Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-8780

JCR Multi Field throws exception on dialog without an existing node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.45, 6.3.0
    • 6.2.18
    • None
    • None
    • Yes
    • Yes

      If you try to configure a dialog which uses a JCR Multi Field with an action that is available at root level an exception is thrown.

      Reproduce

      • Install my-module.zip
      • Open the Pages app
      • Click on the action "Example"

      Actual
      An exception is thrown.

      2024-03-12 07:49:00,571 ERROR nolia.ui.contentapp.browser.ActionExecutionService: An error occurred while executing action [example]
      info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: example
      	at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:64) ~[magnolia-ui-api-6.2.43.jar:?]
      	at info.magnolia.ui.contentapp.browser.ActionExecutionService.executeAction(ActionExecutionService.java:70) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.action.service.CompatibilityActionExecutionService.executeAction(CompatibilityActionExecutionService.java:129) ~[magnolia-ui-framework-compatibility-6.2.43.jar:?]
      	at info.magnolia.ui.contentapp.browser.actions.ActionbarPresenter.fireAction(ActionbarPresenter.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.contentapp.browser.actions.ActionbarView.lambda$initialiseActionbar$3ff1b2f2$1(ActionbarView.java:139) ~[magnolia-ui-framework-6.2.43.jar:?]
      ...
      ...
      ...
      Caused by: info.magnolia.objectfactory.MgnlInstantiationException: Unable to resolve parameters [Locale at 4] of ctor [MultiFieldEntryResolution(Definition, MultiFieldDefinition, I18NAuthoringSupport, ComponentProvider, Locale)]
      	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:97) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.lambda$newInstanceWithParameterResolvers$3(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.provideInCurrentScope(UiComponentProvider.java:176) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstanceWithParameterResolvers(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstance(UiComponentProvider.java:127) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:155) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:128) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.editor.MultiFormView.<init>(MultiFormView.java:101) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_261]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_261]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_261]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_261]
      	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:129) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:99) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.lambda$newInstanceWithParameterResolvers$3(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.provideInCurrentScope(UiComponentProvider.java:176) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstanceWithParameterResolvers(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstance(UiComponentProvider.java:127) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:139) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:126) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.editor.FormView.createSubEditor(FormView.java:123) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.editor.FormView.lambda$createComplexProperties$3(FormView.java:115) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at java.util.ArrayList.forEach(ArrayList.java:1259) ~[?:1.8.0_261]
      	at info.magnolia.ui.editor.FormView.createComplexProperties(FormView.java:101) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.editor.FormView.<init>(FormView.java:91) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_261]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_261]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_261]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_261]
      	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:129) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:99) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:134) ~[magnolia-core-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.lambda$newInstanceWithParameterResolvers$3(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.provideInCurrentScope(UiComponentProvider.java:176) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstanceWithParameterResolvers(UiComponentProvider.java:136) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.framework.ioc.UiComponentProvider.newInstance(UiComponentProvider.java:127) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:139) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.UIComponent.create(UIComponent.java:126) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.dialog.actions.OpenDialogAction.execute(OpenDialogAction.java:107) ~[magnolia-ui-framework-6.2.43.jar:?]
      	at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:62) ~[magnolia-ui-api-6.2.43.jar:?]
      	... 133 more
      

      Expected
      Dialog should open.

      Note
      Full stacktrace: error.txt

        Acceptance criteria

          1. error.txt
            42 kB
          2. my-module.zip
            6 kB

              asiska Adam Siska
              rgange Richard Gange
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started: