Re: Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-27 Thread toytown
Thanks. It worked. But strange that such basic settings are not enabled in
Tomcat

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-4-Application-crashing-on-German-umlaut-characters-tp4412794p4424640.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-23 Thread Martin Grigorov
Hi,

Create a quickstart and attach it to a ticket.
Thanks!

On Thu, Feb 23, 2012 at 5:26 AM, toytown prasanna.tulad...@gmail.com wrote:

 Wicket : 1.5.4
 Tomcat : 6.0.28 to 6.0.35
 JDK - 1.6
  I have a simple search application where I could enter search parameters
 like city name in a input textbox component. I am using displaying the
 results in a separate page by passing search criteria  as pageparameters.

        searchForm.add(new Button(submitSearch) {

            @Override
            public void onSubmit() {
                PageParameters params =  new PageParameters();
                params.set(city, req.getCity());
                setResponsePage(SearchResultPage.class, params);
            }

        });

 If a pass normal String like 'Munich' without umlauts everything works ok
  The url is like http://localhost:8080/ecom/home/results?city=Munich  which
 is ok and working fine

 If I pass the city name with umlaut like 'München' then, I get url like
 http://localhost:8080/ecom/home/results?city=Münchencity=Münchencity=Münchencity=Münchencity=Münchencity=Münchencity=MÃÃ

 and EXCEPTION  trace in my log file looks like

 05:18:28,092 DEBUG pache.wicket.page.PageAccessSynchronizer: 219 -
 'http-8080-1' notifying blocked threads
 23.02.2012 05:18:28 org.apache.coyote.http11.Http11Processor process
 SCHWERWIEGEND: Error processing request
 java.lang.ArrayIndexOutOfBoundsException: 8192
        at
 org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:730)
        at
 org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:641)
        at
 org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:514)
        at
 org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1637)
        at
 org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:956)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at
 org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
        at 
 org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:274)
        at 
 org.apache.catalina.connector.Response.finishResponse(Response.java:493)
        at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:317)
        at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
 23.02.2012 05:18:28 org.apache.coyote.http11.Http11Processor process


   There itself is no RuntimeException thrown from wicket but somehow it
 generates some strange url which causes ArrayIndexOutofBoundException.

 Is this a bug in Wicket or that my preassumption was wrong that
 pageparameters should be encoded by Wicket when displayed in the url ? What
 is the wa to get around this problem ?

 Thanks in advance.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-4-Application-crashing-on-German-umlaut-characters-tp4412794p4412794.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.4 - Application crashing on German umlaut characters

2012-02-23 Thread Gregor Kaczor

I had similar problems without that Exception.

Have you added

URIEncoding=UTF-8

to your connector?

See 
http://struts.apache.org/2.0.6/docs/how-to-support-utf-8-uriencoding-with-tomcat.html


On 02/23/2012 09:07 AM, Martin Grigorov wrote:

Hi,

Create a quickstart and attach it to a ticket.
Thanks!

On Thu, Feb 23, 2012 at 5:26 AM, toytownprasanna.tulad...@gmail.com  wrote:

Wicket : 1.5.4
Tomcat : 6.0.28 to 6.0.35
JDK - 1.6
  I have a simple search application where I could enter search parameters
like city name in a input textbox component. I am using displaying the
results in a separate page by passing search criteria  as pageparameters.

searchForm.add(new Button(submitSearch) {

@Override
public void onSubmit() {
PageParameters params =  new PageParameters();
params.set(city, req.getCity());
setResponsePage(SearchResultPage.class, params);
}

});

If a pass normal String like 'Munich' without umlauts everything works ok
  The url is like http://localhost:8080/ecom/home/results?city=Munich  which
is ok and working fine

If I pass the city name with umlaut like 'München' then, I get url like
http://localhost:8080/ecom/home/results?city=Münchencity=Münchencity=Münchencity=Münchencity=Münchencity=Münchencity=MÃÃ

and EXCEPTION  trace in my log file looks like

05:18:28,092 DEBUG pache.wicket.page.PageAccessSynchronizer: 219 -
'http-8080-1' notifying blocked threads
23.02.2012 05:18:28 org.apache.coyote.http11.Http11Processor process
SCHWERWIEGEND: Error processing request
java.lang.ArrayIndexOutOfBoundsException: 8192
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:730)
at
org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:641)
at
org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:514)
at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1637)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:956)
at org.apache.coyote.Response.action(Response.java:183)
at org.apache.coyote.Response.sendHeaders(Response.java:379)
at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:274)
at 
org.apache.catalina.connector.Response.finishResponse(Response.java:493)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:317)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
23.02.2012 05:18:28 org.apache.coyote.http11.Http11Processor process


   There itself is no RuntimeException thrown from wicket but somehow it
generates some strange url which causes ArrayIndexOutofBoundException.

Is this a bug in Wicket or that my preassumption was wrong that
pageparameters should be encoded by Wicket when displayed in the url ? What
is the wa to get around this problem ?

Thanks in advance.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-4-Application-crashing-on-German-umlaut-characters-tp4412794p4412794.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







--
How to find files on the Internet? FindFiles.net http://findfiles.net!