<html>
<body>
Hello,<br><br>
I'm trying to change the news module into a different module and I'm
getting the following error in opencms.log:<br>
"<br>
<pre>Non OpenCms error occurred in getContent for
template class "

</pre>The error outputted on the interface is:<br>
com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
CmsException ID: 0. <br>
root cause was java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:194)<br>
...(full stack trace included at the bottom)<br><br>
I searched the mailing list, and notice that Bill Giles had a similar
issue on January 14th, 2003. Unfortunately nobody replied to him on the
mailing list back then. I'm not exactly sure why the news module works
fine, yet I get this error when I go to my similar module via the
administration view. <br><br>
The comment above the error I'm getting in CmsElementXml says:<br>
"// No CmsException. This is really, really bad!" <br>
Is it really that bad? Any Ideas about what went wrong?<br>
The template class exists, But doesn't have a getContent() method inside
of it. The news module doesn't have that method either though.<br><br>
Thanks for your time,<br><br>
<br>
Tim<br><br>
com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
CmsException ID: 0. <br>
root cause was java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:194)<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br>
<x-tab>        </x-tab>at
com.opencms.core.OpenCms.showResource(OpenCms.java:956)<br>
<x-tab>        </x-tab>at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<br>
<x-tab>        </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)<br>
<x-tab>        </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)<br>
<x-tab>        </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)<br>
<x-tab>        </x-tab>at
java.lang.Thread.run(Thread.java:536)<br>
>-----------<br>
>Root cause:<br>
>java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<br>
><x-tab>       </x-tab>at
java.util.Vector.elementAt(Vector.java:427)<br>
><x-tab>       </x-tab>at
com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:1407)<br>
><x-tab>       </x-tab>at
com.opencms.defaults.A_CmsBackoffice.getContent(A_CmsBackoffice.java:421)<br>
><x-tab>       </x-tab>at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)<br>
><x-tab>       </x-tab>at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)<br>
><x-tab>       </x-tab>at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)<br>
><x-tab>       </x-tab>at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)<br>
><x-tab>       </x-tab>at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)<br>
><x-tab>       </x-tab>at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br>
><x-tab>       </x-tab>at
com.opencms.core.OpenCms.showResource(OpenCms.java:956)<br>
><x-tab>       </x-tab>at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<br>
><x-tab>       </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)<br>
><x-tab>       </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
><x-tab>       </x-tab>at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
><x-tab>       </x-tab>at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
><x-tab>       </x-tab>at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
><x-tab>       </x-tab>at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
><x-tab>       </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
><x-tab>       </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)<br>
><x-tab>       </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)<br>
><x-tab>       </x-tab>at
java.lang.Thread.run(Thread.java:536)<br><br>
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<br>
<x-tab>        </x-tab>at
java.util.Vector.elementAt(Vector.java:427)<br>
<x-tab>        </x-tab>at
com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:1407)<br>
<x-tab>        </x-tab>at
com.opencms.defaults.A_CmsBackoffice.getContent(A_CmsBackoffice.java:421)<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)<br>
<x-tab>        </x-tab>at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)<br>
<x-tab>        </x-tab>at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:274)<br>
<x-tab>        </x-tab>at
com.opencms.core.OpenCms.showResource(OpenCms.java:956)<br>
<x-tab>        </x-tab>at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)<br>
<x-tab>        </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)<br>
<x-tab>        </x-tab>at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)<br>
<x-tab>        </x-tab>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)<br>
<x-tab>        </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)<br>
<x-tab>        </x-tab>at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)<br>
<x-tab>        </x-tab>at
java.lang.Thread.run(Thread.java:536)<br><br>
<br>
<x-sigsep><p></x-sigsep>
<font face="Verdana" color="#0000FF"><b>Tim Mundy<br>
Software Developer<br>
E-mail: Tim.Mundy@babelfish.com <br>
Phone: 780.944-9964<br>
Fax: 780.432.5700 <br>
</font><div align="center"><font face="Verdana" size=5 color="#0000FF">The
Babel Fish Corporation<br>
Where the World comes to Communicate!!<br><br>
<br>
</b></font></div>
<font face="Times New Roman, Times">This e-mail message (including
attachments, if any) is intended for the use<br>
of the individual or entity to which it is addressed and may 
contain<br>
information that is privileged, proprietary , confidential and exempt
from<br>
disclosure. If you are not the intended recipient, you are notified
that<br>
any dissemination, distribution or copying of this communication is<br>
strictly prohibited. If you have received this communication in
error,<br>
please notify the sender and erase this e-mail message immediately.<br>
---------------------------------------------------------------------------<br>
Le présent message électronique (y compris les pièces qui y sont
annexées,<br>
le cas échéant) s'adresse au destinataire indiqué et peut contenir
des<br>
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas
le<br>
destinataire de ce document, nous vous signalons qu'il est
strictement<br>
interdit de le diffuser, de le distribuer ou de le reproduire. Si 
ce<br>
message vous a été transmis par erreur, veuillez en informer
l'expéditeur<br>
et le supprimer immédiatement.<br>
</font><font color="#0000FF"><u><a href="http://www.babelfish.com/" eudora="autourl">www.babelfish.com</a></font></u></body>
</html>