-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
-
Empty show more show less
-
HL & LD 3, HL & LD 4
-
3
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
Acceptance criteria
- is causing
-
MGNLCT-151 DOCS: Document that an M6 CT-app cannot 'reference' an M5-CT app
- Closed
- is depended upon by
-
MGNLCT-73 CT-generated apps can reference V8 style apps
- Closed