reactive-commons-java icon indicating copy to clipboard operation
reactive-commons-java copied to clipboard

Error Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.amqp.rabbit.core.RabbitAdmin

Open dveleper opened this issue 2 years ago • 0 comments

Hola buenas tardes, estoy implementando reactive-commons con RabbitMQ pero no he podido iniciar una api exponiendo un evento, relaciono a continuación: por.xml :

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> 3.1.1 <relativePath/> <groupId>com.example</groupId> <artifactId>demo</artifactId> 0.0.1-SNAPSHOT demo Demo project for Spring Boot <java.version>17</java.version> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId>

	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<optional>true</optional>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.reactivecommons</groupId>
		<artifactId>async-commons-rabbit-starter</artifactId>
		<version>2.0.0</version>
	</dependency>
	<dependency>
		<groupId>org.reactivecommons</groupId>
		<artifactId>domain-events-api</artifactId>
		<version>2.0.0</version>
	</dependency>
	<dependency>
		<groupId>org.reactivecommons</groupId>
		<artifactId>async-commons-api</artifactId>
		<version>2.0.0</version>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>
	<dependency>
		<groupId>io.projectreactor</groupId>
		<artifactId>reactor-test</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-amqp</artifactId>
		<version>RELEASE</version>
		<scope>compile</scope>
	</dependency>

</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<configuration>
				<excludes>
					<exclude>
						<groupId>org.projectlombok</groupId>
						<artifactId>lombok</artifactId>
					</exclude>
				</excludes>
			</configuration>
		</plugin>
	</plugins>
</build>

implementación: package com.example.demo.event_driven;

import org.reactivecommons.async.api.HandlerRegistry; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import reactor.core.publisher.Mono;

@Configuration @EnableMessageListeners public class PersonListener {

public final String EVENT_PERSON_GET_INFO = "event.subscribe.person.get.info";

@Bean
public HandlerRegistry notificationEvents() {
    return HandlerRegistry.register()
            .serveQuery(EVENT_PERSON_GET_INFO, this::getInfoByPersonId, PersonQuery.class);
}

private Mono<PersonReply> getInfoByPersonId(PersonQuery query) {
    return Mono.just(PersonReply.builder().name("Diego").address("manzana ### casa ###").build());

    } }

Error en log:

Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.amqp.rabbit.core.RabbitAdmin

@dericop ya este tipo de implementación esta deprecada? como podría implementarlo? Mil gracias!

dveleper avatar Jul 19 '23 20:07 dveleper