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

Configure HandlerMethodReturnValueHandler not working

I want to implement HandlerMethodReturnValueHandler in my spring-boot project. However I cannot get my configuration to work. This is my implementation import org.springframework.core.MethodParameter ...
andreyluccahannes's user avatar
-1 votes
0 answers
16 views

Privilege escalation issue in Spring MVC project

I am dealing with an issue in spring MVC application in my application menus are visible to user based on role based menu access logic in db. even though user is able to see only the menus mapped as ...
Coder_2000's user avatar
0 votes
0 answers
20 views

Resolving Multipart Request using Spring Framework

I have a Spring-MVC application. In a controller, I have been mapping the forms details to a POJO using @ModelAttribute. Now, I require that the form sends a file as well. I have made the required ...
Ali Asger Habib's user avatar
-1 votes
0 answers
8 views

Spring MVC application Error (Hibernate Validator): 'localValidatorFactoryBean' exception is java.lang.NoClassDefFoundError: [closed]

I'm getting the following exception: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.MethodValidationPostProcessor]: Factory ...
davidza5's user avatar
0 votes
0 answers
16 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
-1 votes
0 answers
18 views

Controller use WebAsyncTask for return, but webAsyncTask.onError() in method do not work

@GetMapping("/test") public WebAsyncTask<UserEntity> userMerge(Integer userId) { ...... webAsyncTask.onError(() -> { System.out.println("test"); }); } ...
叶贤慈's user avatar
0 votes
0 answers
129 views

MockMVC standaloneSetup builder is giving error in spring webmvc version 6.1.13

I Am trying the below code which used to work earlier but due to a high 'PATH TRANVERSAL' vulnerability in older versions of spring webmvc, i had to upgrade to latest version of spring webmvc ...
Meenal's user avatar
  • 1
0 votes
0 answers
49 views

*.jsp endpoint on a controller

I have a application which have a endpoint which is called by other applications (APP/index.jsp), and because of this I cannot change this url. I'm planing on changing this jsp to a controller, but ...
Felipe Issa's user avatar
-1 votes
0 answers
23 views

Send List of Objects to a view and receive it back to another controller

I have a list which contains an Object class. Now, I'm sending this list of objects to the view using model and receiving it in the view just fine. Now, what I want to do is to send this exact list ...
Hamza Mustafa Khan's user avatar
0 votes
1 answer
35 views

ActionServlet.process() equivalent in Spring

Working to upgrade my application from Struts 1.2.9 to Spring MVC. The application currently has a class extending ActionServlet.java and overrides its process() method to capture and log the time ...
Anirudh Giran's user avatar
0 votes
0 answers
25 views

How to get Http Client Interface to return ResponseEntity even when there is a client 40X or 50X error

Given a simple method such as @GetExchange("/foo") Mono<ResponseEntity<List<Foo>>> getFoos(); in FooInterface, with a 'standard' WebClient backing it. The factory is ...
Alan Moffet's user avatar
0 votes
0 answers
40 views

Spring version crashes, plain Java version does not: "RESOURCE_EXHAUSTED: gRPC message exceeds maximum size" (immudb4j)

Context I have two versions of the same program. One is wrapped in a Spring Web application (Spring Boot version 3.3.3) and one is a plain Java application. This program makes use of a library called ...
Equiphract's user avatar
-1 votes
0 answers
30 views

jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.api.SOAPVersion

We are working on spring parent-2.7.18 to 3.1.10 version migration and we are using Java 17. we are getting below error after the migration of Spring-parent 2.x.x to 3.x.x version. jakarta.servlet....
Rajendra Desale's user avatar
0 votes
0 answers
24 views

How to make Spring to use HTTPS for redirects

I'm having a service that is behind a gateway. For the sub service all request are http. For redirects that are in the location header attribute the scheme of the url has to be https (otherwise the ...
sge's user avatar
  • 653
0 votes
1 answer
35 views

Appengine runtime from java 8 to 11 - Issues in Local & Deployment Run

When I run the code in my local with the command ("clean install package exec:java -Dexec.args="target/appName-1.war") then I am getting below error message>> Fil Not Found: War ...
lourdu rajan's user avatar
-1 votes
1 answer
37 views

I have POST and GET methods, but when I hide the get method why does an error occurs?(The post method should run until the page get dispatched to GET)

I am new to spring boot. I have get and post methods in my controller class. But when I hide the get method I think the post method should run without an error until i hit submit. I have thyme leaf ...
Aman Asutosh Kar's user avatar
1 vote
1 answer
25 views

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback with no error in console

Title: Spring Boot Application Issue: [Briefly Describe the Problem] Description: I’m working on a Spring Boot application with a JPA repository and am encountering an issue. My application starts ...
Raji S's user avatar
  • 13
0 votes
0 answers
17 views

Spring MVC UrlBasedViewResolve: How can I use annotations to route /codereaper/home to MainController.home?

I have an Spring MVC 6 app deployed in Tomcat 10.1. the context root of the app is /codereaper as that is the name of the war file. The app starts successfully with no errors. I am using a ...
charles didonato's user avatar
-1 votes
1 answer
61 views

Custom StringDeserializer in a Spring Web MVC Project

I'm working on a Spring MVC project and I need to globally override the default StringDeserializer provided by Jackson to sanitize incoming JSON strings. My goal is to apply this sanitization to all ...
kev's user avatar
  • 93
0 votes
0 answers
35 views

Spring boot web app with jsp error no mapping for GET

I am dealing with a problem Here is my EmployeeController: EmployeeController package com.examenjsp.jsp.controllers; import java.sql.ResultSet; import java.sql.SQLException; import org....
Balta Cristian's user avatar
-1 votes
1 answer
45 views

SecurityFilterChain filter 2 times and lose authentication

Before async everything worked fine. So the problem is securityFilterChain filters 2 times and I think it should filter just once because filtering 2 times it doesn't make sense and even if it's ...
Claudiu Claudiu's user avatar
-1 votes
1 answer
38 views

Webapp with spring MVC with jsp as front end. Index.jsp as my landing page inside WEB-INF/jsp/index.jsp.My Controller isn't being invoked

Okay,I am using spring MVC,jsp,Java Based Configuration. where index.jsp is my landing page which is inside WEB-INF/jsp/index.jsp. I am aware that jsp files inside WEB-INF cannot be accessed directly ...
Nishan Kumar Shrestha's user avatar
0 votes
1 answer
32 views

Spring boot Jackson deserialization error. Invoking un-needed foreign fields

I'm trying to make a post method that accepts a 'food' item and saves it. The food entity has two foreign fields called "restaurant" and "menu". When I send the request, for some ...
Thuta's user avatar
  • 3
0 votes
1 answer
40 views

Spring Boot 3 OAuth2 Security Migration from 2.7 mapping /oauth to /oauth2

Currently I'm migrating Spring Boot 2.7 to Spring Boot 3.3 and I have done almost all except OAuth security what seems to be very different in 3.3 then in 2.7. Since we have a lot of different clients ...
Andreas Hefti's user avatar
-1 votes
0 answers
36 views

I am unable to get a JSP to resolve using a a Spring org.springframework.web.servlet.view.UrlBasedViewResolver

This is a Spring MVC 6.0 web app. When I try to load the home page it loads the 404 Error page. Here is the web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns=&...
charles didonato's user avatar
0 votes
0 answers
19 views

Using spring boot app as artifact does not load properties neither dependencies

I need to create a spring boot app then generate Jar file so it will be used as an artifact. This artifact is suposed to be an embedded spring mvc app where i have controllers and views. Those views ...
Mohamed Nabli's user avatar
0 votes
1 answer
24 views

UnsupportedOperationException in LogbookHttpRequestInterceptor with Spring Boot 3.2.2 and Apache Http Client 5 (how to fix test?)

I Upgraded Spring Boot (was 3.1.9, became 3.2.2) At the same time, the spring-web version increased (it was 6.0.17, became 6.1.3) After that, the test works with errors test This test calls method &...
user27265443's user avatar
0 votes
1 answer
60 views

@Validated and @Valid in Spring Controllers work different with return type

I have a Spring Boot 3 project with Validation dependency added. There is POJO - Human: @Data public class Human { @NotBlank private String name; @NotBlank private String email; } ...
Kaspar Hauser's user avatar
0 votes
0 answers
67 views

Error creating bean 'routerFunctionMapping'defined in class path:org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class

I have upgraded my java springboot application versions from java 1.8 to java21 springboot 2.1.16 to springboot 3.2.5 spring framework 6.1.6 in controller test cases i am getting issue: Error ...
Shagun's user avatar
  • 9
-2 votes
1 answer
29 views

Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/template/fragment.html] [closed]

I have not created the fragment.html file but when I build and run it on the web, the error Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/template/fragment....
Trần Việt Hoàng's user avatar
0 votes
1 answer
16 views

Render Spring Form Select tag from properties file

I am replacing Struts with Spring MVC in my application. Previously, the application uses .properties files to store the label information and is rendered in the JSP pages using Strut tags according ...
Anirudh Giran's user avatar
0 votes
0 answers
21 views

Get response headers from Spring Boot GraphQlClient (HttpSyncGraphQlClient) request

I have a Java 21 Spring Boot 3.3.2 application that uses MVC. I use spring-boot-starter-graphql and they recently released an HttpSyncGraphQlClient (blocking) to send GraphQL requests. When I send the ...
Ebad's user avatar
  • 293
-1 votes
0 answers
17 views

Why does Spring converter fails to identify generic type when using more than one (i.e. Param<A, B>) as an endpoint parameter?

I have a @RestController class with an endpoint like so @RestController @RequestMapping("/api/dog/filters") public class DogFilterController { ... @GetMapping(value = "/breeds",...
sharp_fortune's user avatar
0 votes
0 answers
54 views

Getting java.sql.SQLException from DB but it is not execution catch block created for it However it is executing the catch created for Exception

I am trying to insert a record in DB and in one scenario it is throwing java.sql.SQLException(### Error updating database. Cause: java.sql.SQLException: ORA-12899: value too large for column "...
Vishal Gandotra's user avatar
0 votes
1 answer
19 views

What is the difference between getAsyncExecutor and threadPoolTaskScheduler in Spring MVC ASyncConfigurer?

Could someone please tell me the difference between getAsyncExecutor and threadPoolTaskScheduler, as explained in the spring async-instrumentation document? I created the config below, as mentioned in ...
tuk's user avatar
  • 6,677
0 votes
0 answers
26 views

Proper use of @SpringBootTest

I have an application where there are a lot of beans, but there is nowhere without tests, and so I would like to ask how to use the @SpringBootTest annotation correctly? I'm asking this because I'm ...
heh's user avatar
  • 13
0 votes
1 answer
54 views

parameters of @Bean annotated method

In the following code, a MvcRequestMatcher.Builder bean is registered with application context. @Bean MvcRequestMatcher.Builder mvc(HandlerMappingIntrospector introspector) { ...
techie11's user avatar
  • 1,357
-2 votes
0 answers
42 views

Swagger Failed to load remote configuration

I have the following issue: I can't open Swagger OpenAPI for a Spring Boot application on a cloud DEV server, but it works fine on localhost. @Configuration @EnableWebSecurity public class ...
Adam's user avatar
  • 19
0 votes
0 answers
21 views

My Eureka client registry is opening but as /actuator/info

I just set the Eureka Service Registry and client to my Spring app, my Eureka server is showing my app perfectly at localhost:8761 as one of the service but when I click on the Status ->UP-> URL ...
Abrar's user avatar
  • 3
-1 votes
0 answers
14 views

Error creating bean with name 'defaultValidator' and with nested exception javax.validation.ValidationException: Unable to instantiate Configuration [duplicate]

I am trying to upgrade a java application from java 8 to java 11 with gradle 6.4 version. The build is compiling successfully but while launching the application I am getting the below error. I would ...
Sai Krishna's user avatar
-2 votes
1 answer
43 views

Spring Webfilter class does not work in Spring WebFlux application after upgrading from Spring Boot 2.7.x to 3.2.x

We have a filter in our Spring WebFlux application, as shown below public class MyFilter implements WebFilter { @Override public Mono<Void> filter(ServerWebExchange serverWebExchange, ...
noble's user avatar
  • 41
0 votes
1 answer
39 views

Using async CompletableFuture<Dto> always returns 403

I'm using a controller where I have to upload large files, the problem is when return CompletableFuture<ResponseEntity<ExecutionDto>> it always returns error 403, but when I change the ...
Maro's user avatar
  • 1
1 vote
0 answers
87 views

How to solve error 415 UNSUPPORTED_MEDIA_TYPE in Spring?

In my Spring web application I have a method which expects an excel file. It is sent to my RESful API as a parameter of the request. The media type is set to MediaType.MULTIPART_FORM_DATA_VALUE. @...
Vasil Velinov's user avatar
-2 votes
0 answers
53 views

form binds correctly to the model, but the embedded Address object is null

I'm working on a Spring MVC application where I have a form that should bind data to a model class containing an embedded object. However, the embedded object (Address) is coming through as null in ...
Tushar Kumar's user avatar
-1 votes
0 answers
28 views

Request Body is giving null value for paymentMethod node after wildfly upgrade to 26 , even sending from postman

I am sending this request from postman which is having the node paymentMethod { "userPaymentsRequest": { "clientSessionKey": "df5e7985-b18a-45f8-a269-22065f380adf", "...
Kalyani Gavhane's user avatar
0 votes
0 answers
26 views

spring mvc thymeleaf, populate more than one value with select option

Abstracted template code is <form action="#" th:action="@{/formPost}" th:object="${modelAttribute}" method="post"> <select th:onchange="this....
Gunnar's user avatar
  • 413
1 vote
0 answers
58 views

OpenAPI generator java convert between MultiPartFile and Resource

I am using the OpenAPI generators to create my server and client definitions. I have the following definition for the server task: summary: Upload document API call operationId: upload ...
akourt's user avatar
  • 5,486
0 votes
1 answer
30 views

Spring Cloud Function: Custom Message Converter - Cannot Invoke `convertToInternal`

In my spring cloud function application I've created a custom message converter. I am converting from JSON to HapiFhir Bundle.class and then from the Bundle.class back to JSON. The convertFromInternal ...
Addison Joseph's user avatar
0 votes
0 answers
23 views

Invalid property 'authorizationRedirectStrategy' of bean class org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter

in webapp applicantion non spring-boot and with spring securtity 5, I did minimale config of oauth2 openid connect : <sec:http create-session="stateless" auto-config="true" use-...
cs_zineb's user avatar
-2 votes
0 answers
82 views

JWT Authentication - Pre-authenticated entry point called. Rejecting access(On the endpoint which I have mentioned that it not require authentication)

. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / /...
Lareb Khan's user avatar

1
2 3 4 5
1174