01-05-2008 04:08 AM
<mstns:CommonQuestion>
<mstns:Question>this is question3<br /></mstns:Question>
<mstns:Answer>this is answer3<br /></mstns:Answer>
<mstns:Keywords>key1 key3<br /></mstns:Keywords>
</mstns:CommonQuestion>
<#ftl ns_prefixes={"mstns":"http://tempuri.org/XMLSchema.xsd "}>
<html>
<body bgcolor="Blue" align="center">
[b]<#assign dom = data.xmlNodeModel>
${.vars["mstns:dom.CommonQuestion/ mstns:dom.Question"]}[/b]
</body>
</html>
When i run the script at that time it shows me this type of Internal Error:he Web Script /alfresco/service/sample/schema has responded with a status of 500 - Internal Error.
500 Description: An error inside the HTTP server which prevented it from fulfilling the request.
Message: Error during processing of the template 'Expression data is undefined on line 4, column 16 in org/alfresco/From Schema/schema_data.get.html.ftl.'. Please contact your system administrator.
Exception: freemarker.core.InvalidReferenceException - Expression data is undefined on line 4, column 16 in org/alfresco/From Schema/schema_data.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.Assignment.accept(Assignment.java:90)
freemarker.core.Environment.visit(Environment.java:196)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:196)
freemarker.core.Environment.process(Environment.java:176)
freemarker.template.Template.process(Template.java:232)
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:200)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:392)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:257)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:163)
org.alfresco.web.scripts.WebScriptRuntime.wrappedExecute(WebScriptRuntime.java:348)
org.alfresco.web.scripts.WebScriptRuntime.authenticatedExecute(WebScriptRuntime.java:314)
org.alfresco.web.scripts.WebScriptRuntime$1.execute(WebScriptRuntime.java:163)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:228)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:158)
org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:174)
org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:106)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
Exception: org.alfresco.service.cmr.repository.TemplateException - Error during processing of the template 'Expression data is undefined on line 4, column 16 in org/alfresco/From Schema/schema_data.get.html.ftl.'. Please contact your system administrator.
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:204)
Server: Alfresco Enterprise Network v2.1.0 (112) schema 73
Time: Jan 5, 2008 2:21:10 PM
Diagnostics: Inspect Web Script (org/alfresco/From Schema/schema_data.get)
var data = companyhome.childByNamePath("/GuestHome/CommonQuestion3.xml");
model.data = data;
01-18-2008 05:31 AM
01-23-2008 01:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.