Thanks ManojI added following statement in jspslingResponse.getOutputStream().close(); This removed error from front end but I still see following error in error.logs Why is it happening not sure org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingExceptionjava.lang.Illeg...