Am failing to run tests with Junit with my IDE in the new maven sub module(2.4) of rest webservices with this error ,On looking into the stack trace i see this line
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext-service.xml]; nested exception is java.lang.NullPointerException
The funny bit of it is that on doing a maven build in my IDE the tests pass…
I looked into some similar scenarios here though not much gain because am experiencing this before i introduce any changes
hello @gcliff i have been facing the same error lately. It always comes but i refreshed, and validated all the projects and then the error went. But it comes again a number of times.
@mksd I have followed your suggestion with the build and it has solved my earlier Unexpected exception parsing XML document from class path resource [applicationContext-service.xml]; nested exception is java.lang.NullPointerException error…
Though i run into a new error that am looking into,the errors are coming up when running these tests individually with junit in the IDE …