cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Lichtenberger <Johannes.Lichtenber...@uni-konstanz.de>
Subject Re: URLConnectionUtils.closeLoudly()
Date Fri, 04 Dec 2009 14:29:58 GMT
On Fri, 2009-12-04 at 15:15 +0100, Jos Snellings wrote:

[StackTrace]

> It is certainly not closing a connection quietly :-) 
> 
> In URLResponse.java, is it possible that in execute()
> 
> servletConnection = this.url.openConnection(); is null?
> 
> Responses are like:
>    if (action.equals("st")) return new
> URLResponse("servlet:/thesaurusedit/stdemo",data);
>             	if (action.equals("term")) return new
> URLResponse("servlet:/edit/term", data);
>             }
>             
> 	return new URLResponse("servlet:editor/workspace", data);

Well, you know I'm not really familiar with cocoon, but I would replace
action.equals("st") with "st".equals(action) and action.equals("term")
equally, so you can't get NullPointerExceptions in this place (I know
it's not the source of the problem).

greetings,
Johannes  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message