Joerg Hoh created SLING-12793: --------------------------------- Summary: Improve handling for InvocationTargetException Key: SLING-12793 URL: https://issues.apache.org/jira/browse/SLING-12793 Project: Sling Issue Type: Task Components: HTL Affects Versions: Scripting HTL Runtime 1.2.6-1.4.0 Reporter: Joerg Hoh
{noformat} org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method foo on object com.bar.FooModel@2bef9459 java.lang.reflect.InvocationTargetException: null at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:115) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.apache.sling.scripting.sightly.render.ObjectModel.invokeBeanMethod(ObjectModel.java:448) [org.apache.sling.scripting.sightly.runtime:1.2.6.140] [...] Caused by: java.lang.NullPointerException: null {noformat} We should also create a specialized exception handling for the case of a InvocationTargetException, as this would allow us to to explicitly log not the InvocationTargetException, but the underlying exception directly. -- This message was sent by Atlassian Jira (v8.20.10#820010)