Skip to content

SpringBoot3.3.4 webflux and mongodb reactive hibernate lombok: ERROR Exception "org.springframework.data.mapping.Parameter@... does not have a name" in jdk.internal.reflect in method public Object invoke(Object obj, Object[] args) throws InvocationTargetException { #34482

@skyblackhawk

Description

@skyblackhawk

Hi to all,
I'm having this exception calling @query in mongoDB reactive in webflux springboot 3.3.4.
` return productRepository
.findBySearchKey(code, channel, touchpoint)
.doOnNext(AEMProductData -> log.debug("{} product on Products in MongoDB: {}", logHash, AEMProductData.toString()))
.map(aemProductEntity -> {
DozerBeanMapper mapper = new DozerBeanMapper();
BaseProductsResponse response = mapper.map(aemProductEntity, AEMProductResponse.class);

						return response;
			})
			.switchIfEmpty(aemProductRepository
							.findBySearchKey(code, channel, touchpoint)
							.doOnNext(aemProductEntity -> log.debug("{} product on AEMProducts on MongoDB: {}", logHash, aemProductEntity.toString()))
							.map(aemProductEntity -> {
								DozerBeanMapper mapper = new DozerBeanMapper();
								BaseProductsResponse response = mapper.map(aemProductEntity, AEMProductResponse.class);
								
								return response;
							})
			);`

In the switchEmpty generate exception in jdk.internal.reflect in method public Object invoke(Object obj, Object[] args) throws InvocationTargetException { we are using JDK21.0.6:

.switchIfEmpty(aemProductRepository
								.findBySearchKey(code, channel, touchpoint)
								.doOnNext(aemProductEntity -> log.debug("{} product on AEMProducts on MongoDB: {}", logHash, aemProductEntity.toString()))
								.map(aemProductEntity -> {
									DozerBeanMapper mapper = new DozerBeanMapper();
									BaseProductsResponse response = mapper.map(aemProductEntity, AEMProductResponse.class);

Somebody can tell us what happening?
We are using lombok hibernate and Mongo Reactive Repository and Springboot 3.3.4 with Webflux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions