You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Thiago Henrique De Paula Figueiredo (Jira)" <ji...@apache.org> on 2025/10/04 17:54:00 UTC
[jira] [Created] (TAP5-2813) NPE when @Cached applied to method returning a generic type in multiple classloader mode
Thiago Henrique De Paula Figueiredo created TAP5-2813:
---------------------------------------------------------
Summary: NPE when @Cached applied to method returning a generic type in multiple classloader mode
Key: TAP5-2813
URL: https://issues.apache.org/jira/browse/TAP5-2813
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.9.0
Reporter: Thiago Henrique De Paula Figueiredo
With production mode on, methods annotated with @Cached and returning a generic type, for example {{@Cached public SomeType<T> getData()}} , would throw this error:
{noformat}
Caused by: org.apache.tapestry5.beanmodel.internal.services.PropertyExpressionException: Exception generating conduit for expression 'zoneId': java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "formal" is null at org.apache.tapestry5.beanmodel.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1531) at org.apache.tapestry5.beanmodel.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1441) at $PropertyConduitSource_b6f1dc0fd89.create(Unknown Source) at org.apache.tapestry5.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:56) at $BindingFactory_b6f1dc10776.newBinding(Unknown Source) at $BindingFactory_b6f1dc1076e.newBinding(Unknown Source) at org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:82) ... 107 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "formal" is null at org.apache.tapestry5.beanmodel.internal.services.PropertyAccessImpl.buildAdapter(PropertyAccessImpl.java:117)
(...){noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)