cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <Jos.Snelli...@pandora.be>
Subject Re: URLConnectionUtils.closeLoudly()
Date Sat, 05 Dec 2009 06:25:15 GMT
You are right in "literal".equals(param), but that is not the source of
the problem. Like smoking, it is a habit I'd better give up ;-)
Jos

On Fri, 2009-12-04 at 15:29 +0100, Johannes Lichtenberger wrote:
> 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
> 
> 



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


Mime
View raw message