[opencms-dev] Problems with my own copy of TTArticle. It's not possible to get the String value of nested ...

jacek grzebyta (RRes-Roth) jacek.grzebyta at bbsrc.ac.uk
Wed Mar 24 10:27:43 CET 2010


Hi guys,

I need to modified TTArticle element so I copy contents of article.xsd and article.jsp to my own files.
So, in theory it should work like normal TTArticle but it doesn't.
I have error type "It's not possible to get String value... ".

I restarted tomcat and cleaned cache. Still problem. I enclose the log file.


Thanks a lot,
Jacek

PS. I found it means that I try to read String when the data is not String. But why does it work with the original TTArticle but not with my copy?


org.opencms.main.CmsRuntimeException: It's not possible to get the String value of a nested XML content definition.
	at org.opencms.xml.types.CmsXmlNestedContentDefinition.getStringValue(CmsXmlNestedContentDefinition.java:140)
	at org.opencms.xml.A_CmsXmlDocument.getStringValue(A_CmsXmlDocument.java:389)
	at org.opencms.loader.A_CmsXmlDocumentLoader.dumpAsString(A_CmsXmlDocumentLoader.java:149)
	at org.opencms.loader.CmsXmlContentLoader.dumpAsString(CmsXmlContentLoader.java:52)
	at org.opencms.loader.A_CmsXmlDocumentLoader.service(A_CmsXmlDocumentLoader.java:245)
	at org.opencms.loader.CmsXmlContentLoader.service(CmsXmlContentLoader.java:52)
	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
	at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364)
	at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:473)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_cms_005finclude_005f0(default_jsp.java:803)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_cms_005ftemplate_005f2(default_jsp.java:769)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_c_005fforEach_005f1(default_jsp.java:725)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_c_005fwhen_005f0(default_jsp.java:689)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_c_005fchoose_005f0(default_jsp.java:656)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspx_meth_cms_005ftemplate_005f1(default_jsp.java:563)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.template.default_jsp._jspService(default_jsp.java:251)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:555)
	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:829)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:512)
	at org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:232)
	at org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:52)
	at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1052)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1490)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:619)




More information about the opencms-dev mailing list