Hey guys

I just spent a whole day on a issue, where a service call in a page class
ended in a "java.lang.LinkageError: loader constraint violation the class
loader {...} of the current class, MyPage, and the class loader {...} for
resolved class, MyService, have different Class objects for the type used
in the signature"

What I did was totally stupid (at least in hindsight): I accidentally
passed the page object to the service:

MyPage{
    Object onSuccess(){
        return myService.doStuff(this);
    }
}

It's no suprise that that wouldn't work when accustomed to J2EE and remote
stuff, althrough I didn't expect that to happen in T5.3.



The whole point of this mail:
DO NOT pass your page object to the service.

Cheers
Beat

Reply via email to