Category Archives: How to Fix

Solution of server startup timeout in eclipse

Eclipse Server boot timeout solution
Server Tomcat V8.5 at localhost was unable to start within 45 seconds. If the Server requires more time, try increasing the timeout in the Server editor. Server Tomcat V8.5 at localhost was unable to start within 45 seconds
Solution:

    double-click the server
    find Timeouts – start, set up the server startup time restart the server is ok
    Welcome to scan the code and follow our QQ group or log in bilibili. Follow Bing Cola and share and communicate with us about front-end, back-end and big data development

Common faults and solutions of sylixos IDE (1)

Fault description
New notebook (Lenovo new Air14), the system updated to the latest win10-1909, the new installation of IDE flagship version (3.9.10)
will be other computer normal engineering copy over, compiler report error. “Arm-sylixos-eabi-lzocom. exe application error”
after closing the error, can continue to compile, and finally can compile.



Solution:
After loading vc2010_redist_x86.exe, the problem no longer appears.
IDE later versions will no longer have this problem.

The solution of multiple markers at this line @ override

Using Eclipse for project development, adding @Override before a method in an implementation class indicates a “Multiple Markers at this line” error. The problem is described below
Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
plements. Multiple Markers at this line
– The Method getStudentById (String) of type StudentBeanImpl must override a superclass method
-implements mgr.jc.student.service.IStudentBean.getStudentByID

Reason for this problem: JDK1.5 does not support this notation. Implementing interface methods requires overriding abstract methods.
The solutions to the above problems are as follows:
Method 1. Select Eclipse Window→Preferences→Java→Compiler and change the Compiler Compliance Level from 1.5 to above 1.6.

Right-click on Project and select the last Properties. Select the Java Compiler on the left, check the box inside, and change the Java Editor version to 1.6.

Method 3. Right-click the JRE System Library[javase-1.5]→Properties under Project, and select “javase-1.6 (jdk1.6.0_10)” and click OK.

All the above three methods can solve the problem mentioned in the question, you can choose the corresponding solution according to your own habits.
 

Solutions to network connection problems in Ubuntu 16.04.3

Ubuntu 16.04 network problem solving
Background:
Recently, we need to use Ubuntu16.04 version to build Huawei’s Mind Studio platform, and there is a problem of blocked network.
Solution process:
First I checked my virtual machine network Settings to see if there was anything wrong with the network Settings

Then I started looking for the problem in the Ubuntu network Settings and entered ifconfig in the terminal to see if the IP card information was working properly.

ah

VirtualBox Failed to start LSB:Bring up/down Networking problem

Background:
Static (BOOTPROTO=static # static address protocol)

When using Service Restart Network, you cannot restart the network.

Restarting network (via systemctl): Job for network.service failed. See *systemctl status network.service* and *journalctl -xn* for details.

2. According to the prompt use systemctl status network. The service to check the detailed error message:

 network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-03-13 23:24:37 CST; 16s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2878 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 network[2878]: RTNETLINK answers: File exists
Mar 13 23:24:37 centos7 systemd[1]: network.service: control process exited, code=exited status=1
Mar 13 23:24:37 centos7 systemd[1]: Failed to start LSB: Bring up/down networking.
Mar 13 23:24:37 centos7 systemd[1]: Unit network.service entered failed state.
Mar 13 23:24:37 centos7 systemd[1]: network.service failed.

LSB: A set of standard specifications for Linux. Can make Linux conform to software architecture, or file system architecture standard specifications.
If you make sure your network card configuration information is correct (/etc/sysconfig/network-scripts/ifcfg-xxx), and most of the methods on the web are overwritten, such as:

    Add the MAC address in the configuration file (/etc/sysconfig/network-scripts/ifcfg-xxx)

    HWADDR=08:00:27:8c:4d:46

    Close the NetworkManager configuration DNS and restart……

Try turning on the Ethernet configuration when installing Linux CentOS, as shown below:

Turn on the Internet


After the installation will find, magically effective O(∩_∩)O ha ~. (Mine is like this)
 
 
 
 
 
 
 
 
 
 
 
 
 

The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)


>
> Services.msc (open service) –>; Find MySQL in the services list –>; Right-click MySQL and click Start
However, sometimes you have installed MySQL, but there is no MySQL in the service list. What can you do?

(1) Open CMD (run C:\Windows\System32\cmd.exe as an administrator),
(2) Use CD to change the directory to bin directory of MySQL Server 5.6;
C:\Program Files\MySQL\MySQL Server 5.6\bin> mysqld.exe -install
(4) When there is Service successfully installed, it means that MySQL Service successfully installed.
At this point, the MySQL service is already present in the computer service.
Matters needing attention
The CMD command opens and runs under the bin directory where MySQL is installed:
> > > Mysqld –install (“mysqld”, not “mysql”)

Install/Remove of the Service Denied
Install/Remove of the Service Denied

open CMD and run it as an administrator.
When: Service successfully installed. Indicates that the service is installed successfully.

Cross origin requests are only supported for

In this paper, the scene
When writing HTML using VS Code, the imported JS file needs to import modules across domains.
why
Use File protocol, need to use HTTP, Data, Chrome-Extension, Edge, HTTPS and other protocols, commonly speaking is the need to use the server to open a port.
The solution
Right click directly in VS Code and select Open with Live Server.