EL Expression Unbalanced under Java 6

  • From: "Preuss, Stefan" <Stefan.Preuss@...>
  • To: <users@...>
  • Subject: EL Expression Unbalanced under Java 6
  • Date: Thu, 25 Sep 2008 10:09:00 +0200
  • Importance: normal
  • Mailing-list: contact users-help@...; run by ezmlm
  • Priority: normal

Hi,
 
I'm using jsf-facelets 1.1.14. The following code works fine when the servlet 
container (tomcat or weblogic) runs with JDK 1.5:
 
ConfigureTable.xhtml:
---snip---
<q:twoListSelection value="#{configureTableView.edit.selected}"
        leftListboxHeader="#{dialog['configure.availitems']}"
        rightListboxHeader="#{dialog['configure.selecteditems']}"
        size="15" addText="#{rb['commonbutton.add']}"
        addAllText="#{rb['commonbutton.addAll']}"
        removeText="#{rb['commonbutton.remove']}"
        removeAllText="#{rb['commonbutton.removeAll']}"
        moveUpText="#{rb['commonbutton.up']}"
        moveDownText="#{rb['commonbutton.down']}" id="columnsMany"
        buttonClass="buttons" headerClass="standard" listClass="list">
        <f:selectItems value="#{configureTableView.edit.items}"
                id="listitems" />
</q:twoListSelection>
---snip---

But when I switch to Java 6 I get the following Exception:

/xhtml/config/ConfigureTable.xhtml @40,72 
moveUpText="#{rb['commonbutton.down'" EL Expression Unbalanced: ... 
#{rb['commonbutton.down'

com.sun.facelets.FaceletViewHandler handleRenderException
SCHWERWIEGEND: Error Rendering View[/ConfigureTableView.xhtml]
com.sun.facelets.tag.TagAttributeException: 
/xhtml/config/ConfigureTable.xhtml @40,72 
moveUpText="#{rb['commonbutton.down'" EL Expression Unbalanced: ... 
#{rb['commonbutton.down'
        at com.sun.facelets.tag.TagAttribute.<init>(TagAttribute.java:59)
        at 
com.sun.facelets.compiler.SAXCompiler$CompilationHandler.createAttributes(SAXCompiler.java:92)
        at 
com.sun.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:194)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
        at 
com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:232)
        at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
        at 
com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
        at 
com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
        at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:293)
        at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
        at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
        at 
com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
        at 
com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
        at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
        at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)
        at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)
        at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
        at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
        at 
com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
        at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
        at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
        at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
        at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
        at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
        at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
        at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
        at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)
        at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
        at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
        at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
        at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
        at 
com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
        at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
        at teamdev.jsf.cc.renderView(SourceFile:45)
        at teamdev.jsf.aq.renderView(SourceFile:408)
        at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at teamdev.jsf.util.ResourceFilter.doFilter(SourceFile:92)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.el.ELException: EL Expression Unbalanced: ... 
#{rb['commonbutton.down'
        at com.sun.facelets.el.ELText.findVarLength(ELText.java:385)
        at com.sun.facelets.el.ELText.parse(ELText.java:330)
        at com.sun.facelets.el.ELText.parse(ELText.java:282)
        at com.sun.facelets.el.ELText.isLiteral(ELText.java:267)
        at com.sun.facelets.tag.TagAttribute.<init>(TagAttribute.java:57)
        ... 68 more

It seems that something goes wrong with the SAXParser in JDK 6.
* When I modify my page and change 'commonbutton.down' to 'commonbutton.up' 
it works.
* It also works when I change 'commonbutton.up' to 'commonbutton.down'
* Even if I simply remove one attribute line (addAllText, removeAllText... 
whatever), it works!

Do you have any idea what is going wrong here?

Thanks in advance!
Stefan
________________________________________________________________________
PROSTEP GIDA GmbH, Albert-Einstein-Straße 16, D-12489 Berlin
HR: Amtsgericht Berlin-Charlottenburg, HRB 36327
Geschäftsführung: Dr. Lutz Blencke, Dr. Norbert Lotter, Dr. Rainer Bugow
________________________________________________________________________





EL Expression Unbalanced under Java 6

Preuss, Stefan 09/25/2008
Terms of Use; Privacy Policy; Copyright ©2013-2017 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close