Questions tagged [micronaut-rest]
85 questions
0
votes
1 answer
Broker Acknowledgement Rabbit MQ in Micronaut 2.2.1 not woking
I am trying to get the Broker Acknowledgement using RabbitMQ in Micronaut.
Listener
@RabbitListener
public class ProductListener {
@Queue(ProductTopicConstants.GET_PRODUCTS)
public String find(String text) {
return…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Error decoding JSON stream for type [T]: Unexpected token (START_OBJECT), expected END_ARRAY: Attempted to unwrap
Using the Micronaut RabbitMQ with a direct message exchange mechanism, while returning the value from the listener to the producer the JSON parser error appears as described below
08:37:58.637 [main] INFO io.micronaut.runtime.Micronaut - Startup…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Request/Response Pattern with Micronaut AMQP
I am trying to perform Request/Response Pattern with Micronaut AMQP, with below diagram
Producer
@RabbitClient(ProductTopicConstants.FETE_BIRD_EXCHANGE)
@RabbitProperty(name = "replyTo", value = "amq.rabbitmq.reply-to")
public interface…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
Getting the POJO property name in micronaut 2.1.2
Trying to get the POJO property name in Micronaut application. I have the below POJO class
@Introspected
public class Product {
@BsonProperty("_id")
@BsonId
private ObjectId id;
private String name;
private float price;
…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
Multiple query values binding in POJO
I have a simple controller and rest API as below in which I want to map 'name', 'price' and 'description' querie values into ProductSearchCriteria :
@Controller("/api/v1/product")
public class ProductController {
private static final…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Micronaut Kotlin: Rest Controllers not working
I'm creating a simple application with 2 Rest Controllers with Kotlin. However, for every endpoint
the error is
{"message":"Not Found","_links":{"self":{"href":"
My inferences till now, for which I have searched for solutions and they didn't…

rock_win
- 755
- 1
- 5
- 14
0
votes
1 answer
Micronaut - Enable CORS in built in security controllers
Micronaut is used in one of my projects. I am enabling JWT security feature of micronaut with built in login, logout controllers. But when I hit /login endpoint, it gives me below error:
Access to XMLHttpRequest at 'micronaut-login-endpoint' from…

Kruti Parekh
- 1,271
- 9
- 21
0
votes
1 answer
How to register controllers from the dependencies in Micronaut Framework?
I have a micrount microservice which i have pushed in my local artifactory service. It contains come basic endpoints which are required for all the other micronaut microservices. How should I register the dependency's controllers to the parent…

Nipun Garg
- 628
- 2
- 8
- 22
-1
votes
2 answers
Micronaut Random Port fails to start Tests
I maintain quite a big micronaut application with thousands of tests. Recently I've migrated to Azure and start seeing these flaky tests with this error
Test initializationError FAILED
io.micronaut.http.server.exceptions.ServerStartupException:…

RiughaAr
- 21
- 4
-2
votes
1 answer
Methods signature got changed while compiling the gradle java application and referencing to other project
I have two projects known as (Common and ApiGateway).The common is a Gradle java project and ApiGateway is a Micronaut java application. In the common project, I am keeping all the common things and referencing the jar to the Apigateway…

San Jaisy
- 15,327
- 34
- 171
- 290