[opencms-dev] Error emailform

Stephan Hartmann hartmann at metamesh.de
Thu Jun 23 13:10:21 CEST 2005


The form classes expect the forms element to be the root element. You 
cannot use the form element as a nested element in your own XML content 
without writing your own handler classes.

Regards,
Stephan


-- 
Stephan Hartmann

metamesh

Lippstädter Str. 22
44143 Dortmund

http://www.metamesh.de/

Carol Mancho Lagunas schrieb:
> Hi all
> 
> somebody can help me?
> 
> Thanks in advance,
> 
> Carol
>  
> 
> El mié, 22-06-2005 a las 09:18 +0200, Carol Mancho Lagunas escribió:
> 
>>Hi!
>>
>>I need help! I have a nested xmlcontent. The xsd schema is like this:
>>
>>..................
>>
>><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>>	
>>	<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
>>	<xsd:include schemaLocation="opencms://system/modules/org.opencms.udl/schemas/webexterna.xsd"/>
>>	<xsd:include schemaLocation="opencms://system/modules/org.opencms.frontend.templateone.form/schemas/form.xsd"/>
>>	
>>	
>>	<xsd:element name="Paragrafs" type="OpenCmsParagrafs"/>
>>	
>>	<xsd:complexType name="OpenCmsParagrafs">
>>		<xsd:sequence>
>>			<xsd:element name="Paragraf" type="OpenCmsParagraf" minOccurs="0" maxOccurs="unbounded" />
>>		</xsd:sequence>
>>	</xsd:complexType>
>>
>>	<xsd:complexType name="OpenCmsParagraf">
>>
>>	<xsd:sequence>
>>		<xsd:element name="Webexterna" type="OpenCmsWebexterna" minOccurs="0" maxOccurs="3" />
>>		<xsd:element name="form" type="OpenCmsOnlineForm" minOccurs="0" maxOccurs="1" />
>>	</xsd:sequence>
>>
>></xsd:complexType>
>></xsd:schema>
>>
>>
>>
>>...................
>>
>>
>>And I use a jsp to show this elements:
>>
>>
>>........................
>>
>><cms:contentload collector="allInFolder"
>>param="/sites/UdL/xmlcontent/paragraf_${number}.html|103"
>>editable="true">
>>
>><cms:contentcheck ifexists="Webexterna">
>><cms:contentloop element="Webexterna">
>><%@ include file="webexterna.txt" %>
>></cms:contentloop>
>></cms:contentcheck>
>>
>><cms:contentcheck ifexists="form">
>><%@ include file="/system/modules/org.opencms.frontend.templateone.form/pages/form.html"%>
>></cms:contentcheck>
>>
>>
>></cms:contentload> 
>>
>>..........................
>>
>>but I’m getting the following exception. Can anyone tell me why?
>>
>>
>>Thanks!!!!
>>
>>
>>...................................
>>
>>java.lang.NullPointerException 
>>	at org.opencms.frontend.templateone.form.CmsForm.initFormGlobalConfiguration(CmsForm.java:860)
>>	at org.opencms.frontend.templateone.form.CmsForm.init(CmsForm.java:467)
>>	at org.opencms.frontend.templateone.form.CmsForm.<init>(CmsForm.java:199)
>>	at org.opencms.frontend.templateone.form.CmsFormHandler.init(CmsFormHandler.java:323)
>>	at org.opencms.frontend.templateone.form.CmsFormHandler.<init>(CmsFormHandler.java:119)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.elements.paragrafs.paragraf_jsp._jspService(paragraf_jsp.java:225)
>>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
>>	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
>>	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>>	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.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:211)
>>	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:345)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.elements.list_005fnews_005fcenter_jsp._jspx_meth_cms_include_0(list_005fnews_005fcenter_jsp.java:92)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.elements.list_005fnews_005fcenter_jsp._jspService(list_005fnews_005fcenter_jsp.java:59)
>>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
>>	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
>>	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>>	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.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:211)
>>	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:345)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.templates.main_jsp._jspx_meth_cms_include_3(main_jsp.java:284)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.templates.main_jsp._jspx_meth_cms_template_0(main_jsp.java:147)
>>	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_udl.templates.main_jsp._jspService(main_jsp.java:70)
>>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
>>	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
>>	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
>>	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.CmsXmlPageLoader.load(CmsXmlPageLoader.java:211)
>>	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:689)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>>	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>>	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>>	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>>	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>>	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>	at java.lang.Thread.run(Thread.java:595)
>>
>>
>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list
>>To change your list options, or to unsubscribe from the list, please visit
>>http://mail.opencms.org/mailman/listinfo/opencms-dev


-- 
Stephan Hartmann

metamesh

Lippstädter Str. 22
44143 Dortmund

http://www.metamesh.de/




More information about the opencms-dev mailing list