AnsweredAssumed Answered

XML parsing exception, SAXException: FWK005

Question asked by uh7415 on Apr 22, 2008
Hi,

Stack:
- WSF 1.5
- Alfresco 2.9B community
- WCM 2.9B community

We are developing a web site using the above mentioned stack, but on few occasions we received an exception stack trace:

javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "cl:getContentList"
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:837)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
   org.apache.jsp.views.pages.photos_005fwallpapers_jsp._jspService(photos_005fwallpapers_jsp.java:323)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspx_meth_c_005fif_005f15(sub_002dchannel_jsp.java:857)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspx_meth_c_005fforEach_005f0(sub_002dchannel_jsp.java:542)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspService(sub_002dchannel_jsp.java:115)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:132)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)


root cause

org.xml.sax.SAXException: FWK005 parse may not be called while parsing.
   org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
   org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
   org.alfresco.web.forms.XMLUtil.parse(XMLUtil.java:155)
   org.alfresco.web.forms.FormDataFunctions.parseXMLDocuments(FormDataFunctions.java:126)
   org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.parseXMLDocuments(ServletContextFormDataFunctionsAdapter.java:78)
   org.alfresco.web.content.ContentListBean.getContentList(ContentListBean.java:66)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:172)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
   org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924)
   org.apache.jsp.views.pages.photos_005fwallpapers_jsp._jspx_meth_c_005fforEach_005f2(photos_005fwallpapers_jsp.java:1146)
   org.apache.jsp.views.pages.photos_005fwallpapers_jsp._jspService(photos_005fwallpapers_jsp.java:210)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspx_meth_c_005fif_005f15(sub_002dchannel_jsp.java:857)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspx_meth_c_005fforEach_005f0(sub_002dchannel_jsp.java:542)
   org.apache.jsp.views.pages.sub_002dchannel_jsp._jspService(sub_002dchannel_jsp.java:115)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:132)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)


I did some google on the exception and it seems that this is a concurrency issue.
Pls. suggest how to get around this.

Thanks in advance
//UH7415

Outcomes