• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Error in I18.getMessage()

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello:
When I run jforum i get the next error message:

MethodgetMessage on net.jforum.util.I18n The problematic instruction: ---------- ==> ${I18n.getMessage("ForumName")} [on line 30, column 73 in default/forum_base.htm] in include "default/forum_base.htm" [on line 3, column 1 in exception.html] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: MethodgetMessage on net.jforum.util.I18n at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:112) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
............

Any idea?
Thanks in advance,
[originally posted on jforum.net by xola]
 
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
There is a bug in RC5 when you change the default board language to other than English. Is thar your case? If so, try changing it back to en_US ( i18n.defualt and i18n.default.admin, at WEB-INF/config/SystemGlobals.properties ). AFAIK is possible to change the language per user ( eg, the user changes the language in his profile ).

This bug is already fixed in the CVS!!

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
Hello:
Thanks Rafael for your answer.
In SystemGlobals.properties the value of both i18n.default and i18n.default.admin is en_US.
I will try finding out what�s wrong.
Thank�s again.

xola


[originally posted on jforum.net by Anonymous]
 
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
This error occurs right on the first page? ( forums/list.page ). You can try opening WEB-INF/config/languages/en_US.properties and search there for a key named "ForumName'.. It is somewhere in the beginning of the file.

Also, the logs don't show any other exception? have you checked if the database settings are right? Sometimes, when JForum isn't able to start some essential service, other taks may fail.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
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
I've got the same error. Looking at file stdout.log from Tomcat's logs directory, I've found that the following error occurs just before the subject:
java.lang.ArrayIndexOutOfBoundsException: 3
at net.jforum.ActionServletRequest.<init>(ActionServletRequest.java:256)
at net.jforum.JForum.service(JForum.java:203)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
... more lines belongs to Tomcat's code.

[originally posted on jforum.net by Anonymous]
 
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
Which jforum version? and this exception occurs when you are accessing which URL?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic