byMan / walkaround

Automatically exported from code.google.com/p/walkaround
Apache License 2.0
0 stars 0 forks source link

HTTP ERROR 500 if locale is not 'en' #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Compile and launch any branch (default or full-text-search) with runant
2.Browse to localhost:8080 with a browser set to France for ex.
3.Watch

What is the expected output?  What do you see instead?
It should show the fake login screen or the 'New Wave' screen

What browser and browser version are you using?  On what operating system?
Windows 7 - Chrome and Firefox

What URL does your browser show when the problem occurs?  Did you compile
walkaround on your machine, or are you using a public instance?
HTTP ERROR 500
Walkaround compiled on my machine

Please provide any additional information below.
Log says : [java] java.util.MissingResourceException: Can't find bundle for 
base name com.google.walkaround.wave.server.gxp, locale fr
When changing the locale to en (using Quick Locale Switcher in Firefox for 
example), it works.

Original issue reported on code.google.com by denis.rafin on 15 Feb 2012 at 10:45

GoogleCodeExporter commented 8 years ago
Could you paste the complete stack trace of the error, rather than just the 
first line?

Also, does this happen when deployed, too, or only when running locally?

Original comment by oh...@google.com on 15 Feb 2012 at 10:40

GoogleCodeExporter commented 8 years ago
I get the same error for me (locale: de). Here is a stack trace: 
http://pastebin.com/D0gejFhj

It only happens on the local version, when deployed it works fine.

The error can be "fixed" by copying 
build/war/WEB-INF/classes/com/google/walkaround/wave/server/gxp_en.properties 
to gxp_[your locale here].properties (in the same folder).

I'd love to contribute a translation, however, I don't have the slightest idea 
how to put that gxp translation strings into the source (digging through the 
sparse gxp documentation didn't reveal anything that worked).

Original comment by patrick....@meetnow.eu on 15 Feb 2012 at 11:09

GoogleCodeExporter commented 8 years ago
Thanks for the fix, it works. 
For info, the stack trace is the same on my machine and it works on the 
deployed version.
As for the translation, I would be willing to contribute too.
I don't know what is the difference in the deployed version for it to work. 
Maybe some kind of fallback to default language.

Original comment by denis.rafin on 16 Feb 2012 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by oh...@google.com on 23 Mar 2012 at 6:35

GoogleCodeExporter commented 8 years ago
I can't reproduce this but perhaps bba12e014cb7e686bf0d6cc11fe21caa7f230c81 
works around it.

Original comment by oh...@google.com on 28 Jun 2012 at 12:10

GoogleCodeExporter commented 8 years ago
I can't reproduce this but perhaps bba12e014cb7e686bf0d6cc11fe21caa7f230c81 
works around it.

Original comment by oh...@google.com on 28 Jun 2012 at 12:10