The following error occurs when flex calls Java: Can't invoke method "×××", and the fault code is server. Resource. unavailable.
Generally, this error is caused by the failure to find the corresponding Java method. The following solutions are available:
1.Classes that are not defined or defined in the remoting-config.xml are incorrect;
2.There must be no parameter constructor in the background Java class.To write a constructor with parameters, you must also write a non-parameter function.. Otherwise, it occurs when flexfactory searches for background classes because the instance cannot be created;
3. The method of the background Java class must be of the Public type;
3.Because it is combined with spring, it must be defined in application _ *. xml.
P.s. I used the second method to solve my problem, but it is strange that I have several other methods with parameters that do not have a corresponding non-parameter method, and can also be called normally, we hereby record that the study is to be continued.