You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (Jira)" <ji...@apache.org> on 2025/06/25 06:23:00 UTC
[jira] [Resolved] (DELTASPIKE-1477) Repository has null passivationId
[ https://issues.apache.org/jira/browse/DELTASPIKE-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved DELTASPIKE-1477.
---------------------------------------
Fix Version/s: 2.0.1
Assignee: Mark Struberg
Resolution: Fixed
> Repository has null passivationId
> ---------------------------------
>
> Key: DELTASPIKE-1477
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1477
> Project: DeltaSpike
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: PartialBean
> Affects Versions: 2.0.0
> Reporter: Vladimir Dvorak
> Assignee: Mark Struberg
> Priority: Major
> Fix For: 2.0.1
>
>
> The method `PartialBeanBindingExtension.createPartialBean()` does not set the `id` in `beanConfigurator`, resulting in broken session serialization in version 2.0.
>
> In version 1.9, the `passivationId` was set in `PartialBeanBindingExtension.createPartialBean()` using `BeanBuilder.readFromType()`, which assigned the `passivationId` as follows:
>
> {quote}
> this.id = ImmutableBeanWrapper.class.getName() + ":" + Annotateds.createTypeId(type);
> {quote}
>
> To achieve similar functionality in version 2.0 the id() should be set in similar way:
>
> {quote}BeanConfiguratorUtils.read(beanManager, beanConfigurator, annotatedType)
> .beanClass(beanClass);
> beanConfigurator.id(Annotateds.createTypeId(annotatedType));
> new DeltaSpikeProxyBeanConfigurator(beanClass,
> descriptor.getHandler(),
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)