0

Here is a little background of my problem:

I'm using Spring MVC 3.1.2.RELEASE. The server is deployed on Amazon AWS. I have a simple controller.

public class MyWebController implements Controller {


    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) {

        try {
            String delegateGuid = request.getParameter("delegateGuid");
            String serviceCodesToBeUpdated = request.getParameter("serviceCodesToBeUpdated");
            if (StringUtils.isBlank(delegateGuid) || StringUtils.isBlank(serviceCodesToBeUpdated)) {
                throw new MyException("delegateGuid and/or serviceCodesToBeUpdted cannot be null or empty");
            }

            ...

I have a client script that makes POST request to this endpoint. But sometimes, I hit this MyException that tells me the params are not set. But client logs show that the params are set correctly before sending the requests. The difficult part of debugging this is that it is not reproducible.

Does anyone know what could possibly have caused this issue? I know this might not be the level of detail enough to identify the problem. But if you can suggest any debug logs I could insert into my code, that would be helpful as well. I'm lost in that I don't even know where to start debugging this.

Thanks.

4

0 回答 0