[opencms-dev] News and FAQs are not working

Marius Oancea mar1u50 at yahoo.ca
Wed Jun 8 07:13:15 CEST 2005


Hi,
    I tried to create a site including news and FAQs.(OpenCms 6 neta 3 
and r1)

    I have a news.html page using templateOne. This page has "Center 
Layout" attribute set to "List of news articles" and is included into 
navigation. This page is on the same level as my index.html on my site.
    The news articles are made in /sites/mysite/modules/news/news-00x of 
type "news".

    The system sucessfully list the news when i see the page news.html 
but when i press on the title of one news article i get a 
NullPointerException.

    The full exception is :

java.lang.NullPointerException
	at org.opencms.xml.A_CmsXmlDocument.getBookmarkName(A_CmsXmlDocument.java:115)
	at org.opencms.xml.A_CmsXmlDocument.getBookmark(A_CmsXmlDocument.java:520)
	at org.opencms.xml.A_CmsXmlDocument.getValueInternal(A_CmsXmlDocument.java:594)
	at org.opencms.xml.A_CmsXmlDocument.getStringValue(A_CmsXmlDocument.java:240)
	at org.opencms.loader.CmsXmlContentLoader.service(CmsXmlContentLoader.java:230)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:323)
	at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:211)
	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:345)
	at org.apache.jsp.detail_0002dnews_html_jsp._jspService(detail_0002dnews_html_jsp.java:407)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:385)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:421)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:323)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:453)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:398)
	at org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:207)
	at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:674)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1310)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:711)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:687)


	at java.lang.Thread.run(Thread.java:534)


Requested resource is */modules/news/news_001
*OpenCms version :* **6.0 RC 1 Corrin
*OpenCms context: */opencms/opencms*

Any ideea what can I do ?

Thanx a lot.

Regards
    Marius

-- 
Let your workings remain a mystery.
Just show people the results,
	Lao-Tsu,Tao Te Ching

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050608/d2b57c46/attachment.htm>


More information about the opencms-dev mailing list