Re: Unknown beaneditform save exception
I added @Inject private TypeCoercer typeCoercer; and change the method to return new EnumValueEncoderUserRole(typeCoercer, UserRole.class); that seems to resolve the NPE issue. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Unknown-beaneditform-save-exception-tp4956725p4966622.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Unknown beaneditform save exception
Could the following codes cause the exception? public class UserSave { ... public ValueEncoder getEncoder() { return new EnumValueEncoder(null, UserRole.class); } If so, how do I need to change it to avoid the NPE? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Unknown-beaneditform-save-exception-tp4956725p4965565.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Unknown beaneditform save exception
I used rc2, it gave the same exception. What else I could do? :( -- View this message in context: http://tapestry.1045711.n5.nabble.com/Unknown-beaneditform-save-exception-tp4956725p4962763.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Unknown beaneditform save exception
On Tue, 01 Nov 2011 22:18:04 -0200, TG tapestry...@hotmail.com wrote: Caused by: java.lang.NullPointerException at org.apache.tapestry5.util.EnumValueEncoder.toValue(EnumValueEncoder.java:51) Weird . . . Any idea if this is an existing issue with Tapestry 5.3 beta 18. Please try with the latest beta. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Unknown beaneditform save exception
by: org.apache.tapestry5.ioc.internal.util.TapestryException [at classpath:app/pages/UserSave.tml, line 18] at org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:675) at org.apache.tapestry5.corelib.components.Form.advised$onAction_125243979eba1f47(Form.java:525) at org.apache.tapestry5.corelib.components.Form$Invocation_onAction_125243979eba1f46.proceedToAdvisedMethod(Unknown Source) at org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84) at org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37) at org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86) at org.apache.tapestry5.corelib.components.Form.onAction(Form.java) at org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form.java) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:924) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1099) ... 87 more Caused by: java.lang.NullPointerException at org.apache.tapestry5.util.EnumValueEncoder.toValue(EnumValueEncoder.java:51) at org.apache.tapestry5.util.EnumValueEncoder.toValue(EnumValueEncoder.java:24) at org.apache.tapestry5.corelib.components.Checklist.processSubmission(Checklist.java:173) at org.apache.tapestry5.corelib.base.AbstractField.processSubmission(AbstractField.java:193) at org.apache.tapestry5.corelib.base.AbstractField.access$100(AbstractField.java:37) at org.apache.tapestry5.corelib.base.AbstractField$ProcessSubmission.execute(AbstractField.java:95) at org.apache.tapestry5.corelib.base.AbstractField$ProcessSubmission.execute(AbstractField.java:89) at org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:664) ... 96 more Any idea if this is an existing issue with Tapestry 5.3 beta 18. Thanks! TG -- View this message in context: http://tapestry.1045711.n5.nabble.com/Unknown-beaneditform-save-exception-tp4956725p4956725.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org