• xe:restService is executing the service twice when doing a POST

    By Frederic Dehedin 3 years ago

    When i invoke a POST to an XPages with a RestService Control, the renderService Method is executed twice when the RESTService is called the FIRST time (after clean of the project).


    <xe:restService id="restService2" pathInfo="community"
        ignoreRequestParams="false" state="true" preventDojoStore="true">
            <xe:customRestService contentType="application/json"

    Java Backend with the renderService Method:

    public void renderService(CustomService service, RestServiceEngine engine)
            throws ServiceException {
        try {
            System.out.println("inside RESTServiceBean.renderService:"+System.currentTimeMillis());
        } catch (Exception e) {
            throw new RuntimeException(e);

    When i make a Clean of the project and call the REST Service, it prints 2 times the milliseconds..

    How can i prevent that? got the latest ExtLib 901v00_16.20160128-1014