The OGNL Expression-Compiler falls back from the new, byte-code generating mode to the old, interpreting mode when an error occurs.
Are you using the very latest and greatest OGNL-version? At least, try version 2.7. If the error persists, try 2.7.1-SNAPSHOT. If it's still there you can file a bug for OGNL. > -----Original Message----- > From: #Cyrille37# [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 23, 2007 3:33 PM > To: Tapestry users > Subject: [T4.1.2] Hivemind / OGNL error > > Hello > > I come on a strange stuff. An ognl expression is well working > but I see a Hivemind exception in log. > > In a html file I affect a value to a property : > <span jwcid="@Any" > value="ognl:currentlocaleCode=page.engine.locale.language"/> > > The property is defined in the specification page : > <property name="currentlocaleCode" /> > > The result works: if I display the value of > "currentlocaleCode" I well get the current locale language > code <span jwcid="@Insert" value="ognl:currentlocaleCode" /> > > So all stuffs seems ok. But while I'm looking at log (in Eclipse > console) I can see that the expression evaluation throw a exception : > > 22953 [http-8080-2] ERROR > org.apache.tapestry.services.impl.HiveMindExpressionCompiler > - Error generating OGNL statements for expression > currentlocaleCode = page.engine.locale.language with root > [EMAIL PROTECTED]/$Util$LocaleSelectionFlags] > org.apache.hivemind.ApplicationRuntimeException: Unable to > add method void set(ognl.OgnlContext, java.lang.Object, > java.lang.Object) to class > $ASTAssign_11491e63e30: [source error] ; is missing > at > org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImp > l.java:278) > at > org.apache.tapestry.services.impl.HiveMindExpressionCompiler.c > ompileExpression(HiveMindExpressionCompiler.java:214) > at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498) > at ognl.Ognl.compileExpression(Ognl.java:141) > at > org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(Ex > pressionCacheImpl.java:152) > at > org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompi > ledExpression(ExpressionCacheImpl.java:115) > at > $ExpressionCache_11491e63db9.getCompiledExpression($Expression > Cache_11491e63db9.java) > at > org.apache.tapestry.binding.ExpressionBinding.resolveExpressio > n(ExpressionBinding.java:134) > at > org.apache.tapestry.binding.ExpressionBinding.getObject(Expres > sionBinding.java:125) > at > org.apache.tapestry.AbstractComponent.renderInformalParameters > (AbstractComponent.java:290) > at org.apache.tapestry.components.Any.renderComponent(Any.java:38) > > Any Idea ? > Why the page and property value are well render without a > exception page ? > > Cyrille > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]