Hello,<br><br>I have some problems when adding different locales to a OpenCMS site.<br><br>The steps to reproduce the bug (assuming is a bug, and i am not doing something wrong) are the following:<br><br>1) Edit opencms-system.xml
to add more languages:<br><br>Exemple:<br><br>[...]<br><br><internationalization><br> <localehandler class="org.opencms.i18n.CmsDefaultLocaleHandler"/><br> <localesconfigured><br> <locale>ro</locale>
<br> <locale>hu</locale><br> <locale>en</locale><br> </localesconfigured><br> <localesdefault><br> <locale>ro</locale><br> </localesdefault>
<br> </internationalization><br><br>[...]<br><br>2) Restart tomcat server<br><br>3) Create a JSP template<br><br>4) Create a "Page with free text" based on the template selected on step 3.<br><br>5) Try to "Edit Page" on the template
<br><br>The error generated is:
<div class="dialogblockborder dialogblockborderheadline">
<div class="dialogblock">
<span class="dialogblockhead">Error</span>
javax.servlet.jsp.JspException: Index: 0, Size: 0 <br><br>Some notes:<br><br>- if i try to edit controlcode, and manually created the xml structure for all the languages, then i can edit page corectlly.<br>- the problem doesnt exists for structured content editing;
<br><br>The stack for the error is:<br><br>21 Sep 2006 11:39:37,445 ERROR [ina.core.ApplicationDispatcher: 704] Servlet.service() for servlet jsp threw exception<br>java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br>
at java.util.ArrayList.RangeCheck(ArrayList.java:546)<br> at java.util.ArrayList.get(ArrayList.java:321)<br> at org.opencms.workplace.editors.CmsDefaultPageEditor.initBodyElementName(CmsDefaultPageEditor.java:548)
<br> at org.opencms.workplace.editors.CmsSimplePageEditor.initWorkplaceRequestValues(CmsSimplePageEditor.java:258)<br> at org.opencms.editors.fckeditor.CmsFCKEditor.initWorkplaceRequestValues(CmsFCKEditor.java:178)<br>
at org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:2067)<br> at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:253)<br> at org.opencms.workplace.tools.CmsToolDialog.<init>(
CmsToolDialog.java:93)<br> at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:249)<br> at org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:186)<br> at org.opencms.workplace.editors.CmsDefaultPageEditor
.<init>(CmsDefaultPageEditor.java:115)<br> at org.opencms.workplace.editors.CmsSimplePageEditor.<init>(CmsSimplePageEditor.java:90)<br> at org.opencms.editors.fckeditor.CmsFCKEditor.<init>(CmsFCKEditor.java
:92)<br> at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.fckeditor.editor_jsp._jspService(editor_jsp.java:51)<br> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br> at javax.servlet.http.HttpServlet.service
(HttpServlet.java:802)<br> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)<br> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br> at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:264)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br> at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)<br> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br>[...]<br><br><br>Any clue on what may be causing that? I suppose is a problem on the script that creates the initial xmlstructure for a page (is doesn't cycle correctly through all the languages).
<br><br>Thank you,<br>Radu<br><br><br><br>
</div>
</div>