---
title: "response"
author: "windforce"
date: "2007-10-24T10:16:02Z"
tags: []
slug: "response"
draft: false
lastmod: "2007-10-24T10:16:02Z"
id: 135020
url: "https://windforce.iteye.com/blog/135020"
---

前些天试了试freechart。结合DWR使用时，在返回时，dwr报错。但是后台没有任何的报错信息。调试后定位到最后的return语句。

最后发现原来时在写图片的时候使用了

ChartUtilities.writeImageMap(pw, filename, info, false);  
 pw.flush();

reponse都已经返回了，dwr肯定没的return 了。