[jira] [Commented] (MYFACES-4281) tag parsing error

2019-02-07 Thread Leonardo Uribe (JIRA)


[ 
https://issues.apache.org/jira/browse/MYFACES-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763148#comment-16763148
 ] 

Leonardo Uribe commented on MYFACES-4281:
-

Facelets compiler cannot process other namespaces like that one. It tries to 
check if the namespace is used for facelets tags and just fail.

The compiler was not designed to process that, so it is not a bug by itself. 
The only way to fix it is create a tag that can handle mathml or something like 
that, or teach the compiler how to detect and process these kind of namespaces. 

 

> tag parsing error
> -
>
> Key: MYFACES-4281
> URL: https://issues.apache.org/jira/browse/MYFACES-4281
> Project: MyFaces Core
>  Issue Type: Bug
>Reporter: maurel
>Priority: Major
> Attachments: Bildschirmfoto 2019-02-06 um 17.08.30.png
>
>
> see: [mailing 
> list|http://mail-archives.apache.org/mod_mbox/myfaces-users/201901.mbox/%3C371d7273-62ee-0279-2866-5614d72b0460%40gmail.com%3E]
> Using Tobago 4.3.0, I see the below error when I use the following xhtml 
> page. I tried to make this page as small as possible to reproduce the error.
> If I remove one of the  group the error is removed.
> I work on windows 10 and both firefox or opera have the same behaviour.
> Could you please advice or correct me ?
> Regards
> xhtml page:
> ---
> 
> http://java.sun.com/jsf/facelets; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema; 
> xmlns:f="http://java.sun.com/jsf/core; xmlns="http://www.w3.org/1999/xhtml;
>   xmlns:tc="http://myfaces.apache.org/tobago/component; 
> xmlns:xhtml="http://www.w3.org/1999/xhtml;
>  >
>   
>
> 
>  http://www.w3.org/1998/Math/MathML; >
>N
> 
> 
> nombre
> 
>  http://www.w3.org/1998/Math/MathML;>
>C
> 
> 
> constante
> 
>  http://www.w3.org/1998/Math/MathML;>
>   σ
> 
> 
> étendue
>
>   
> 
> ERROR:
> -
> janv. 25, 2019 5:50:57 PM 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper 
> endElement
> GRAVE: Element end with name='HTML' doesn't match with top element on 
> the stack='BODY'.
> java.lang.IllegalArgumentException
>  at 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper.endElement(DebugResponseWriterWrapper.java:226)
>  at 
> org.apache.myfaces.tobago.internal.renderkit.renderer.PageRenderer.encodeEnd(PageRenderer.java:366)
>  at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1897)
>  at 
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:315)
>  at 
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:73)
>  at 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:117)
>  at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:266)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:206)
>  at 
> org.apache.tomee.myfaces.TomEEWorkaroundFacesServlet.service(TomEEWorkaroundFacesServlet.java:47)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.myfaces.tobago.facelets.FixCharacterEncodingFilter.doFilter(FixCharacterEncodingFilter.java:54)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> 

[jira] [Comment Edited] (MYFACES-4281) tag parsing error

2019-02-07 Thread Thomas Andraschko (JIRA)


[ 
https://issues.apache.org/jira/browse/MYFACES-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763141#comment-16763141
 ] 

Thomas Andraschko edited comment on MYFACES-4281 at 2/7/19 10:54 PM:
-

The "compiliation" is done in the 
org.apache.myfaces.view.facelets.compiler.SAXCompiler.
 If you debug e.g. #startElement, you will see the parsed html tags and how 
everything is constructed.

I also don't know the implementation more detailed.
 Maybe only [~lu4242] can help.

It's definitely caused by the xmlns="http://www.w3.org/1998/Math/MathML;.
Not even sure if it's 100% valid.


was (Author: tandraschko):
The "compiliation" is done in the 
org.apache.myfaces.view.facelets.compiler.SAXCompiler.
If you debug e.g. #startElement, you will see the parsed html tags and how 
everything is constructed.



I also don't know the implementation more detailed.
 Maybe only [~lu4242] can help.

> tag parsing error
> -
>
> Key: MYFACES-4281
> URL: https://issues.apache.org/jira/browse/MYFACES-4281
> Project: MyFaces Core
>  Issue Type: Bug
>Reporter: maurel
>Priority: Major
> Attachments: Bildschirmfoto 2019-02-06 um 17.08.30.png
>
>
> see: [mailing 
> list|http://mail-archives.apache.org/mod_mbox/myfaces-users/201901.mbox/%3C371d7273-62ee-0279-2866-5614d72b0460%40gmail.com%3E]
> Using Tobago 4.3.0, I see the below error when I use the following xhtml 
> page. I tried to make this page as small as possible to reproduce the error.
> If I remove one of the  group the error is removed.
> I work on windows 10 and both firefox or opera have the same behaviour.
> Could you please advice or correct me ?
> Regards
> xhtml page:
> ---
> 
> http://java.sun.com/jsf/facelets; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema; 
> xmlns:f="http://java.sun.com/jsf/core; xmlns="http://www.w3.org/1999/xhtml;
>   xmlns:tc="http://myfaces.apache.org/tobago/component; 
> xmlns:xhtml="http://www.w3.org/1999/xhtml;
>  >
>   
>
> 
>  http://www.w3.org/1998/Math/MathML; >
>N
> 
> 
> nombre
> 
>  http://www.w3.org/1998/Math/MathML;>
>C
> 
> 
> constante
> 
>  http://www.w3.org/1998/Math/MathML;>
>   σ
> 
> 
> étendue
>
>   
> 
> ERROR:
> -
> janv. 25, 2019 5:50:57 PM 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper 
> endElement
> GRAVE: Element end with name='HTML' doesn't match with top element on 
> the stack='BODY'.
> java.lang.IllegalArgumentException
>  at 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper.endElement(DebugResponseWriterWrapper.java:226)
>  at 
> org.apache.myfaces.tobago.internal.renderkit.renderer.PageRenderer.encodeEnd(PageRenderer.java:366)
>  at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1897)
>  at 
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:315)
>  at 
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:73)
>  at 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:117)
>  at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:266)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:206)
>  at 
> org.apache.tomee.myfaces.TomEEWorkaroundFacesServlet.service(TomEEWorkaroundFacesServlet.java:47)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.myfaces.tobago.facelets.FixCharacterEncodingFilter.doFilter(FixCharacterEncodingFilter.java:54)
>  at 
> 

[jira] [Comment Edited] (MYFACES-4281) tag parsing error

2019-02-07 Thread Thomas Andraschko (JIRA)


[ 
https://issues.apache.org/jira/browse/MYFACES-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763141#comment-16763141
 ] 

Thomas Andraschko edited comment on MYFACES-4281 at 2/7/19 10:47 PM:
-

The "compiliation" is done in the 
org.apache.myfaces.view.facelets.compiler.SAXCompiler.
If you debug e.g. #startElement, you will see the parsed html tags and how 
everything is constructed.



I also don't know the implementation more detailed.
 Maybe only [~lu4242] can help.


was (Author: tandraschko):
The startpoint is probably somwhere in the 
org.apache.myfaces.view.facelets.compiler.Compiler

I also don't know the implementation.
Maybe only [~lu4242] can help.

> tag parsing error
> -
>
> Key: MYFACES-4281
> URL: https://issues.apache.org/jira/browse/MYFACES-4281
> Project: MyFaces Core
>  Issue Type: Bug
>Reporter: maurel
>Priority: Major
> Attachments: Bildschirmfoto 2019-02-06 um 17.08.30.png
>
>
> see: [mailing 
> list|http://mail-archives.apache.org/mod_mbox/myfaces-users/201901.mbox/%3C371d7273-62ee-0279-2866-5614d72b0460%40gmail.com%3E]
> Using Tobago 4.3.0, I see the below error when I use the following xhtml 
> page. I tried to make this page as small as possible to reproduce the error.
> If I remove one of the  group the error is removed.
> I work on windows 10 and both firefox or opera have the same behaviour.
> Could you please advice or correct me ?
> Regards
> xhtml page:
> ---
> 
> http://java.sun.com/jsf/facelets; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema; 
> xmlns:f="http://java.sun.com/jsf/core; xmlns="http://www.w3.org/1999/xhtml;
>   xmlns:tc="http://myfaces.apache.org/tobago/component; 
> xmlns:xhtml="http://www.w3.org/1999/xhtml;
>  >
>   
>
> 
>  http://www.w3.org/1998/Math/MathML; >
>N
> 
> 
> nombre
> 
>  http://www.w3.org/1998/Math/MathML;>
>C
> 
> 
> constante
> 
>  http://www.w3.org/1998/Math/MathML;>
>   σ
> 
> 
> étendue
>
>   
> 
> ERROR:
> -
> janv. 25, 2019 5:50:57 PM 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper 
> endElement
> GRAVE: Element end with name='HTML' doesn't match with top element on 
> the stack='BODY'.
> java.lang.IllegalArgumentException
>  at 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper.endElement(DebugResponseWriterWrapper.java:226)
>  at 
> org.apache.myfaces.tobago.internal.renderkit.renderer.PageRenderer.encodeEnd(PageRenderer.java:366)
>  at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1897)
>  at 
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:315)
>  at 
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:73)
>  at 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:117)
>  at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:266)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:206)
>  at 
> org.apache.tomee.myfaces.TomEEWorkaroundFacesServlet.service(TomEEWorkaroundFacesServlet.java:47)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.myfaces.tobago.facelets.FixCharacterEncodingFilter.doFilter(FixCharacterEncodingFilter.java:54)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
>  at 
> 

[jira] [Commented] (MYFACES-4281) tag parsing error

2019-02-07 Thread Thomas Andraschko (JIRA)


[ 
https://issues.apache.org/jira/browse/MYFACES-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16763141#comment-16763141
 ] 

Thomas Andraschko commented on MYFACES-4281:


The startpoint is probably somwhere in the 
org.apache.myfaces.view.facelets.compiler.Compiler

I also don't know the implementation.
Maybe only [~lu4242] can help.

> tag parsing error
> -
>
> Key: MYFACES-4281
> URL: https://issues.apache.org/jira/browse/MYFACES-4281
> Project: MyFaces Core
>  Issue Type: Bug
>Reporter: maurel
>Priority: Major
> Attachments: Bildschirmfoto 2019-02-06 um 17.08.30.png
>
>
> see: [mailing 
> list|http://mail-archives.apache.org/mod_mbox/myfaces-users/201901.mbox/%3C371d7273-62ee-0279-2866-5614d72b0460%40gmail.com%3E]
> Using Tobago 4.3.0, I see the below error when I use the following xhtml 
> page. I tried to make this page as small as possible to reproduce the error.
> If I remove one of the  group the error is removed.
> I work on windows 10 and both firefox or opera have the same behaviour.
> Could you please advice or correct me ?
> Regards
> xhtml page:
> ---
> 
> http://java.sun.com/jsf/facelets; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema; 
> xmlns:f="http://java.sun.com/jsf/core; xmlns="http://www.w3.org/1999/xhtml;
>   xmlns:tc="http://myfaces.apache.org/tobago/component; 
> xmlns:xhtml="http://www.w3.org/1999/xhtml;
>  >
>   
>
> 
>  http://www.w3.org/1998/Math/MathML; >
>N
> 
> 
> nombre
> 
>  http://www.w3.org/1998/Math/MathML;>
>C
> 
> 
> constante
> 
>  http://www.w3.org/1998/Math/MathML;>
>   σ
> 
> 
> étendue
>
>   
> 
> ERROR:
> -
> janv. 25, 2019 5:50:57 PM 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper 
> endElement
> GRAVE: Element end with name='HTML' doesn't match with top element on 
> the stack='BODY'.
> java.lang.IllegalArgumentException
>  at 
> org.apache.myfaces.tobago.internal.webapp.DebugResponseWriterWrapper.endElement(DebugResponseWriterWrapper.java:226)
>  at 
> org.apache.myfaces.tobago.internal.renderkit.renderer.PageRenderer.encodeEnd(PageRenderer.java:366)
>  at 
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:675)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:555)
>  at 
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551)
>  at 
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1897)
>  at 
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:315)
>  at 
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:73)
>  at 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:117)
>  at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:266)
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:206)
>  at 
> org.apache.tomee.myfaces.TomEEWorkaroundFacesServlet.service(TomEEWorkaroundFacesServlet.java:47)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:65)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.myfaces.tobago.facelets.FixCharacterEncodingFilter.doFilter(FixCharacterEncodingFilter.java:54)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
>  at 
>