Hi Dean!

Normally this exception  occurs if you don't wrap your manager with an
appropriate interface.

The $Proxy object is the Proxy generated by Spring and wrapped around your
manager to execute AOP related stuff like transaction management etc.
It's normally hidden behind the interface...

Bye,

Peter

-----Ursprüngliche Nachricht-----
Von: Dean Jackson [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 22. Februar 2007 22:28
An: [email protected]
Betreff: [appfuse-user] value of type [$Proxy24]?


I'm trying to run the Controller tests from the tutorial.  I used 'Food'
instead of 'Person', in all cases.

When the tests run, I'm getting:

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'foodFormController' defined in ServletContext resource
[/WEB-INF/dispatcher-servlet.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy24] to required type
[org.appfuse.service.GenericManager] for property 'foodManager'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type [$Proxy24] to required type [org.appfuse.service.GenericManager] for
property 'foodManager': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [$Proxy24] to required type
[org.appfuse.service.GenericManager] for property 'foodManager'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type [$Proxy24] to required type [org.appfuse.service.GenericManager] for
property 'foodManager': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type
[$Proxy24] to required type [org.appfuse.service.GenericManager] for
property 'foodManager': no matching editors or conversion strategy found

What am I missing?  Is it expecting a generic DAO/Manager?  How do I plug in
a non-generic, which is what the tutorial has helped me build?  Or is it
something else entirely?  And what the heck is [$Proxy24]?  If that gave me
a value, I should be able to debug this farther.
--
View this message in context:
http://www.nabble.com/value-of-type--%24Proxy24---tf3275374s2369.html#a91087
05
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23.02.2007
04:39
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/698 - Release Date: 23.02.2007
04:39
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to