C3P0 failed to get local inetaddress for Vmid solution under Linux

Source: Internet
Author: User
Tags hostname lookup nameserver

Com.mchange.v2.c3p0.impl.C3P0ImplUtils Generatevmid Info: Failed to get local inetaddress for VMID. This was unlikely to matter. At all. We ll add some extra randomnessjava.net.UnknownHostException:Along.Fedora:Along.Fedora at Java.net.InetAddress.getLo Calhost (inetaddress.java:1353) at Com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId (c3p0implutils.java:120) at Com.mchange.v2.c3p0.impl.c3p0implutils.<clinit> (c3p0implutils.java:98) at Com.mchange.v2.c3p0.impl.poolbackeddatasourcebase.<init> (poolbackeddatasourcebase.java:227) at Com.mchange.v2.c3p0.impl.abstractpoolbackeddatasource.<init> (abstractpoolbackeddatasource.java:62) at Com.mchange.v2.c3p0.combopooleddatasource.<init> (combopooleddatasource.java:109) at Com.mchange.v2.c3p0.combopooleddatasource.<init> (combopooleddatasource.java:105) at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (Nativeconstructoraccessorimpl.java:39) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance ( delegatingconstructoraccessorimpl.java:27) at Java.lang.reflect.Constructor.newInstance (constructor.java:513) at Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:100) Mainly because the system did not find the host name Along.fedora corresponding IP, modify the Linux host file can be. The following steps are followed: vi/etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 Along.fedora can be saved. When Linux looks for a domain name, it usually refers to finding the file/etc/hosts and then requesting it from the DNS server when it is not found. Several files related to Linux in host are as follows:/etc/host.conf function: Specifies the hostname lookup method, which usually refers to finding the file/etc/hosts, and then requesting the DNS server when it is not found. For most users, this file content is not changed. Linux:/etc/host.conf file Contents order hosts, Bindmulti on/etc/resolv.conf file function: DNS client configuration file, set DNS server IP address and DNS domain name related files:/etc/ host.conf file format: DomainName domain name search domain nameserver primary_dns_server_ip_addressnameserver second_dns_server_ip_ Address where DomainName and search can exist at the same time, or only one; nameserver can specify multiple/etc/hosts#/etc/hosts# file formats: IPaddress hostname aliases# File features : Provide the host name to the IP address of the corresponding relationship, it is recommended to add the host you often use to this file, you can also add a machine without DNS records to this file, # This will facilitate the network application 127.0.0.1 localhost Localhost.localdomain  

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.