anotheria / moskito

Monitoring for Java applications. Complete ecosystem for DevOps. Free & open source
http://www.moskito.org
MIT License
225 stars 69 forks source link

Impossible to update threshold via RMI due to dependency to HttpServletRequesst #271

Closed dvayanu closed 1 year ago

dvayanu commented 1 year ago

When trying to update a threshold following error happens: Service unavailable due to rmi failure: Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

Probably cause:

    protected void parseHttpRequest(HttpServletRequest request){
        super.parseHttpRequest(request);

        yellowDir = request.getParameter("yellowDir");
        yellowValue = request.getParameter("yellowValue");
        orangeDir = request.getParameter("orangeDir");
        orangeValue = request.getParameter("orangeValue");
        redDir = request.getParameter("redDir");
        redValue = request.getParameter("redValue");
        purpleDir = request.getParameter("purpleDir");
        purpleValue = request.getParameter("purpleValue");
        greenDir = request.getParameter("greenDir");
        greenValue = request.getParameter("greenValue");

    }

in ThresholdPO which is parameter to ThresholdAPI.updateThreshold(String thresholdId, ThresholdPO po) throws APIException;

and HttpServletRequest is not present in backend (JVM pure) services.

dvayanu commented 1 year ago

part of 3.2.7