One of Flex & JAVA communication errors: Server. Resource. unavailable

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.