0 Replies Latest reply on Jun 7, 2011 2:38 AM by CH Srikanth

    org.apache.el.parser.ParseException: Encountered " <ILLEGAL_CHARACTER> "\'

    CH Srikanth Newbie

      Hi

      I am also facing same issue. Please let me know did you got the solution for this.

      We are migrating an application from WAS to JBoss EAP 5.0.

      The same el expression is working fine in Tomcat 5.0. or WebSphere 7.0.

       

      The error is:

      Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/xxx.jsp at line 27

      24:  {
      25:  %>
      26: <tagName:Set var="backgroundColor" value="#FFF3E7" />
      27: <tagName:Set var="backgroundColor"
      28:  value="${tagName:select('isXXUser##EFF7FF@@!isXXUser##${backgroundColor}', pageContext)}" />
      29: <feba2:Set var="backgroundColor"
      30:  value="${tagName:select('isYYUser##FFFAEB@@!isYYUser##${backgroundColor}', pageContext)}" />


      Stacktrace:
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      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:638)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
      ... 37 more
      Caused by: javax.el.ELException: Error Parsing: ${feba2:select('isXXUser##EFF7FF@@!isXXUser##${backgroundColor}
      at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:125)
      at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:150)
      at org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:194)
      at org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
      at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924)
      at org.apache.jsp.jsp.user.DashboardFG.CorporateUserDashboard_jsp._jspx_meth_feba2_005fSet_005f42(CorporateUserDashboard_jsp.java:11164)
      at org.apache.jsp.jsp.user.DashboardFG.CorporateUserDashboard_jsp._jspService(CorporateUserDashboard_jsp.java:4971)
      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:369)
      ... 47 more
      Caused by: org.apache.el.parser.ParseException: Encountered " <ILLEGAL_CHARACTER> "\' "" at line 1, column 16.
      Was expecting one of:
          <INTEGER_LITERAL> ...
          <FLOATING_POINT_LITERAL> ...
          <STRING_LITERAL> ...
          "true" ...
          "false" ...
          "null" ...
          "(" ...
          ")" ...
          "!" ...
          "not" ...
          "empty" ...
          "-" ...
          <IDENTIFIER> ...
         
      at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2142)
      at org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:2024)
      at org.apache.el.parser.ELParser.Function(ELParser.java:1207)
      at org.apache.el.parser.ELParser.NonLiteral(ELParser.java:1114)
      at org.apache.el.parser.ELParser.ValuePrefix(ELParser.java:1016)
      at org.apache.el.parser.ELParser.Value(ELParser.java:965)
      at org.apache.el.parser.ELParser.Unary(ELParser.java:947)
      at org.apache.el.parser.ELParser.Multiplication(ELParser.java:711)
      at org.apache.el.parser.ELParser.Math(ELParser.java:631)
      at org.apache.el.parser.ELParser.Compare(ELParser.java:443)
      at org.apache.el.parser.ELParser.Equality(ELParser.java:337)
      at org.apache.el.parser.ELParser.And(ELParser.java:281)
      at org.apache.el.parser.ELParser.Or(ELParser.java:225)
      at org.apache.el.parser.ELParser.Choice(ELParser.java:182)
      at org.apache.el.parser.ELParser.Expression(ELParser.java:174)
      at org.apache.el.parser.ELParser.DynamicExpression(ELParser.java:146)
      at org.apache.el.parser.ELParser.CompositeExpression(ELParser.java:43)
      at org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:93)
      ... 56 more