Hi,

At line 181 in ServletWebResponse I see:
UrlRenderer urlRenderer = RequestCycle.get().getUrlRenderer();

I don't see how anything could be null here.
Can you debug what is null ?

On Thu, Oct 11, 2012 at 4:02 PM, nemanjko <[email protected]> wrote:
>
> I'm not sure that the error I'm getting is related to the WICKET-4789 that
> was in 6.0,
> but it looks like it.
>
> After upgrading from 6.0.0 to 6.1.1, I am getting this error:
>
> java.lang.NullPointerException
>
> org.apache.wicket.protocol.http.servlet.ServletWebResponse.encodeURL(ServletWebResponse.java:181)
>
> I use a piece of code to remove jsessionid from URL for search engines.
> The line where it happens is where I use super.encodeURL(url):
>
> public String encodeURL(CharSequence url) {
>           final String agent = webRequest.getHeader("User-Agent");
>           return isAgent(agent) ? url.toString() : super.encodeURL(url);
> }
>
> Is it still a bug?
> If not, is there some other way to remove jsessionid from URL?
>
> Thanks,
> Nemanja
>
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Bug-WICKET-4789-still-in-6-1-1-tp4652883.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to