[jira] [Commented] (TRINIDAD-2377) surrogate characters in outputFormatted throws IllegalArgumentException
[ https://issues.apache.org/jira/browse/TRINIDAD-2377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629797#comment-13629797 ] Jeanne Waldman commented on TRINIDAD-2377: -- Changed code from // only increase i if a valid surrogate code point is returned if (Character.isSupplementaryCodePoint(surrogateCodePoint)) { buffIndex = _writeDecRef(out, buff, buffIndex, surrogateCodePoint); i++; } else { throw new IllegalArgumentException( _LOG.getMessage("INVALID_SURROGATE_CHAR", new Object[] { ch, surrogateCodePoint, i })); } to buffIndex = _writeDecRef(out, buff, buffIndex, surrogateCodePoint); // only increase i if a valid surrogate code point is returned if (Character.isSupplementaryCodePoint(surrogateCodePoint)) { i++; } else { // DO NOT BLOW UP. We have a bug in outputFormatted+surrogates, and we don't want to blow up. // blow up if invalid utf-16 characters encountered //throw new IllegalArgumentException( // _LOG.getMessage("INVALID_SURROGATE_CHAR", new Object[] { ch, surrogateCodePoint, i })); } > surrogate characters in outputFormatted throws IllegalArgumentException > --- > > Key: TRINIDAD-2377 > URL: https://issues.apache.org/jira/browse/TRINIDAD-2377 > Project: MyFaces Trinidad > Issue Type: Bug >Reporter: Jeanne Waldman >Assignee: Jeanne Waldman > Attachments: TRINIDAD-SurrogateOutputFormattedPatch.patch > > > > where > TestInput.surrogateValue is a surrogateValue, like > private String surrogateVal = "\ud840\udc00"; > public void setSurrogateVal(String surrogateVal) { > this.surrogateVal = surrogateVal; > } > public String getSurrogateVal() { > return surrogateVal; > The page shows up blank, and you get an IllegalArgumentException from > HTMLEscapes. outputText works fine. This is a regression caused by > MYFACES-3690 Trinidad doesn't support surrogate characters -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (TRINIDAD-2377) surrogate characters in outputFormatted throws IllegalArgumentException
Jeanne Waldman created TRINIDAD-2377: Summary: surrogate characters in outputFormatted throws IllegalArgumentException Key: TRINIDAD-2377 URL: https://issues.apache.org/jira/browse/TRINIDAD-2377 Project: MyFaces Trinidad Issue Type: Bug Reporter: Jeanne Waldman Assignee: Jeanne Waldman where TestInput.surrogateValue is a surrogateValue, like private String surrogateVal = "\ud840\udc00"; public void setSurrogateVal(String surrogateVal) { this.surrogateVal = surrogateVal; } public String getSurrogateVal() { return surrogateVal; The page shows up blank, and you get an IllegalArgumentException from HTMLEscapes. outputText works fine. This is a regression caused by MYFACES-3690 Trinidad doesn't support surrogate characters -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2377) surrogate characters in outputFormatted throws IllegalArgumentException
[ https://issues.apache.org/jira/browse/TRINIDAD-2377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeanne Waldman updated TRINIDAD-2377: - Status: Patch Available (was: Open) > surrogate characters in outputFormatted throws IllegalArgumentException > --- > > Key: TRINIDAD-2377 > URL: https://issues.apache.org/jira/browse/TRINIDAD-2377 > Project: MyFaces Trinidad > Issue Type: Bug >Reporter: Jeanne Waldman >Assignee: Jeanne Waldman > > > where > TestInput.surrogateValue is a surrogateValue, like > private String surrogateVal = "\ud840\udc00"; > public void setSurrogateVal(String surrogateVal) { > this.surrogateVal = surrogateVal; > } > public String getSurrogateVal() { > return surrogateVal; > The page shows up blank, and you get an IllegalArgumentException from > HTMLEscapes. outputText works fine. This is a regression caused by > MYFACES-3690 Trinidad doesn't support surrogate characters -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (MYFACES-3709) metadata - component with duplicate id
[ https://issues.apache.org/jira/browse/MYFACES-3709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leonardo Uribe resolved MYFACES-3709. - Resolution: Fixed Fix Version/s: 2.1.12 2.0.18 Assignee: Leonardo Uribe I have attached a patch with the correction. Thanks to Thomas Andraschko for provide the example. > metadata - component with duplicate id > -- > > Key: MYFACES-3709 > URL: https://issues.apache.org/jira/browse/MYFACES-3709 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.1.11 >Reporter: Thomas Andraschko >Assignee: Leonardo Uribe > Fix For: 2.0.18, 2.1.12 > > Attachments: MYFACES-3709.patch, my-webapp.7z > > > Just run the attached project. Following exception occurs: > java.lang.IllegalStateException: component with duplicate id "j_id__md_1" > found > at > org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:100) > at > org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116) > at > org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:110) > at > org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:82) > at > org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.saveView(DefaultFaceletsStateManagementStrategy.java:558) > at > org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:188) > at > org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:2052) > at > org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) > at > javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) > at > org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) > at > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) > This works fine if i remove the f:viewParam. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
ContextAwarePropertyNotWritableException does not overwrite getMessage()
Hi, while migrating our application from tobago 1.0 to 2.0 and jsf from 1.2 to 2.1 i got a ContextAwarePropertyNotWritableException with a wired message: org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotWritableException: javax.el.PropertyNotWritableException: Missing Resource: 'resolverNotWriteable' for Locale Deutsch (Deutschland) at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:161) at javax.faces.component.UIInput.updateModel(UIInput.java:406) Caused by: javax.el.PropertyNotWritableException: Missing Resource: 'resolverNotWriteable' for Locale Deutsch (Deutschland) at javax.el.ResourceBundleELResolver.setValue(ResourceBundleELResolver.java:79) at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:69) at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:237) at org.apache.el.parser.AstValue.setValue(AstValue.java:158) at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249) at org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.setValue(ContextAwareTagValueExpression.java:153) ... 35 more When debugging i found out that the ContextAwarePropertyNotWritableException holds the necessary information (the location, qName and expressionString) but doesn't overwrite the getMessage() method to provide this Information into the log file. Is there a reason not to overwrite the getMessage()? regards Volker Weber -- inexso - information exchange solutions GmbH Ofener Str. 30 | 26121 Oldenburg Tel.: +49 441 219 730 0 | FAX: +49 441 219 730 66 | eMail: v.we...@inexso.de Firmensitz: Oldenburg | Amtsgericht Oldenburg HRB 205251 Geschäftsführer: Stefan Schulte, Michael Terschüren
[jira] [Created] (MYFACES-3709) metadata - component with duplicate id
Thomas Andraschko created MYFACES-3709: -- Summary: metadata - component with duplicate id Key: MYFACES-3709 URL: https://issues.apache.org/jira/browse/MYFACES-3709 Project: MyFaces Core Issue Type: Bug Affects Versions: 2.1.11 Reporter: Thomas Andraschko Attachments: my-webapp.7z Just run the attached project. Following exception occurs: java.lang.IllegalStateException: component with duplicate id "j_id__md_1" found at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:100) at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:116) at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:110) at org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFaceletUtils.checkIds(CheckDuplicateIdFaceletUtils.java:82) at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.saveView(DefaultFaceletsStateManagementStrategy.java:558) at org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:188) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:2052) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) This works fine if i remove the f:viewParam. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira