RMI error: Java. RMI. unmarshalexception: Error unmarshaling return;

Source: Internet
Author: User

The RMI project reports that a class cannot be found. The information is as follows:

Java. RMI. unmarshalexception: Error unmarshaling return; Nested exception is:
Java. Lang. classnotfoundexception: COM. mchange. v2.resourcepool. cannotacquireresourceexception (no security manager: RMI Class Loader disabled)
At sun.rmi.transport.streamremotecall.exe cutecall (streamremotecall. Java: 227)
At sun. RMI. server. unicastref. Invoke (unicastref. Java: 142)
At java. RMI. server. remoteobjectinvocationhandler. invokeremotemethod (remoteobjectinvocationhandler. Java: 178)
At java. RMI. server. remoteobjectinvocationhandler. Invoke (remoteobjectinvocationhandler. Java: 132)
At $ proxy0.login (unknown source)
At com. thtf. Authentication. Action. loginaction. login (loginaction. Java: 73)
At com. thtf. Authentication. Action. loginaction. login (loginaction. Java: 57)
At com. thtf. Client. Client. login (client. Java: 35)
At com. thtf. Client. Client. Main (client. Java: 28)
Caused by: Java. Lang. classnotfoundexception: COM. mchange. v2.resourcepool. cannotacquireresourceexception (no security manager: RMI Class Loader disabled)
At sun. RMI. server. loaderhandler. loadclass (loaderhandler. Java: 375)
At sun. RMI. server. loaderhandler. loadclass (loaderhandler. Java: 165)
At java. RMI. server. rmiclassloader $2. loadclass (rmiclassloader. Java: 620)
At java. RMI. server. rmiclassloader. loadclass (rmiclassloader. Java: 247)
At sun. RMI. server. marshalinputstream. resolveclass (marshalinputstream. Java: 197)
At java. Io. objectinputstream. readnonproxydesc (objectinputstream. Java: 1575)
At java. Io. objectinputstream. readclassdesc (objectinputstream. Java: 1496)
At java. Io. objectinputstream. readordinaryobject (objectinputstream. Java: 1732)
At java. Io. objectinputstream. readobject0 (objectinputstream. Java: 1329)
At java. Io. objectinputstream. defaultreadfields (objectinputstream. Java: 1947)
At java. Io. objectinputstream. readserialdata (objectinputstream. Java: 1871)
At java. Io. objectinputstream. readordinaryobject (objectinputstream. Java: 1753)
At java. Io. objectinputstream. readobject0 (objectinputstream. Java: 1329)
At java. Io. objectinputstream. defaultreadfields (objectinputstream. Java: 1947)
At java. Io. objectinputstream. readserialdata (objectinputstream. Java: 1871)
At java. Io. objectinputstream. readordinaryobject (objectinputstream. Java: 1753)
At java. Io. objectinputstream. readobject0 (objectinputstream. Java: 1329)
At java. Io. objectinputstream. readobject (objectinputstream. Java: 351)
At sun.rmi.transport.streamremotecall.exe cutecall (streamremotecall. Java: 225)
... 8 more
Exception in thread "Main" com. thtf. RMI. Exception. loginexception: the login server verification fails. The cause of failure is as follows: Error unmarshaling return; Nested exception is:

Java. Lang. classnotfoundexception: COM. mchange. v2.resourcepool. cannotacquireresourceexception (no security manager: RMI Class Loader disabled)
At com. thtf. Authentication. Action. loginaction. login (loginaction. Java: 76)
At com. thtf. Authentication. Action. loginaction. login (loginaction. Java: 57)
At com. thtf. Client. Client. login (client. Java: 35)
At com. thtf. Client. Client. Main (client. Java: 28)

**************************************** **************************************** *******************
Solution
**************************************** **************************************** *******************
In myeclipse, use the shortcut key Ctrl + Shift + T to find out whether cannotacquireresourceexception exists. If it is not found, it means that this class does not exist. Just introduce the corresponding package.

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.