Pedro Lucas
unread,May 10, 2011, 9:48:51 AM5/10/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dpHibernate
I have two classes, for example:
Country and FrDepartement.
Each Country has many FrDepartement Lazy mode.
I am using Tomcat 7, BlazeDs4, DpHibernate 2.0 RC6, Spring 3.
When I get all the Country by the method: getCountry.
Returns the list of Country, include each one a list FrDepartement on
lazy mode.
When I send to the Country setCountry method, it returns the error in
Fllex:
"Fault When loading data: flex.messaging.MessageException: Can not
invoke method 'setCountry. " 2 But a sit arguments Were Were expected.
"
And in Java:
After the error it calls the SQL to load all FrDepartaments:
"
INFO org.springframework.flex.servlet.MessageBrokerHandlerAdapter -
Channel endpoint my-amf received request.
{operation})****************loadProxyBatch
{deserialize} 2
Hibernate:
select
this_.id_fr_departement as id1_1_1_,
this_.fk_country as fk3_1_1_,
this_.name_departement as name2_1_1_,
country2_.id_country as id1_0_0_,
country2_.name_country as name2_0_0_
from
addfr.fr_departement this_
left outer join
addfr.country country2_
on this_.fk_country=country2_.id_country
where
this_.id_fr_departement in (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
{invoke} 320
{serialize} 16
"
INFO org.springframework.flex.servlet.MessageBrokerHandlerAdapter -
Channel endpoint my-amf received request.
{operation})****************setCountry
flex.messaging.MessageException: Cannot invoke method 'setCountry'. 2
arguments were sent but 1 were expected.
at
flex.messaging.util.MethodMatcher.methodNotFound(MethodMatcher.java:
394)
at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:
172)
at
flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:
405)
at
org.dphibernate.adapters.RemotingAdapter.superInvoke(RemotingAdapter.java:
73)
at
org.dphibernate.serialization.HibernateDeserializer.invokeLoad(HibernateDeserializer.java:
171)
...
"
Am I missing something?