Category Archives: How to Fix

Selenium reports an error and solves the problem of element not interactive exception, element not interactive

An error
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
The solution
Selenium – common issues an error: (a) element interaction ElementNotInteractableException – small insect’s big dream – blog garden
https://www.cnblogs.com/xiaochongc/p/12450134.html

Module ‘XX’ has no ‘XX’ member pylint (no member)

I recently found that vscode is a tool between an IDE and an editor. It can run debugging, supports multiple languages, is relatively busy and lightweight, but I have problems in red when writing Python, PyLint (no-member)

PyLint is the Python syntax checker for VsCode. PyLint is a static checker. When using third-party libraries, some members are created only when the code is running

"python.linting.pylintArgs": ["--generate-members"]

To avoid reporting errors

Endnote x9 error

EndNote X9 error
Error reporting problem solved

An error phenomenon
When using EndNote X9 for literature insertion, the following error is generated:
the output style specified in this doctument, my_style, is not available in your Styles folder. Please select another style or Cancel and make sure that the style is in the proper folder.
The tag part my_style the name of the style you use, depending on the person.
Problem solving
Change the style file suffix from ENS to ENS.

>
>
right-click EndNote icon> Click on Properties>; Shortcut>; Locate the starting location in the folder;
>
>
>
>
>
>
In the attached picture

to this, problem solving.
2020/4/22

@Solution to override error

Sometimes the Java Eclipse project will always report an error with @Override when compiled on a different computer. It is fine to remove the @Override, but it cannot fundamentally solve the problem, because sometimes there are too many places for @Override.
This is an issue with the JDK, where @Override is JDK5, but does not support an implementation of the interface. JDK6 fixes this Bug by adding @Override to methods of parent classes and implementations of interfaces.
To fix this, first make sure you have JDK version 1.6 or higher installed on your machine (mine had JDK 1.7 installed),

Then, select the Eclipse menu Windows->; Preferences–> java-> Compiler–> Compiler Compliance Level Select 1.7, refresh the project, and recompile.
If the problem is not resolved, right-click on the project that reported the error and select Properties–>; Java Compiler–> Select 1.7 in Compiler Compliance Level to refresh the project and recompile.
Source of the original article: Click to open the article

The solution of notes floating red error in IntelliJ idea

A few days boot, suddenly found that their project yesterday can run, today because of the green note floating red and can not run, very embarrassing;

The solution is as follows:
1. Search for “Javadoc” in the setting of IDEA

2. Change the red warning in the Declaration has problem in Javadoc issues to yellow warning;


Basically, the problem with the green comment floating red is solved;

Maven project pom.xml Solutions to error reporting

1. Error in pom.xml
Similar: Missing an artifact org. Springframework: spring – JDBC: jar: 3.2.4. RELEASE such errors, suggest a jar package.
I’ve run into this problem several times before. Every time I solve it, I forget it the next time. Make a note of it.
Force Update of Snapshots/Releases: Force Update of Snapshots/Releases: Force Update of Snapshots/Releases: Force Update of Snapshots/Releases: Force Update of Snapshots/Releases
 
SpringBoot error -Due to missing ServletWebServerFactory
Update 2019.6.24

2019-06-24 14:09:15.039  INFO 17356 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$6d407ba3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-06-24 14:09:15.592  WARN 17356 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

 
ServletWebServerFactoryass references o>pache.catalina package>e,
It then looks at the JAR package that has been introduced and finds that there is no such package.
 
To solve this problem, add the following dependencies:

<dependency>
    <groupId>org.springframework.boot</groupId>           			
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

 
tomcat-embedbed embed embed embed embedtomcat-embed embed embed embed embed embed embed I did not introduce the spring-boot-starter-webpendency, which resulted in the incorrect introduction of Tomcat related packages, rather than a dependency conflict or other issue.
 
3, to be continued…
If you run into problems with Maven errors in the future, you will remember them here.

String index out of range: 100 error report details and Solutions

The length of the string is not that long so the interception fails.

After debugging here, you can see that the exception is in the substring:

IndexOf (indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf)
 
The concept of heap String is not clear. Here is an introduction to the concept of strings.

 
 
Solutions to the above problems:

How to solve the error after Java importing project

1. Right-click the project and select Preferences ->; Search project called Facets – & gt; Go to Java and select compile environment 1.7, enter Runtime, select a Tomcat, and click New:

Select Tomcat7, click Apply, and click OK:

Click Configuration, select the Tomcat you just selected, when done, click Apply, and click OK:

Then select the project and right-click ->; Select Build Path ->; Select Configure build path:

Select libraries – & gt; Select the JRE System Library ->; Click Edit to change the compile environment:

Select the default build environment, mine is JDK 1.8, and click Finish:

@How to solve eclipse error after setter and @ getter (@ data) annotation

In the process of SpringBoot development, we design the entity class, the previous approach is to get and set methods to achieve, now greatly simplified the entity class writing, direct life, annotations on the class can be! As shown in the figure below:

This is fine, but Eclipse keeps returning errors during actual calls, as follows:

After a lot of research, it was found that Eclipse did not install the plug-in, and now we need to find the corresponding lombok.jar in our own Maven library. If you do not have a local Maven library, and do not have the corresponding JAR package, you can move to the corresponding official website to download, here is not much to say! As shown in the figure below:

After opening the location as shown in the figure, double-click the corresponding JAR package, as shown in the figure below:


Follow the steps shown in the figure step by step, remember that the second step needs to select the location, we can directly select the installation location of Eclipse! As shown in the figure below:

Select and install! As shown in the figure below, the installation is successful!

At this point, you will find an extra JAR in Eclipse’s file path. At this point, we are almost done! This is as follows:

Open the Eclipse.INI file, and the following configuration is successful! As shown in the figure below:

Congratulations that you have completed all the steps, just close Eclipse and restart! If you still get an error after reboot, you need to do Maven Update or Clear! Go and see if you can solve your problem! If it works out, congratulations! Welcome to have a question to discuss!

The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?

An error screenshot

The solution is
Will & lt; parent> Version of the change to 1.0 version, will not report wrong.
thinking
According to Baidu, many users say that the version of Maven package is too low, and the version of spring tool suit is too high.
However, my Spring Tool Suit version 4.0, the Maven package version 3.6, and the JDK version 1.8 should match each other, but it still doesn’t work.
Inadvertently, such as screenshot modification, did not report an error, the reason is unknown, who can tell me, solve.
The answer

    what went wrong: Maven plug-in version is not compatible with the Eclipse solution: to pom configuration file. The XML add & lt; maven-jar-plugin.version> 3.1.1 & lt; /maven-jar-plugin.version> With respect to OK & lt; properties> & lt; java.version> 1.8 & lt; /java.version> & lt; spring-cloud.version> Greenwich.SR1< /spring-cloud.version> & lt; maven-jar-plugin.version> 3.1.1 & lt; /maven-jar-plugin.version> < /properties>

 

Solving Python error: local variable ‘a’ referenced before assignment

First, the cause of the problem
Defines a variable outside a function, and then use the following variables inside a function in python, and change its value, the result error local variable ‘a’ referenced before the assignment, the code is as follows:

error reason: the python functions and global variables with the same, if you have to modify the value of the variable will become a local variable, the reference to the variable nature can appear not to define such a mistake.
Second, the solution
The problem is solved by declaring a as a global variable with the global keyword: