[opencms-dev] Problems with News Module - please help
Giles Bill
gilesb at ce.com.au
Tue Jan 14 05:45:26 CET 2003
Hi,
I am running version 4.6.1 and am trying to get the news module working,
each time I attempt to access the module from the administrator window I get
the following error in the opencms.log
[14.01.2003 15:24:29] <opencms_critical> [CmsElementXml
(NewsBackoffice/Backoffice)] Non OpenCms error occurred in getContent for
template class com.opencms.modules.homepage.news.NewsBackoffice
The Stack Trace for this error is
[CmsException]: 0 Unknown exception. Detailed Error: NO MESSAGE. Caught
Exception: >java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<
at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:192)
at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:169)
at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache
.java:148)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:228)
at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:283)
at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
at com.opencms.core.OpenCms.showResource(OpenCms.java:588)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:223)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
(THE STACK TRACE IS TAKEN FROM SOURCE HTML NOT LOG FILE)
So I thought I'd disable the element cache as this might be helpful and I
get the following on the console
[14.01.2003 15:28:56] <opencms_info> [NewsBackoffice] : Backoffice
getContentHead: InvocationTargetException!
[14.01.2003 15:28:56] <opencms_critical> [CmsXmlLauncher] Received error
while calling canonical root for requested file Backoffice.
[14.01.2003 15:28:56] <opencms_critical> [CmsXmlLauncher] --> Exception:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:412)
at
com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:136
9)
at
com.opencms.defaults.A_CmsBackoffice.getContent(A_CmsBackoffice.java:409)
at com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:123)
at
com.opencms.template.CmsRootTemplate.getMasterTemplate(CmsRootTemplate.java:
123)
at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:94)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:242)
at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:283)
at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
at com.opencms.core.OpenCms.showResource(OpenCms.java:588)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:223)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:479)
[14.01.2003 15:28:56] <opencms_critical> [CmsXmlLauncher] --> Cannot create
output for this file. Must send error. Sorry.
[14.01.2003 15:28:56] <opencms_info> [CmsXmlLauncher] There were exceptions
while generating output for
/system/modules/com.opencms.modules.homepage.news/administration/news/Backof
fice.html
[14.01.2003 15:28:56] <opencms_info> [CmsXmlLauncher] Clearing template file
cache for this file.
(INFORMATION TAKEN DIRECTLY FROM LOG FILE)
Essentially it's the same problem, (I think) but it's handled differently
depending on whether I have enabled/disabled the element cache
Has anyone else experienced this problem and found a solution.
Cheers
Billy.
More information about the opencms-dev
mailing list