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

Adding Form Inputs Dynamically with Javascript and Thymeleaf

I'm wondering what is the most idiomatic/optimal solution is for adding form elements dynamically with Javascript and Thymeleaf. For context, I have a form that is being generated server side like so: ...
fbailey's user avatar
  • 443
0 votes
0 answers
13 views

Log didin't write into filename that specified in log4j2-spring.xml file

Spring boot version 3.3.3, in my linux system I will have two tomcat instance under /opt, one is called /opt/tomcat (which is the dev environment, specified in conf/catalina.properties with spring....
Vincent Zheng's user avatar
0 votes
0 answers
5 views

SPRING NEO4J :: No converter found capable of converting from type [com.my_buzz.core_api_server.dtos.item.ItemDetail] to type [org.neo4j.driver.Value]

Below is my code as per my project :: > I have below configurations :: @Configuration class Neo4jConfig { @Bean fun neo4jConversions(): Neo4jConversions? { val additionalConverters:...
Tanmay Banerjee.'s user avatar
0 votes
0 answers
12 views

How to Perform Field Updates in MongoDB with Spring Boot Repository Using @Query?

I'm using Spring Data MongoDB and trying to create custom update methods in my repository. However, I'm encountering an issue when trying to use @Query and @Update annotations. Here's my repository ...
Saravanan's user avatar
  • 891
0 votes
0 answers
19 views

Cannot connect external database from Kubernetes

We are using Kubernetes from KT company and, as a case in point, we are running MySQL on GCP's Compute Engine. Additionally, we are developing a service using Spring Boot. We verified the DB ...
HomeCoder's user avatar
1 vote
0 answers
24 views

Validating a Spring Boot endpoint with multiple request parts

I have a @RestController with the following endpoint @PutMapping public void updateEvent( @Valid @RequestPart EventRequest request, @RequestPart(required = false) MultipartFile file) { // ...
Dónal's user avatar
  • 187k
0 votes
0 answers
6 views

Database switching is not working in GridFsTemplate in spring-data-mongodb-4.2.5

I was trying to have switch between multiple databases at runtime by GridFsTemplate seems to take the database name only once and using it by default in other threads my spring boot version is 3.2.5 ...
Divakar V's user avatar
0 votes
0 answers
18 views

Java Shell Cmd and 'sudo: no tty present and no askpass program specified' when Permission Policy Applied Without it it works fine

From the Java Spring-Boot Application, I am invoking the following and it works when Java Security POLICY is not set. But when Java Security Policy is set it does not work and gives the error message ...
Bmis13's user avatar
  • 670
0 votes
0 answers
12 views

Execution of the last state in case of camel reset

If we define a route that includes calling several services, such as food ordering service, which includes calling kitchen services, accounting service, and food delivery service. Now, if the kitchen ...
javad alizade's user avatar
0 votes
0 answers
7 views

Windows 10 Intellij 2024.2.1 Spring boot WebFlux Unit test failed normally it's work fine. I have a exit code -1

@ExtendWith(MockitoExtension.class) class XXXXXXXTest { private YYYYRule rule; @Mock private ZZZZService zzzzService; @BeforeEach void setUp() { rule = new YYYYRule(zzzzService); } @Test void ...
Abdullah LAKHDAR's user avatar
0 votes
1 answer
14 views

Spring Batch - Deleting metadata post job completion throws error - Incorrect result size: expected 1, actual 0

I am using spring batch with h2 repository. The application runs every 1 minute (for my testing) and I do not require saving the batch metadata once the job is completed. Hence, I wrote a ...
mnagdev's user avatar
  • 502
-1 votes
0 answers
27 views

ERR unknown command 'GET', with args beginning with: [closed]

Here’s the translation of your request: I am getting the error "ERR unknown command 'GET', with args beginning with" when I try to retrieve something from CacheManager. Could you please help ...
Roman's user avatar
  • 11
-1 votes
0 answers
30 views

java processes and SpringBoot. Javascript and java communication

Im currently working on a java project, which handles the output from my javascript scrappers, and creates statistics. Im using springboot to establish a server, and created a javascript file to ...
-2 votes
0 answers
21 views

401 when sending requests even though SecurityConfig allowed them

I am trying to make an authentication system based on Spring Security. I have everything set up but I will get error 401 every time I send a POST request to register or login. I am using PostgreSQL as ...
tobieche's user avatar
0 votes
0 answers
16 views

CORS Configuration Issue with Spring Boot and Angular

When attempting to make an HTTP request from my Angular application (running on localhost:4200) to my Spring Boot backend (running on localhost:8081), I encounter a CORS policy error. The error ...
Moudou Doumou's user avatar
0 votes
0 answers
22 views

Spring Boot Config Server/Client - URL must start with 'jdbc'

I somehow can't tell my client to read the configs correctly. To make it short, my Spring Config Server (SCC) works correctly and with http / curl I can access the configurations correctly. For my dev ...
AbdoCherry's user avatar
0 votes
0 answers
17 views

Using a Constructor in HQL gives MappingException: Couldn't find PersistentEntity for type class [duplicate]

According to chapter Using a Constructor in HQL in https://www.baeldung.com/hibernate-query-to-custom-class I should be able to use my DTO constructor in @Query select statement. However when I try to ...
u4963840's user avatar
  • 159
0 votes
0 answers
12 views

How to get remote current directory using Apache sshd SftpClient API?

I can see JSCH has feature to get current directory using ChannelSftp.pwd(); How it can be achieved using Apache Mina sshd library ? I want to find the landing directory on successful SFTP connection ?...
Sarvesh H's user avatar
0 votes
0 answers
8 views

Cannot authenticate SAML because response not have signature block in it

I am using spring-security-saml2-service-provider to implement SAML2 Service Provider. After successful login at IDP page, the browser redirect back to the response page and it show Did not decrypt ...
hieund's user avatar
  • 368
0 votes
0 answers
13 views

how to resolve WebSocket connection issue error code 1006 On GCP?

I am facing web socket disconnection problem with 1006 on production environment. I unable to find the exact problem. We tested without firewall restriction on GCP , that also not working as expected. ...
Ajith Deivam's user avatar
0 votes
0 answers
13 views

okhttp3.mockwebserver 4.12.0, missing readreadUtf8

Please Im having an issue can't figure what Im missing: RecordedRequest request = server.takeRequest(); request.getBody().readUtf8() Intellij, spring boot unit test is telling me can't resolve method ...
user27366185's user avatar
0 votes
0 answers
13 views

Unable to obtain access token with SpringBoot OAuth2RestTemplate using jwt token client assertion

I'm trying to modify some code to use a jwt cleint assertion instead of a client secret to obtain an access token and id token. The following code works fine when using a client secret, but gets an ...
Jack BeNimble's user avatar
-1 votes
1 answer
24 views

Not able to pass --add-opens jvm arguments in docker image

Hi I have a docker image which runs a spring boot service to which I need to pass --add-opens argument. Below is content of my docker file FROM amazoncorretto:21.0.4 ENV JAVA_TOOL_OPTIONS="-...
Dattatreya Kugve's user avatar
0 votes
1 answer
18 views

OpenAPI Generator Maven Plugin: How to generate Tags and Servers from OpenAPI YAML into SpringDocConfiguration?

Given the following OpenAPI YAML extract ... openapi: 3.0.3 info: title: Customer API description: | Through this API, the platform can communicate with the application which manages customer ...
Erwin Dupont's user avatar
0 votes
0 answers
17 views

Test data Management with Cypress, Spring Boot and docker database [closed]

We use Cypress a lot to test our Spring Boot application. We have some backend test as well, but that's not relevant for this post. I like Cypress, because it tests the whole thing and is kind of ...
Janning Vygen's user avatar
0 votes
0 answers
13 views

ClassCastException when using Spring Data for Apache Solr in Spring Boot 3.3.x

My Spring Boot application that uses Spring Data for Apache Solr 4.3.15 runs fine using Spring Boot 3.2 (3.2.9), but produces a ClastCastException using Spring Boot 3.3 (3.3.3): java.lang....
thomas.schuerger's user avatar
0 votes
0 answers
12 views

How to update metadata of a running instance in Consul?

I have a Spring Boot application that implements leader election using Consul. I need to track information about running instances of the application registered with Consul and then use it to ...
Karina's user avatar
  • 1
0 votes
3 answers
47 views

Multiple .env for local and testing environments

I'm pretty new to the Spring Boot spring-dotenv plugin. I am using the .env for local testing, but I want to use a custom .env file .env.testing on my testing environment that has different ...
Alex's user avatar
  • 1,658
1 vote
1 answer
23 views

SpringBoot3 @KafkaListener does not have traceId

Using Spring Boot 2 everything works properly, because sleuth does it. But in SB3 sleuth is absent, and micrometer-tracing is used. <dependency> <groupId>io.micrometer</groupId&...
Darkin Rall's user avatar
0 votes
0 answers
19 views

How to configure separately running Authetication service with login page while still keeping Keycloak in control of the authorization flow?

I want to implement the OAuth 2.0 authorization code flow for confidential clients. Below is the list of parties involved : User : End user person. Client : Third Party Application acting as ...
Dinesh Solanki's user avatar
0 votes
0 answers
20 views

Create spring database connection on demand

I have an application that uses a PostgreSQL database and performs actions on it infrequently, approximately 1 to 5 times per day. By default, Spring creates a DataSource and maintains a connection ...
Artyom Danilin's user avatar
0 votes
0 answers
15 views

Getting 404 not found on preflight (OPTIONS) request on Kubernetes

I have a react frontend and springboot backend both running as a deployment on kubernetes cluster. Both have their own k8s service (clusterIP) and Ingress configured. When I try to connect from ...
R Siddharth's user avatar
0 votes
0 answers
9 views

Multiple Port authentication support for NextJS and JSP Spring Boot

We are currently working on a web application using NextJS, which represents the latest version of our system. Our previous system relies on JSP and Spring Boot. Our strategy is to gradually shift ...
Tamzid Ahmed's user avatar
-1 votes
0 answers
28 views

ServletOutputStream failed to flush:

I try to convert m3u8 file to WebM using ffmpeg and stream it onto browser. I want it to play on browser without using any javascript. Stream video method: public void streamVideo(OutputStream os ){ ...
Dawid's user avatar
  • 1
-1 votes
0 answers
9 views

Run pre-commit in gradle project in windows

I am a beginner in coding and want to run pre-commit in a java gradle project in windows. How do I do that? How to install pre commit in windows system? I have added .pre-commit-config.yaml file in my ...
Himanshu Jha's user avatar
0 votes
0 answers
19 views

"CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

I am writing a small app to scan some documents, but i'm at the very beginning and i'm trying to test my backend by simply sending a small request from my frontend to check if they are properly ...
mirel01's user avatar
  • 11
-1 votes
0 answers
20 views

Build separate artifacts for child modules in multi-module Maven project [closed]

I was wondering what the best practices are on creating separate artifacts for child modules in a multi-module Maven Spring Boot project. So let's say you have one project (operators), one root pom....
Thomas Verhoeven's user avatar
-2 votes
0 answers
23 views

Spring boot security returning Granted Authorities as empty

I'm using spring boot 3 and spring security 6 and when I try to authorize roles I'm getting 401 unauthorized even though I'm sure it has the right authority the roles in the database are like ...
Omar Malas's user avatar
-2 votes
0 answers
14 views

Automate writing product-test file(.feature) using OpenAPI YAML file [closed]

I want to automate the process of writing .feature files for API endpoint testing in product test by directly using OpenAPI YAML file which already has details of all endpoints. Does anyone know some ...
yashwant singh kaurav's user avatar
-1 votes
0 answers
9 views

Joda DateTime serialization fails

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Joda date/time type org.joda.time.DateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-...
dinuka udan's user avatar
-1 votes
1 answer
23 views

Springboot endpoint with generic request body

I am trying to create a service providing an endpoint which behaves like a proxy. I may receive any headers, and any type of body. I need to perform some ops and then pass the same headers (of course ...
LearnerOP's user avatar
  • 364
-1 votes
0 answers
15 views

Is realtime eventing supported by JDBC IO connectors?

I have created a dataflow pipeline in Apache Beam Java SDK whose function is to consume events from Google pub/sub and save them to Sybase DB via JDBCIO connectors. However, some of the events are ...
user2800089's user avatar
  • 2,317
0 votes
0 answers
19 views

Configure Hibernate to dynamic partitioning of mysql table

Let's consider this table: CREATE TABLE `my_table` ( `id` varchar(255) NOT NULL, `year` int DEFAULT 2000 ) I would love to get my_table (and two other tables) partitioned based on the value of ...
user2674471's user avatar
-1 votes
1 answer
42 views

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalTime` from String "7:45PM"

I upgraded my java project to jdk17, spring 6.1 and springboot 3.3 I am getting Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time....
Arjun's user avatar
  • 11
0 votes
0 answers
18 views

Spring JPA: Entity with embedded key is not deleted

I'm learning Spring Boot as I go and everything was fine so far using Spring JPA to manage database until I tried deleting an entity that has an embedded key. The relevant entity is as follows: @...
javydreamercsw's user avatar
0 votes
0 answers
10 views

how to use micrometer as a replacement of sleuth decorate queues with sprint boot 3.2.6

I was using mvn dependency in spring boot 2.* application <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-...
KJ21's user avatar
  • 83
-1 votes
1 answer
28 views

Unable to set up swagger with spring boot 3

I am trying to setup swagger with spring boot. Here is my java version: > java --version openjdk 23 2024-09-17 OpenJDK Runtime Environment (build 23+37-2369) OpenJDK 64-Bit Server VM (build 23+37-...
MsA's user avatar
  • 2,917
0 votes
1 answer
12 views

Spring batch job restart after server crash fails as job registry does not contain job after upgrade to spring batch core jar to 5.12

Spring batch partition job which would have been in STARTED status due to server crash. Now if we change the status of both job execution and stop from STARTED to FAILED and call jobOperator.restart(...
Shreyas Holla P's user avatar
0 votes
1 answer
47 views

Asynchronous publish ignoring errors and timeouts

I have a Spring Boot application which sends via RabbitMq stats of response for each query of the Controller. It works when the RabbitMq server is reachable and accepts the message. However, this ...
Stéphane Janel's user avatar
-1 votes
1 answer
50 views

Springboot method timer

I have a usecase to track execution time of a method in springboot. If execution time exceeds the specific time then I need to throw an exception. I am looking for options to handle that in java and ...
Monish Das's user avatar

1
2 3 4 5
3002