I'm using restlet-gwt to call web service on server. It works fine for locales 
like 'en' or 'fr', but the XHR failed to be sent to server due to error in 
RequestBuilder when I switched to 'ru'. The headers map is:
{Host=localhost:8080, Date=Пт, 11 июля 2014 01:58:21 UTC, 
User-Agent=Restlet-Framework/2.0.14, Accept=application/json} and the value for 
Date is causing the following the error:
Caused by: com.google.gwt.http.client.RequestException: (TypeError): Cannot 
convert string to ByteString because the character at index 0 has value 1063 
which is greater than 255.
    at 
com.google.gwt.http.client.RequestBuilder.setHeaders(RequestBuilder.java:422)
    at com.google.gwt.http.client.RequestBuilder.doSend(RequestBuilder.java:386)
    at com.google.gwt.http.client.RequestBuilder.send(RequestBuilder.java:237)
    at 
org.restlet.client.engine.http.GwtClientCall.sendRequest(GwtClientCall.java:254)
    at 
org.restlet.client.engine.http.adapter.ClientAdapter.commit(ClientAdapter.java:92)
    at 
org.restlet.client.engine.http.HttpClientHelper.handle(HttpClientHelper.java:110)
    at org.restlet.client.Client.handle(Client.java:168)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:697)

I'm using GWT 2.2 and Restlet-gwt 2.1.7
Please any help will be highly appreciated!

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3085230
17:35:52.016 [ERROR] [welcomeportal] Uncaught exception escaped

org.restlet.client.resource.ResourceException: Internal Connector Error
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:623)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:645)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:593)
    at org.restlet.client.resource.ClientResource.get(ClientResource.java:418)
    at 
org.talend.mdm.webapp.base.client.rest.ClientResourceWrapper.request(ClientResourceWrapper.java:113)
    at 
org.talend.mdm.webapp.welcomeportal.client.rest.StatisticsRestServiceHandler.getRoutingEventStats(StatisticsRestServiceHandler.java:154)
    at 
org.talend.mdm.webapp.welcomeportal.client.widget.RoutingChart.initChart(RoutingChart.java:69)
    at 
org.talend.mdm.webapp.welcomeportal.client.widget.RoutingChart.<init>(RoutingChart.java:52)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlet(MainFramePanel.java:335)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlets(MainFramePanel.java:282)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlets(MainFramePanel.java:191)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.access$10(MainFramePanel.java:179)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel$3.onSuccess(MainFramePanel.java:166)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel$3.onSuccess(MainFramePanel.java:1)
    at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:662)
Caused by: com.google.gwt.http.client.RequestException: (TypeError): Cannot 
convert string to ByteString because the character at index 0 has value 1063 
which is greater than 255.
    at 
com.google.gwt.http.client.RequestBuilder.setHeaders(RequestBuilder.java:422)
    at com.google.gwt.http.client.RequestBuilder.doSend(RequestBuilder.java:386)
    at com.google.gwt.http.client.RequestBuilder.send(RequestBuilder.java:237)
    at 
org.restlet.client.engine.http.GwtClientCall.sendRequest(GwtClientCall.java:254)
    at 
org.restlet.client.engine.http.adapter.ClientAdapter.commit(ClientAdapter.java:92)
    at 
org.restlet.client.engine.http.HttpClientHelper.handle(HttpClientHelper.java:110)
    at org.restlet.client.Client.handle(Client.java:168)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:697)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:767)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:767)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:665)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:620)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:645)
    at 
org.restlet.client.resource.ClientResource.handle(ClientResource.java:593)
    at org.restlet.client.resource.ClientResource.get(ClientResource.java:418)
    at 
org.talend.mdm.webapp.base.client.rest.ClientResourceWrapper.request(ClientResourceWrapper.java:113)
    at 
org.talend.mdm.webapp.welcomeportal.client.rest.StatisticsRestServiceHandler.getRoutingEventStats(StatisticsRestServiceHandler.java:154)
    at 
org.talend.mdm.webapp.welcomeportal.client.widget.RoutingChart.initChart(RoutingChart.java:69)
    at 
org.talend.mdm.webapp.welcomeportal.client.widget.RoutingChart.<init>(RoutingChart.java:52)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlet(MainFramePanel.java:335)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlets(MainFramePanel.java:282)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.initializePortlets(MainFramePanel.java:191)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel.access$10(MainFramePanel.java:179)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel$3.onSuccess(MainFramePanel.java:166)
    at 
org.talend.mdm.webapp.welcomeportal.client.MainFramePanel$3.onSuccess(MainFramePanel.java:1)
    at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:662)

Reply via email to