开发者

null pointer exception in setting response header in servlet

response.setHeader(keys[i].toString(),value);

in a servlet is throwing null pointer exception even though none of keys[i] or value 开发者_JAVA技巧are null why is it so?


One of the following is true:

  1. response is null
  2. keys is null
  3. keys[i] is null
  4. the exception is not thrown from the line you posted.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜