Programming Issues


java.lang.IllegalArgumentException: Could not resolve placeholder ‘message’ in value “${message}”

The spring boot application failed at startup with the exception “java.lang.IllegalArgumentException: Could not resolve placeholder ‘message’. This exception is due

The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application

JSTL (JSP Standard tag library) supports common java operator functions, structural tasks including conditionals statements, looping structures. It also supports

“restartedMain” java.lang.reflect.InvocationTargetException: java.lang.AbstractMethodError

Spring boot application uses inversion of control to load all the dependency classes. Java supports the backward compatibility. If any

java.lang.AssertionError: Status expected: but was: in Junit test case Spring Boot

The Spring Boot MVC Controller returns a different HTTP status code compared to the intended HTTP status code in the

java.lang.AssertionError: Content type expected: but was: in Junit test case Spring Boot

We often see “Content type expected” error in unit test when testing spring boot MVC application. Spring boot test case

java.lang.AssertionError: Content type not set in Junit test case Spring Boot

Junit test case returns “Content type not set” error when you are testing the Spring MVC Controller. The MVC controller

java.lang.AssertionError: No value at JSON path in JUnit

Spring boot MVC framework allows developers to write Junit test cases to test REST API. the rest api calls are

java.lang.Exception No runnable methods

Often we find an exception that says “No runnable methods” when a Junit test case is run in the spring

ERROR 45940 – No qualifying bean of type org.springframework.test.web.servlet.MockMvc available

In spring boot integration test, MockMvc throws NoSuchBeanDefinitionException on auto wire. MockMvc failed with an @autowired annotation in the spring

No qualifying bean of type org.springframework.web.context.WebApplicationContext available

WebApplicationContext creates a web environment to run a spring boot test class. If the WebApplicationContext bean is not available or