• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

InvocationTargetException when changing language.

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

We 've translated a portion of the en_US.properties file to greek. I've copied the translated file (el_GR.properties) to WEB-INF/config/languages and updated the locales.properties according to the rest of the file.

When I try to change the default language to el_GR the following error


An error has occurred.

For detailed error information, please see the HTML source code, and contact the forum Administrator.

/oracle/mt/j2ee/home/applications/jforum/jforum/WEB-INF/config/languages/null (No such file or directory)



and exception


<!-- BEGIN ERROR STACK TRACE <br /> java.lang.reflect.InvocationTargetException <br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) <br /> at java.lang.reflect.Method.invoke(Method.java:324) <br /> at net.jforum.Command.process(Command.java:116) <br /> at net.jforum.view.admin.AdminCommand.process(AdminCommand.java:63) <br /> at net.jforum.JForum.service(JForum.java:182) <br /> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) <br /> at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) <br /> at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59) <br /> at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) <br /> at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) <br /> at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) <br /> at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) <br /> at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) <br /> at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) <br /> at java.lang.Thread.run(Thread.java:534) <br /> Caused by: java.io.FileNotFoundException: /oracle/mt/j2ee/home/applications/jforum/jforum/WEB-INF/config/languages/null (No such file or directory) <br /> at java.io.FileInputStream.open(Native Method) <br /> at java.io.FileInputStream.init(FileInputStream.java:106) <br /> at java.io.FileInputStream.init(FileInputStream.java:66) <br /> at net.jforum.util.I18n.load(I18n.java:151) <br /> at net.jforum.util.I18n.load(I18n.java:128) <br /> at net.jforum.util.I18n.changeBoardDefault(I18n.java:117) <br /> at net.jforum.view.admin.ConfigAction.updateData(ConfigAction.java:140) <br /> at net.jforum.view.admin.ConfigAction.editSave(ConfigAction.java:109) <br /> ... 17 more <br /> <br /> END ERROR STACK TRACE-->



are thrown.

Any advice?

Thank you.
[originally posted on jforum.net by tvoglou]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried to restart the container? the list of files are kept in memory.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic