SEVERE: Servlet.service() for servlet [appServlet] in context with path [/smdealer] threw exception
org.springframework.ws.client.WebServiceTransportException: Not Found [404]
Problem :
We come across this common exception when using web services with spring.
Exception I Encountered Was :
###################################################################################################################
SEVERE: Servlet.service() for servlet [appServlet] in context with path [/smdealer] threw exception org.springframework.ws.client.WebServiceTransportException: Not Found [404] at org.springframework.ws.client.core.WebServiceTemplate.handleError(WebServiceTemplate.java:624) at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:548) at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:499) at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:348) at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:342) at com.tracfone.udp.delegate.impl.AgentServiceImpl.authenticate(AgentServiceImpl.java:69) at com.tracfone.udp.security.CustomAuthenticationProvider.authenticate(CustomAuthenticationProvider.java:41) at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156) at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174) at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthenticatio###################################################################################################################
Solution :
This exception was caused when i was using incorrect uri for the web service for authentication. The environment variable was invalid. I just updated the environment variable in uri and it worked fine.
Example :
- Pointing the correct URI for the service worked for me.
Similar Exception :
- org.springframework.ws.client.WebServiceTransportException: Not Found [404] - No endpoint mapping found for .... - Servlet.service() for servlet in context with path threw exception
No comments:
Post a Comment