Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ClassCastException: org...DeferredElementNSImpl cannot be cast to java.lang.String



    SmartClient_v83 update to SmartClient_v110p Trail

    Running is ok in V83,but runn error in V11 .java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to java.lang.String

    I can't make sense out of this error I'm getting when I open a form page.



    Code:
    [2016-09-14 17:00:17.128] ERROR http-bio-8080-exec-8         o.a.c.c.C.[Catalina].[localhost].[/materialPurchase].[jsp]        Servlet.service() for servlet [jsp] in context with path [/materialPurchase] threw exception [javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to java.lang.String
        at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1912)
        at com.isomorphic.datasource.IsomorphicXML.toRecord(IsomorphicXML.java:97)
        at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1346)
        at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1907)
        at com.isomorphic.taglib.WidgetXMLTag.toJS(WidgetXMLTag.java:148)
        at com.isomorphic.taglib.WidgetXMLTag.parseAndOutputErrors(WidgetXMLTag.java:125)
        at com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:78)
        at org.apache.jsp.materialPurchaseSearch_jsp._jspx_meth_isomorphic_005fXML_005f0(materialPurchaseSearch_jsp.java:704)
        at org.apache.jsp.materialPurchaseSearch_jsp._jspService(materialPurchaseSearch_jsp.java:115)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.cserver.saas.system.commons.filter.CASFilter.doFilter(CASFilter.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    #2
    This looks like you probably have 2 or more copies of different versions of the Xerces XML parser in your classpath. This is causing the XML parser to malfunction and produce this nonsensical error.

    Comment


      #3


      SmartClient_v83 update to SmartClient_v110p Trail

      Running is ok in V83,but runn error in V11 .java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to java.lang.String

      I can't make sense out of this error I'm getting when I open a form page

      Code:

      [2016-09-14 17:00:17.128] ERROR http-bio-8080-exec-8 o.a.c.c.C.[Catalina].[localhost].[/materialPurchase].[jsp] Servlet.service() for servlet [jsp] in context with path [/materialPurchase] threw exception [javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.ClassCastException: org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to java.lang.String at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1912) at com.isomorphic.datasource.IsomorphicXML.toRecord(IsomorphicXML.java:97) at com.isomorphic.datasource.BasicDataSource.toRecords(BasicDataSource.java:1346) at com.isomorphic.datasource.DataSource.recordsFromXML(DataSource.java:1907) at com.isomorphic.taglib.WidgetXMLTag.toJS(WidgetXMLTag.java:148) at com.isomorphic.taglib.WidgetXMLTag.parseAndOutputErrors(WidgetXMLTag.java:125) at com.isomorphic.taglib.WidgetXMLTag.doAfterBody(WidgetXMLTag.java:78) at org.apache.jsp.materialPurchaseSearch_jsp._jspx_meth_isomorphic_005fXML_005f0(materialPurchaseSearch_jsp.java:704) at org.apache.jsp.materialPurchaseSearch_jsp._jspService(materialPurchaseSearch_jsp.java:115) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.cserver.saas.system.commons.filter.CASFilter.doFilter(CASFilter.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) .

      Finaly I found the reson of this error is AOP,if I got rid of AOP,it can works normally,How can I resolve ?
      Last edited by jazen; 18 Nov 2016, 02:07.

      Comment

      Working...
      X