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

Problems with references in m6 content-type generated apps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.2.2
    • None
    • None
    • None

    Description

      If you create an m6 app based on a content type, and use the 'reference' field to link to the 'category' content type. Then if you create a new content item and hit the 'Add' button, then an WARN is written to the log:

       

      2020-05-07 18:12:03,412 WARN  uddyMutableWrapperHelper$BeanPropertyMethodInvoker: Failed to invoke a fallback getDatasource call due to a reflection operation problem: null, returning nulljava.lang.reflect.InvocationTargetException: nullat sun.reflect.GeneratedMethodAccessor460.invoke(Unknown Source) ~[?:?]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151]at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151]at info.magnolia.config.ByteBuddyMutableWrapperHelper$BeanPropertyMethodInvoker.invokeGetter(ByteBuddyMutableWrapperHelper.java:308) ~[magnolia-configuration-6.2.jar:?]at 
      

      Then if you hit the 'Select New' button, an exception is displayed in the app:

      Failed to create an instance with c-tor [WorkbenchChooser(WorkbenchChooserDefinition, ValueContext)]
      
      RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc caused by InvocationTargetException caused by MethodException: Invocation of method buttonClick in info.magnolia.ui.field.factory.LinkFieldFactory$$Lambda$2015/121201489 failed. caused by MgnlInstantiationException: Failed to create instance of [class info.magnolia.ui.chooser.SingleItemWorkbenchChooser] caused by MgnlInstantiationException: Failed to create an instance with c-tor [SingleItemWorkbenchChooser(SingleItemWorkbenchChooserDefinition)] caused by InvocationTargetException caused by MgnlInstantiationException: Failed to create instance of [class info.magnolia.ui.chooser.WorkbenchChooser] caused by MgnlInstantiationException: Failed to create an instance with c-tor [WorkbenchChooser(WorkbenchChooserDefinition, ValueContext)] caused by InvocationTargetException caused by NullPointerException
      

      To reproduce: 

      • With app defintion using !content-type...
      • Create a new item
      • Try to link to something
      • See WARN in logs
      • See Exception

       

       

       

       

      Checklists

        Acceptance criteria

        Attachments

          1. fishies-app.yaml
            0.1 kB
          2. fishies-ct.yaml
            0.2 kB
          3. MGNLCT-144_stacktrace.txt
            19 kB
          4. Screen Shot 2020-05-07 at 18.10.04.png
            Screen Shot 2020-05-07 at 18.10.04.png
            227 kB

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1.5d
                      1.5d