No flow definition found. Spring web flow

I am new to Spring webflow and now I am trying the example in Spring recipes book and I know this is a basic question. I am getting the error as follows, ...

Spring JdbcTemplate / NamedParameterJdbcTemplate passing null value as a parameter value

I have an issue passing a null value to NamedParameterJdbcTemplate using MapSqlParameterSource of the spring framework. Anyone knows how to do this? Currently my code is : String sql = "update...

Spring MVC application filtering HTML in URL - Is this a security issue?

My existing Spring Web MVC application has the following handler mapping in the Controller. @RequestMapping(method = RequestMethod.GET, value = "/welcome") I trigger the following...

org.springframework.web.servlet.DispatcherServlet noHandlerFound (No mapping found)

my jsps are under WEB-INF/jsp/ , and following is my web.xml: <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"...

Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]

I have the following code: package com.transcend.txn; public class JpaTxnMain { public static void main(String[] args) { JpaAccountDao.addAccount(); } } package...

Can @Inject be made optional in JSR 330 (like @Autowire(required=false)?

Spring's @Autowire can be configured such that Spring will not throw an error if no matching autowire candidates are found: @Autowire(required=false) Is there an equivalent JSR-330 annotation? ...

Using Spring's ResourceLoader in tests

I'm @Autowireing a org.springframework.core.io.ResourceLoader into one of my @Service classes. During the tests, I'd like to get access to an instance of a ResourceLoader, so that it can be...

What is the order of precedence when there are multiple Spring's environment profiles as set by spring.profiles.active

I am just wondering what the order of precedence is when multiple Spring active profiles have been specified. Say I want the default profile to be active but the dev profile to override it when...

TransactionRequiredException Executing an update/delete query

Hi I am using hibernate JPA with spring and mongodb and i am running my application on Glassfish-4.0. My service class is : @Component public class Test { @PersistenceContext EntityManager...

Posting a file and JSON data to Spring rest service

I am building a Spring rest service for uploading a file. There is a form that consists of various field and one field for uploading a file. On submitting that form, I am sending a multipart form...

Spring java config extending an abstract configuration

in our software we are using spring java config. We have a setup, where one configuration extends an abstract configuration. Please have a look at this testcase: import...

Serialize model without relation

I have two models: @Entity class ModelA { ... @OneToMany(mappedBy = "modelA") @JsonManagedReference private List<ModelB> modelBs = new ArrayList<ModelB>(); ... } @Entity class ModelB { ...

The last packet successfully received from the server was 43417 seconds ago

We are using Spring 4.2.5, Hibernate 4.1.4, MYSql to build REST services. We are facing very weird issue and couldn't understand what is happening exactly and getting below error: The last packet...

Added Springfox Swagger-UI and it's not working, what am I missing?

Following the instructions here: http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api I added these dependencies to my project: compile...

Spring mock MVC unit test with controller advice

I am trying to test my controller advice exception handling. I have registered my controller advice to my mockmvc: mockMvc = MockMvcBuilders.standaloneSetup(controller) ...

ReactiveSecurityContextHolder.getContext() is empty but @AuthenticationPrincipal works

I've been using ReactiveAuthenticationManager in Spring Security + Webflux. It is customised to return an instance of UsernamePasswordAuthenticationToken which from what I can tell is an what I...

Spring cache not working for overriden methods in a subclass

I can't get Spring cache to work correctly with methods overriden in a subclass also implemented in the superclass. For example, I have this abstract service: public interface CrudService<E, I> { ...

Spring JPA - "java.lang.IllegalArgumentException: Projection type must be an interface!" (using native query)

I'm trying to retrieve a timestamp date from an oracle database but the code is throwing: java.lang.IllegalArgumentException: Projection type must be an interface! I'm trying to use native query...

Spring batch falls under which design pattern

I was going through the famous GoF - Gang of Four. And i happen to work a lot around Spring-batch framework . So i was wondering which design pattern it falls under. I think Spring batch should...

Liquibase is trying to execute executed scripts

we need rename changelog files which are already executed by liquibase to use relative path of master file. When we changed filesnames in master change log from this <include...

CORS error connecting Angular to Spring (localhost 8080 <--> localhost 4200)

I am trying to connect my Frontend in Angular 8 to my backend written in Java using Spring. My Spring backend is running on Tomcat server at localhost:8080 and Angular is open on...

InvalidDataAccessApiUsageException: first-result value cannot be negative

I have got a problem with spring data. I have two repositories, with each method on one repository: Repository1 Page<Model> findAllByIdAndLibraryTypeAndIsActive(Long Id, LibraryType libraryType, ...

Consider defining a bean of type 'UserConverter' in your configuration

I don't know what happend with my spring boot application but now I can't to start it because of an error: *************************** APPLICATION FAILED TO...

Spring bean injection problem in Flowable service task

I have a question about spring bean injection in service tasks of Flowable, why only this kind of injection with a static modifier worked, and what is the logic of it? I must inject a spring bean...

Redis spring session bean not updated

I am trying to switch my http session to redis in my spring boot application. When the first request comes to backend it's being filtered by authentication filter. One duty of this filter is to...

Whitelist endpoint in spring-webflux security without context root path

I am trying to whitelist all the custom endpoints which are ending with /health but in WebFlux Security I'm unable to use a regular expression to match all end-points. e.g. /app/health,...

How do I load reCapctha Score and Checkbox on the same page?

Currently on a login page, I need to have both the score and checkbox reCaptcha evaluation on the same page, if the score fails I need to dynamically load the checkbox score. Currently I have it...

how to create JPAQueryFactory correctly with QueryDsl

I heard about EntityManager is not thread-safe, so we use @PersistenceContext instead of @Autowired. However, I found about two ways to create JPAQueryFactory on the Internet. define a bean like...

Trying to set up PSQL and i get this error :

I am trying to start a Spring project using a PSQL database. I have installed PSQL using Homebrew but, When i run : brew services start postgresql I get this error: Error: Failure while executing;...

Spring Boot, OAuth2 authentication is lost between requests

EDIT: log from org.springframework.security: 2022-01-17 12:31:03.495 IST 2022-01-17 10:31:03.495 DEBUG [080-exec-5] o.s.s.w.s.SessionManagementFilter - Request requested invalid session id...