Causes and solutions for exceptions thrown on the server when the client in remoting calls the server Method

Source: Internet
Author: User

Everyone is familiar with structured exception handling methods. Recently I encountered a problem where I was practicing remtoting and putting the business logic on the server side for implementation. The client is mainly used to obtain data and Display Interfaces and data. It is a common layer-3 application, but some exceptions occur during debugging.

Debug the server (a solution) first, and then debug the client. The problem is that the client throws an exception on the server when calling the proxy object of the customs clearance service class. The strange thing is that exceptions cannot be captured on the client. How is it possible?

Does this disrupt the traditional exception handling mechanism? The client cannot capture exceptions thrown by the server, and thus cannot obtain the exception information that fails to be processed. Note that the exception here is only the exception provided by the system. There are no factors involved in the possibility of a custom exception that does not inherit remotingexception, as well as non-serialization. I think the exception classes defined by the system will certainly not involve these issues and cannot be propagated to the client.

I found some reasons on the Internet. It still does not work if all the mermerror settings are set. Eventually, a dude'sArticle. The server solution must beRun directlyProgramInstead of DEBUG. I tried it for a while.

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.