"ObjID already in use" error occurs with Eclipse development RMI in linux-centos6.3 environment

Source: Internet
Author: User

Using eclipse to develop RMI under linux-centos6.3, launch the Tomcat service and discover "ObjID already in use" error. The log interception is as follows:

ERROR [Org.springframework.web.context.ContextLoader] context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Avmremoteservice ' ...

: Internal Error:objid already in use

analyzes the cause of the error, which should be attributed to the RMI common problem in the Linux environment, which may be the case with/etc/ The IP specified in the Hosts file is not the real ip,rmi of the current server and failed to register the service at initialization time.

Workaround:

Modify the/etc/hosts file to add a line to the file, as shown below,192.168.67.129  alf1 localhost localhost.localdomain Localhost4 Localhost4.localdomain4 on the line, or the/etc/hosts file in the default 127.0.0.1 changed to the current machine IP can!

127.0.0.1   alf1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1          localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.10.103  alf1 localhost localhost.localdomain localhost4 localhost4.localdomain4

After modification, restart the service successfully.

Append: Use hostname to view the host name.

This article is from the "Lendcode" blog, make sure to keep this source http://lendcode.blog.51cto.com/3532846/1642531

"ObjID already in use" error occurs with Eclipse development RMI in linux-centos6.3 environment

Related Article

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.