java.util.MissingResourceException: Can't find bundle for base name com.google.gwt.dev.js.rhino.Messages, locale en_US
Hey guys,
I'm using GWT 2.5.1 I get this nasty exception below. Does anyone know what could be causing it? I can see the com.google.gwt.dev.js.rhino.Messages.properties in the gwt-dev.jar so I really don't understand why it's not finding it. Maybe it should be com.google.gwt.dev.js.rhino.Messages_en_US.properties?
[INFO] received post: com.polarapparel.consoles.helpline.client.app.msg.HelplineChatEvent@58b4db34
[ERROR] Mon Mar 18 16:55:10 EET 2013 com.google.gwt.core.client.JavaScriptObject$
[ERROR] SEVERE: Failed to deserialize message
[ERROR] com.google.gwt.user.client.rpc.SerializationException: Failed to parse RPC payload
[ERROR] at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.prepareToRead(ClientSerializationStreamReader.java:322)
[ERROR] at org.atmosphere.extensions.gwtwrapper.client.GwtClientSerializer.deserialize(GwtClientSerializer.java:73)
[ERROR] at org.atmosphere.extensions.gwtwrapper.client.AtmosphereRequestConfig$MessageHandlerWrapper.onMessage(AtmosphereRequestConfig.java:216)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
[ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
[ERROR] at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
[ERROR] at java.lang.Thread.run(Thread.java:722)
[ERROR] Caused by: java.util.MissingResourceException: Can't find bundle for base name com.google.gwt.dev.js.rhino.Messages, locale en_US
[ERROR] at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
[ERROR] at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
[ERROR] at java.util.ResourceBundle.getBundle(ResourceBundle.java:796)
[ERROR] at com.google.gwt.dev.js.rhino.Context.getMessage(Context.java:738)
[ERROR] at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError(TokenStream.java:1574)
[ERROR] at com.google.gwt.dev.js.rhino.Parser.reportError(Parser.java:72)
[ERROR] at com.google.gwt.dev.js.rhino.Parser.wellTerminated(Parser.java:333)
[ERROR] at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java:825)
[ERROR] at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360)
[ERROR] at com.google.gwt.dev.js.rhino.Parser.parse(Parser.java:123)
[ERROR] at com.google.gwt.dev.js.JsParser.parseImpl(JsParser.java:131)
[ERROR] at com.google.gwt.dev.js.JsParser.parse(JsParser.java:89)
[ERROR] at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.prepareToRead(ClientSerializationStreamReader.java:313)
[ERROR] at org.atmosphere.extensions.gwtwrapper.client.GwtClientSerializer.deserialize(GwtClientSerializer.java:73)
[ERROR] at org.atmosphere.extensions.gwtwrapper.client.AtmosphereRequestConfig$MessageHandlerWrapper.onMessage(AtmosphereRequestConfig.java:216)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
[ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
[ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
[ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
[ERROR] at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
[ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:242)
[ERROR] at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
[ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
[ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
[ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
[ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
[ERROR] at java.lang.Thread.run(Thread.java:722)
I debuged the code and the exception happens on the line:
ResourceBundle rb = ResourceBundle.getBundle(defaultResource, locale);
in the bellow method.
static String getMessage(String messageId, Object[] arguments) {
Context cx = getCurrentContext();
Locale locale = cx != null ? cx.getLocale() : Locale.getDefault();
// ResourceBundle does cacheing.
ResourceBundle rb = ResourceBundle.getBundle(defaultResource, locale);
String formatString;
try {
formatString = rb.getString(messageId);
} catch (java.util.MissingResourceException mre) {
throw new RuntimeException
("no message resource found for message property "+ messageId);
}
Again, hope someone has some idea what is causing it.
Cheers, Petar.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home