Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

How to enable TLS on Spring TcpNioClientConnectionFactory + TcpInboundChannelAdapterSpec client connection to a TLS server?

I have an IntegrationFlow bean that uses TcpNioClientConnectionFactory, Tcp.nioClient, and TcpInboundChannelAdapterSpec to create a TCP Client connection to a TLS Server. I need to enable TLS on this ...
fran's user avatar
  • 11
0 votes
0 answers
7 views

Error creating bean with name 'scopedTarget.eurekaApplicationInfoManager'

Trying to run spring cloud gateway in AWS fargate and encountering below issue. JDK 17, Spring boot 3.1.2 Below is the log. 1734432268120,Error starting ApplicationContext. To display the condition ...
spyder's user avatar
  • 109
0 votes
0 answers
22 views

Java abstract service with abstract mappers

To reduce the amount of code, I thought of creating an abstract service like that (it is just a "sketch"): public abstract class CrudService<E extends EntityWithId<ID>,ID,R extends ...
Pavlo Shevchyk's user avatar
0 votes
0 answers
10 views

Accessing secure endpoints from email action buttons

I have a spring boot application that acts as a REST API service. From the application I send emails to users and in those emails I want to include action buttons that call a certain endpoint in the ...
Done's user avatar
  • 1
0 votes
1 answer
11 views

Triggering Hibernate Envers audit

I have an entity @Entity @Audited class ValuesHolder( // other fields @Column(columnDefinition = "NUMERIC(18,6)[]", nullable = false) var values: List<BigDecimal?>, ) ...
loupeznik's user avatar
0 votes
0 answers
41 views

Why does accessing the DB via JPA causes the app to quit?

For a long time, sometimes my app would just shut down for no apparent reason (on Ubuntu linux). I added many debug statements, and I think I just nailed the particular line: The log says: 15-12-2024 ...
Ran's user avatar
  • 662
1 vote
0 answers
17 views

Spring integration AMQP tx-size as invalid property

I am migrating my Spring Web MVC application from: Spring 4.x → Spring 5.3.39 Spring Integration 2.x → Spring Integration 5.5.20 I am using Spring AMQP integration with the following configuration: &...
manoharnr fiserv's user avatar
0 votes
0 answers
51 views

Unable to Disable SpringBoot Banner in 3.4.0

I'm using Spring Boot 3.4.0. I tried to disable banner programmatically and using configuration i.e. application.properties. But in both ways not able to disable it. @SpringBootApplication public ...
harshavardhan athaluri's user avatar
0 votes
0 answers
15 views

How to print X-forwarded-for header value in Spring boot-3.3.5 using logback-spring.xml

we recently migrated our spring boot code from version 2.1.11.RELEASE to 3.3.5, previously when using 2.1.11.RELEASE we were able to print the X-Forwarded-For header value in log using spring-cloud-...
Shivam Som's user avatar
0 votes
0 answers
12 views

error bean serialize in schedul job with redissonClient and SpringBoot

I use org.redisson:redisson(3.39.0) and springboot spring.boot(3.0.0) my redis is cluster and i create a scheduler like this : Config config = new Config(); config.useClusterServers()....
hani's user avatar
  • 51
0 votes
0 answers
19 views

Getting "Abnormal build process termination: " while building the application in intellij

Abnormal build process termination: nice -n 10 /Users/yashwandhare/Library/Java/JavaVirtualMachines/openjdk-22.0.2/Contents/Home/bin/java -Xmx700m -Djava.awt.headless=true "-Djna.boot.library....
Yash Wandhare's user avatar
1 vote
1 answer
15 views

Execute procedures reactively using jooq

Im having trouble running JOOQ routines in a reactive way. My Spring project is set up with R2DBC, and the DSLContext bean uses its connection factory. I have a database procedure that I want to ...
Sebastian's user avatar
0 votes
1 answer
31 views

Spring 5 wait until a late initialized bean is available, depends-on and order have not helped

How to wait until bean "allAppConfigs" is initialized and then initialize bean "pseudoBean1"? For PostConstruct-annotated-Method "populateMap" member "allAppConfigs&...
ReMadWeb's user avatar
0 votes
0 answers
28 views

Lombok annotation doesn't work with Websocket

I am working on a chat application using springboot (WebSocket) in the backend. I followed a youtube video of how to create one , and It's the same code the youtuber showed. However, when I run the ...
Chikara's user avatar
0 votes
1 answer
34 views

Why does Spring Security FilterChain process @Controller and @RestController requests differently

I have a Spring OAuth2-Client with the following filterChain: SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception { return http ....
user28811040's user avatar
0 votes
0 answers
38 views

OpenAPI Description for Spring Boot 3 (jakarta.ws.rs) project

I have created a spring boot project (spring-boot-starter-parent version 3.4.0) using the IntelliJ IDEA wizard with spring-boot-starter-jersey. I have created HelloWorldResource: @Path("/hello-...
nik0x1's user avatar
  • 1,150
0 votes
0 answers
12 views

Spring integration AMQP from 2.x to 5.X

I'm migrating my spring web mvc app spring from 4.x to 5.3.39 and spring integration from 2.x to 5.5.20.. I'm getting the below error from spring integration amqp. 22:55:46 [taskExecutor-1] INFO o.s....
manoharnr fiserv's user avatar
1 vote
0 answers
17 views

no suitable HttpMessageConverter found for response type [org.springframework.cloud.netflix.eureka.http.EurekaApplications]and contenttype [text/html]

Trying to deploy my application to AWS Fargate. Using spring boot version 3.1.2, JDK 17, Spring cloud 2022.0.2, spring-cloud-starter-netflix-eureka-server 4.0.1 version. Eureka runs and UI is working ...
spyder's user avatar
  • 109
1 vote
0 answers
17 views

Is Using a Single Generic Repository for All Entities a Good Practice in Spring Data JPA for Large Project

I’m working on a large Spring Boot application and I’m looking for advice on how to handle repositories for multiple entities. I want to avoid creating individual repositories for each entity and ...
RAHUL BINU's user avatar
0 votes
1 answer
26 views

Caching user data (db entity) in RESTful services

Before asking my question, I would like to note that I have done some research for similar posts and I have not been able to find a clear answer so I decided to write my question in here. I am trying ...
Eric's user avatar
  • 469
0 votes
0 answers
17 views

Cascade delete issue with JPA for related entities in Spring Boot

I am working with the following entity relationships: Color Entity: @Entity public class Color { @OneToMany(fetch = FetchType.EAGER,mappedBy = "color",cascade = CascadeType.ALL, ...
Mahmut Emin Yavuz's user avatar
0 votes
0 answers
15 views

Spring boot 3 Drools 9.44.0.Final kieBuilder failing with Sisu : Error injecting: org.apache.maven.plugin.internal.DefaultMavenPluginManager

I'm integrating drools with spring boot 3 app running on java17, but while running the app kieBuilder.buildAll() is failing with exception Sisu : Error injecting: org.apache.maven.plugin.internal....
Azeem's user avatar
  • 46
-3 votes
0 answers
27 views

Cache Architecture [closed]

Currently i am using local cache and as the application(multiple application using similar cache) is growing we have multiple instance so is the local cache size. To overcome this problem we came up ...
Learner's user avatar
  • 281
0 votes
0 answers
31 views

Why is Spring not detecting my SQL Server database? [duplicate]

This is my application.properties spring.datasource.url=jdbc:sqlserver://DESKTOP9SKTQTI;databaseName=JurasickPark;encrypt=false;trustServerCertificate=true spring.datasource.username=user spring....
Quenuo's user avatar
  • 43
0 votes
0 answers
34 views

How can I ensure data isolation on a Spring 10K user multitenant system with spring? [closed]

I have a system that is expected to scale to around 10K users. It is a relatively basic CRUD data management tool for specialised industry (parts, suppliers, inventory, delays, invoices, that sort of ...
user2741831's user avatar
  • 2,354
0 votes
0 answers
20 views

Can't connect to AWS Glue Schema Registry from Spring Boot

I want to produce a message in avro format from my application to a topic called 'logs'. I have setup my schema registry in the ap-south-1 (Mumbai region). I am passing ap-south-1 as value to the ...
Rishabh Raghwendra's user avatar
0 votes
0 answers
12 views

Schema registry validation , avro models without inline objects

I am using kafka, springboot, avro, schema registry. My avro schema is complex so some objects are in multiple files. { "namespace": "com.example.avro.model", "type": ...
Mike U's user avatar
  • 237
0 votes
0 answers
22 views

SpringData: repository is null [duplicate]

I'm working on a project that requires a login page. I'm trying to save a new user on a crud repository, but whatever I do I get a this.userRepository is null. This happens when I call UserManager....
user28801942's user avatar
-1 votes
1 answer
69 views

Spring-Boot upgrade to version 3.4.0 make gcp secretmanager NOT work

Background Let's start to upgrade Spring-Boot from 3.3.6 to 3.4.0. build.gradle //build.gradle //old plugins { id 'java' id 'org.springframework.boot' version '3.3.6' id 'io.spring....
Raichu's user avatar
  • 1
1 vote
0 answers
40 views

Spring Validation: how can I add a new validaiton rule without impacting other and parent fields?

I have a class PojoB which contains a field code and a field of class PojoA: @Data public class PojoB { @Size(min = 1, max = 5) @NotBlank() @Pattern(regexp = "[0-9]+") ...
ildvzg68472's user avatar
0 votes
0 answers
63 views

How to format date if it can be null spring

I’ve got a form on thymeleaf, that contains many type=date inputs. I need to get those dates on PostMapping. Sometimes it came with null value and compiler gives error “required request parameter ‘...
Sergei's user avatar
  • 1
0 votes
1 answer
36 views

Quartz scheduler performance tuning/overhead

I am new to Quartz Scheduler Framework. We are using quartz 2.3.2 for scheduling jobs. I have around million scheduled jobs, which has different frequencies. But mostly I get 6000-7000 triggers every ...
KaustubhK's user avatar
  • 765
0 votes
0 answers
11 views

AWS Clustered issue - how can I resolve in Spring - redis.connection.PoolException error

I switched to AWS Elasticache Clustered, from AWS Elasticache Serveress, as I kept getting a psubscribe error, and no matter what I did could not remove the error by changing anything in Spring. So I'...
Sachin's user avatar
  • 453
0 votes
0 answers
17 views

AWS Serverless issue - psubscribe error - how can I disable in Spring

I'm using AWS Elasticache Serverless, and in the logs keep seeing the below errors. I thought I had turned pub/sub events off in my app, but keep getting 2 errors and cannot see where I have gone ...
Sachin's user avatar
  • 453
1 vote
0 answers
25 views

How to use Spring Security 6.4.0 Passkeys with RedisHttpSessionRepository?

How can I configure Spring Boot 3.4.0 to store PublicKeyCredentialRequestOptions.java in RedisSessionRepository? I am using Spring Boot 3.4.0, Spring Security 6.4.0, and @EnableRedisHttpSession. I get ...
Justin Cranford's user avatar
0 votes
0 answers
7 views

Spring cloud gateway & Open API : ClientCredentials Flow Doesn't Send client_id and client_secret

im using Spring Cloud Gateway and Open API V3, so i have an issue on my open api UI page, client_id and client_secret are not sent in the request to get access token when using Client Credential Flow ...
AHmedRef's user avatar
  • 2,611
1 vote
1 answer
45 views

JPA query for deleting relations

@Entity data class Election( @Id @UuidGenerator val electionId: String = "", var name: String = "", var description: String = "", var startDate: ...
androidDeweleper's user avatar
0 votes
1 answer
27 views

Spring-Cloud-Stream serde SerializationException prevents messages from being published after it is already consumed and modified

I have my configuration like so: spring: application: name: transaction-enricher-application integration: poller: fixed-delay: 5000 cloud: stream: kafka: binder: ...
Mostafa Hamid's user avatar
0 votes
0 answers
38 views

How can I check if there's a profile associated with an account when I check the JWT with spring-oauth2

I have implemented Spring-OAuth2 to authenticate user requests. But I also want the fronted to create a user profile in the database before I allow them to interact with the API. So basically I want ...
user2741831's user avatar
  • 2,354
0 votes
1 answer
42 views

Spring JPA not saving to Postgres DB

I'm trying to setup a system to pull data from a Neo4J database and push it into a Postgres database. The connection to the Neo4J database is longstanding, and the Postgres connection is new. I'm able ...
Bill L's user avatar
  • 2,816
1 vote
2 answers
46 views

Spring Boot 3.4.0 An error occurred while attempting to decode the Jwt: Unable to obtain X509Certificate from current request

I'm doing migration from Spring Boot 3.2.8 to 3.4.0 and Spring Cloud 2023.0.3 to 2024.0.0. My application uses OAuth2 with Spring Security in quite a normal way: @Slf4j @Configuration @...
Sergey Tsypanov's user avatar
0 votes
0 answers
13 views

I am this getting error: Load balancer does not contain an instance for the service

I'm facing an intermittent "Load balancer does not contain an instance for the service CUSTOMER-SERVICE" error when calling my CustomerService from my ProxyService. The error occurs ...
Nirav Parekh's user avatar
0 votes
2 answers
40 views

Unable to connect to Eureka - Spring Cloud 2024.0.0 - registration failed Cannot execute request on any known server

Spring cloud 2024.0.0 Services are not able to register to Eureka. I have tried pretty much every setting that is in the documentation as well as in various threads. Please check below and let me know ...
Amit Thakur's user avatar
0 votes
0 answers
25 views

RabbitMQ consumer doesn't receive subsequent message if I try sending it too fast after the first one was received

I have this problem where when I immediately send a new message to my consumer in Kotlin after processing the last message, it won't receive and process the second message, but if I wait some time (...
user2426691's user avatar
0 votes
0 answers
15 views

OpenApi 3 spring server generator docs

I'm looking for a complete and extensive documentation regarding the directive, the data type, the structure and everything about how to write a .yaml file to generate a Spring server. Googling around ...
CoderJammer's user avatar
0 votes
1 answer
27 views

Recipe CommentOutSpringPropertyKey throws java.lang.NoSuchMethodError

I'm trying to use a recipe: - org.openrewrite.java.spring.CommentOutSpringPropertyKey: propertyKey: spring.datasource.hikari.auto-commit comment: "Use Oracle JDBC driver connection ...
Tallen67's user avatar
0 votes
1 answer
38 views

Springboot with logback working, with log4j2 working, but not working when using both

I am observing an issue when sending logs to both log4j2 and logback using kafka. Here is the code of my very simple Springboot app: @SpringBootApplication public class QuestionApplication { ...
PatPanda's user avatar
  • 4,802
0 votes
0 answers
27 views

How to solve N+1 problem for entity with multiple collections in OneToMany relationship in Spring JPA

I have the following entity and repository in my Spring JPA application (simplified for the sake of this example): @Entity class User { @Id val id: UUID @OneToOne val info: UserInfo ...
Gustavo Cesário's user avatar
-1 votes
0 answers
18 views

Spring Boot controller tests fails java.lang.IllegalStateException : Could not load TestContextBootstrapper

My spring boot applications controller tests fail on the java.lang.IllegalStateException : Could not load TestContextBootstrapper [class org.springframework.boot.test.context....
yaswanth divvela's user avatar
-1 votes
0 answers
23 views

What are some best practices for managing an org's dependencies with a central Gradle BOM? [closed]

My org has many spring microapps, on many different spring versions. We also have a security requirement of 0 Critical or High severity CVEs in our packages. This has meant an endless treadmill of ...
Reed M's user avatar
  • 145

1
2 3 4 5
4246