150,410 questions
0
votes
1
answer
42
views
Cannot enable TRACE/FINEST logging for Oracle Universal Connection Pool (UCP) in Spring Boot 3
I have spent couple of days trying to turn on Oracle UCP logs in my Spring boot app but haven't succeeded.
Here is code that i used to get some details (root and oracle loggers level, handlers):
@...
Advice
0
votes
1
replies
63
views
Free resources to learn Java Full Stack Development (beginner to advanced)
I’m looking for good free resources to learn Java Full Stack Development (beginner to advanced). It would be helpful if the resources cover:
Core Java
Spring / Spring Boot
REST APIs
Database (...
1
vote
0
answers
25
views
Elasticsearch Java API Client returns aggregation key as String instead of numeric
I am using the Elasticsearch Java API Client to execute a search query with aggregations.
In Elasticsearch, my field mapping is:
"departmentId": {
"type": "integer"
}
...
0
votes
0
answers
25
views
Missed rollover during application down
I have the following appender setup in my application that performs hourly rollover and compresses log files:
<appender name="log-file" class="ch.qos.logback.core.rolling....
1
vote
0
answers
88
views
Could not write JSON: Null return value from advice does not match primitive return type for:
I have 3 relevant classes
@Entity
@Table
@IdClass(SzczegolyZamowieniaId.class)
public class SzczegolyZamowienia {
int ilosc;
@Id
@ManyToOne
Zamowienie zamowienie;
@Id
@...
1
vote
1
answer
92
views
Spring Boot Controllers not called
We are upgrading to Spring Boot 3.5.5 so some code is historically grown.
We have a central portal application where users can login. It provides different login mechanisms depending on the specific ...
0
votes
1
answer
64
views
Not getting any output from Spring AI MCP server
I am building a skeleton MCP server using Spring AI with the STDIO transport:
pom.xml
<properties>
<java.version>21</java.version>
<spring-ai-starter.version&...
1
vote
1
answer
69
views
Feign multipart file upload intermittently fails with RetryableException: Incomplete output stream
I’m facing an issue while uploading a file between two Spring Boot microservices using OpenFeign.
task-service generates an Excel file
It sends the file to system-service using Feign (multipart/form-...
0
votes
1
answer
72
views
Spring Boot Rest/JPA: Create only 1 parent, when cascade the child creation to parent creation
I need to create a Restfull API with Spring Boot 3.x./ Spring_Data_JPA (Hibernate)
I have this scenario.
I need to create child entities and cascade the persist/merge to the parent entity.
This means:
...
Best practices
1
vote
0
replies
64
views
Configuring Spring Boot 3 (Spring MVC & Spring Security 7) for CORS public access (with credentials)
There are lots of good examples for how to configure Spring Boot for CORS online, but it seems to be very hard to find anything with an intersection of:
Using the APIs in Spring Boot 3 rather than ...
0
votes
0
answers
23
views
Environment variable in Azure App Service fails to disable Quartz in Spring Boot app
I have a Spring Boot app that when I run locally, I can set the SPRING_QUARTZ_AUTO_STARTUP=false variable and it prevents the scheduler from starting.
Doing the same in Azure App Service, and it is ...
0
votes
1
answer
108
views
Connection pool issue in hibernate 6 spring boot 3 [closed]
I recently migrated my application from Spring Boot 2 with Hibernate 5 to Spring Boot 3 with Hibernate 6 in a testing environment. Since the migration, I encounter issues during high load (overload ...
0
votes
1
answer
80
views
Why do @Async background threads silently fail in Spring Boot on AWS Lambda, while Node.js fire-and-forget works fine?
We have a Spring Boot application deployed on AWS Lambda that makes outbound calls to OCPI partner APIs (EMSP roaming partners). We use @Async for these outbound calls to avoid blocking the main ...
-2
votes
0
answers
69
views
Writing JPA Repository Unit tests [closed]
My learning Spring Boot project consists of the files below. My goal is to write Unit tests that test the UserRepository queries. I've tried different annotations, but never got the test to run. ...
0
votes
0
answers
35
views
New Relic Java recordMetric not showing custom metric data
I'm working with the New Relic Java agent and trying to record a simple custom metric using recordMetric.
My use case is very straightforward: I want to track something like "transactions per ...