Object onActivate(final String jsonRequest){
return new StreamResponse() {
private InputStream inputStream;
public void prepareResponse(Response response) {
我正在使用上面的代码生成一个 XML 作为响应。当我在浏览器中测试它时,它工作正常。但是当我从 Android 应用程序发送我的请求时,我在服务器端收到以下错误。
[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.