```
Object onActivate(final String jsonRequest){
    return new StreamResponse() {

        private InputStream inputStream;

        public void prepareResponse(Response response) {

```

I'm using the above code to generate a XML as the response. When I test it in browser, it works fine. But when I send my request from Android application i get the following error on server side.

```
[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Page catalog/Index did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering.
java.lang.RuntimeException: Page catalog/Index did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering.

```