You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rich M <ri...@moremagic.com> on 2011/05/13 22:43:58 UTC

Re: TAP5-920 rears it's head again in 5.2 with a twist

I've run into this issue now myself, was there ever a resolution to this 
or a workaround? As David said, supply an explicit value encoder isn't 
able to solve the issue for me either.

Thanks,
Rich

On 03/24/2011 10:52 PM, David Rees wrote:
> TAP5-920 has long been an issue for one of our applications which uses
> composite keys.
>
> https://issues.apache.org/jira/browse/TAP5-920
>
> In the past we have worked around the issue by providing an encoder
> with our affected loops.
>
> We are now working on upgrading from 5.1.0.5 to 5.2.4 and have run
> into a new problem:
>
> Even if we supply an encoder, the default encoder
> (HibernateEntityValueEncoder) gets used and the NPE is back.
>
> Below is a stack trace.  Suggestions?
>
> Caused by: java.lang.NullPointerException
> 	at org.apache.tapestry5.internal.hibernate.HibernateEntityValueEncoder.<init>(HibernateEntityValueEncoder.java:53)
> 	at org.apache.tapestry5.hibernate.HibernateModule$1.create(HibernateModule.java:104)
> 	at org.apache.tapestry5.internal.services.ValueEncoderSourceImpl.getValueEncoder(ValueEncoderSourceImpl.java:48)
> 	at $ValueEncoderSource_12eead93780.getValueEncoder($ValueEncoderSource_12eead93780.java)
> 	at org.apache.tapestry5.internal.services.ComponentDefaultProviderImpl.defaultValueEncoder(ComponentDefaultProviderImpl.java:124)
> 	at $ComponentDefaultProvider_12eead93782.defaultValueEncoder($ComponentDefaultProvider_12eead93782.java)
> 	at org.apache.tapestry5.corelib.components.Loop.defaultEncoder(Loop.java:304)
> 	at org.apache.tapestry5.corelib.components.Loop$MethodAccess_defaultEncoder_12eead93e34.invoke(Loop$MethodAccess_defaultEncoder_12eead93e34.java)
> 	at org.apache.tapestry5.internal.transform.ParameterWorker$InvokeParameterDefaultMethod.advise(ParameterWorker.java:95)
>
> -Dave
>
> ---------------------------------------------------------------------
> 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


Re: TAP5-920 rears it's head again in 5.2 with a twist

Posted by David Rees <dr...@gmail.com>.
On Fri, May 13, 2011 at 1:43 PM, Rich M <ri...@moremagic.com> wrote:
> I've run into this issue now myself, was there ever a resolution to this or
> a workaround? As David said, supply an explicit value encoder isn't able to
> solve the issue for me either.

My brute force workaround was to disable
tapestry.hibernate.provide-entity-value-encoders in
AppModule.contributeApplicationDefaults.

-Dave

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