You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/08/23 15:33:19 UTC

[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 
$LocaleSelectionFlags_36@41a0cda2[Home/$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(ClassFabImpl.java:278)
    at 
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(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(ExpressionCacheImpl.java:152)
    at 
org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115)
    at 
$ExpressionCache_11491e63db9.getCompiledExpression($ExpressionCache_11491e63db9.java)
    at 
org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134)
    at 
org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T4.1.2] Hivemind / OGNL error

Posted by #Cyrille37# <cy...@gmail.com>.
Marcus.Schulte@bmw.ch a écrit :
> The OGNL Expression-Compiler falls back from the new, byte-code
> generating mode to the old, interpreting mode when an error occurs.
>   
That why I get a well rendered page.

> 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.
>   
I'm using the Tapestry 4.1.2 release and its Ognl package version.
Should I try a more recent ognl version with T 4.1.2 ?
I'll try.

cyrille.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: [T4.1.2] Hivemind / OGNL error

Posted by Ma...@bmw.ch.
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:cyrille37@gmail.com] 
> 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 
> $LocaleSelectionFlags_36@41a0cda2[Home/$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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org