cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: [JXTemplate] - No exception showed using no valid chars.
Date Thu, 05 Feb 2004 19:35:22 GMT
Try:

${item['pac_descripción']}

As regards the blank page I just checked in a fix to catch TokenMgrError 
(which is an Error, not an Exception) in this case and wrap it in a 
SAXException.

I'm completely ignorant about non-ascii environments so I'm not sure if  
pac_descripción should be a legal Jexl identifier (is a legal Java 
identifier BTW?).

HTH,

Chris

Antonio Gallardo wrote:

>Hi:
>
>By error I wrote:
>
>${item.pac_descripción}
>
>(NOTE the "ó" or &oacute; char.
>
>IN that case JXTemplate does not throw any error, but silenty fail. The
>result is a blank page. Nothing in the catalina.out or Cocoon logs. The
>only log I found was in $TOMCAT/logs/localhost_log.{date}.txt. The
>exception is below.
>
>Best Regards,
>
>Antonio Gallardo
>
>org.apache.commons.jexl.parser.TokenMgrError: Lexical error at line 1,
>column 19.  Encountered: "\u00f3" (243), after : ""
>	at
>org.apache.commons.jexl.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:758)
>	at org.apache.commons.jexl.parser.Parser.jj_scan_token(Parser.java:3166)
>	at org.apache.commons.jexl.parser.Parser.jj_3R_57(Parser.java:2627)
>	at org.apache.commons.jexl.parser.Parser.jj_3R_38(Parser.java:2756)
>	at org.apache.commons.jexl.parser.Parser.jj_3R_22(Parser.java:2621)
>	at org.apache.commons.jexl.parser.Parser.jj_3_6(Parser.java:2673)
>	at org.apache.commons.jexl.parser.Parser.jj_3R_16(Parser.java:2715)
>	at org.apache.commons.jexl.parser.Parser.jj_3_2(Parser.java:2975)
>	at org.apache.commons.jexl.parser.Parser.jj_2_2(Parser.java:1989)
>	at org.apache.commons.jexl.parser.Parser.Statement(Parser.java:1503)
>	at org.apache.commons.jexl.parser.Parser.JexlScript(Parser.java:59)
>	at org.apache.commons.jexl.parser.Parser.parse(Parser.java:18)
>	at
>org.apache.commons.jexl.ExpressionFactory.createNewExpression(ExpressionFactory.java:123)
>	at
>org.apache.commons.jexl.ExpressionFactory.createExpression(ExpressionFactory.java:87)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator$TextEvent.<init>(JXTemplateGenerator.java:1219)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator$Characters.<init>(JXTemplateGenerator.java:1301)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator$Parser.flushChars(JXTemplateGenerator.java:2269)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator$Parser.addEvent(JXTemplateGenerator.java:2259)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator$Parser.endElement(JXTemplateGenerator.java:2333)
>	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
>Source)
>	at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>Source)
>	at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>Source)
>	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318)
>	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337)
>	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:284)
>	at
>org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2906)
>	at
>org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:574)
>	at
>org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
>	at
>org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:518)
>	at
>org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:155)
>	at
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
>	at
>org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:165)
>	at
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
>	at
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
>	at
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
>	at
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:136)
>	at
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:371)
>	at
>org.apache.cocoon.components.treeprocessor.TreeProcessor.handleCocoonRedirect(TreeProcessor.java:416)
>	at
>org.apache.cocoon.components.treeprocessor.TreeProcessor.access$000(TreeProcessor.java:101)
>	at
>org.apache.cocoon.components.treeprocessor.TreeProcessor$TreeProcessorRedirector.cocoonRedirect(TreeProcessor.java:577)
>	at
>org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:93)
>	at
>org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:275)
>	at
>org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:832)
>	at
>org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:1514)
>	at
>org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:306)
>	at inv6.invoke()
>
>  
>


Mime
View raw message