Category Archives: How to Fix

Maven install error: fatal error matching: error: invalid target distribution: 11.0.8 – > [help 1]

Project scenario:

Maven install: fatal error matching: error: invalid target distribution: 11.0.8 – & gt[ Help 1]

Solution:

Modify settings.xml in Maven directory

<profile> 
​	<id>jdk-11</id>
​	 <activation> 
​			<activeByDefault>true</activeByDefault> 
​			<jdk>11</jdk> 
​	</activation> 
​	<properties> 
​			<maven.compiler.source>11</maven.compiler.source> 		
​			<maven.compiler.target>11</maven.compiler.target> 					<maven.compiler.compilerVersion>11</maven.compiler.compilerVersion> 
​	</properties>
</profile>

https://www.cnblogs.com/zhao1949/p/6180155.html

Schema validation error in conig/config.xml. See the log for detais, Schema validation can be……

The problem of config.xml when Weblogic gives an error prompt when activating changes is related to the parameter dweblogic. Configuration. Schemavidationenabled = false

terms of settlement:

You need to add this parameter to the startweblogic. Sh file

The path is: install path/xdomain/bin           Modify startweblogic. SH in the directory as shown in the figure below

Then restart

If it is clustered, each server should be configured and then started. Otherwise, the same problem may occur

YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Inval

Cause: build lamp environment, linux environment is centos6 64 bit, run the instruction “Yum remove httpd” to remove the original Apache

Complete error prompt:

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.15-29.el6.centos will be erased
--> Processing Dependency: httpd >= 2.2.0 for package: gnome-user-share-2.28.2-3.el6.i686
--> Running transaction check
---> Package gnome-user-share.i686 0:2.28.2-3.el6 will be erased
--> Finished Dependency Resolution
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

terms of settlement:

Just run the following three instructions

ed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo 

There is another solution in the original, but I solved it with the first one. If you can’t solve it with this method, you can try the second one in the original https://blog.csdn.net/weixin_ 45621658/article/details/110734514

sqlite3.OperationalError: no such column:

If you want to insert Python values into a SQL database, just naming the Python variables in the SQL statement is not enough. The SQL database instead thinks you wanted to insert values taken from the table or another query instead.
Use SQL parameters instead, and pass in the actual values:

params = (userName, password, confirmPassword, firstName, lastName,
          companyName, email, phoneNumber, addressLine1, addressLine2, 
          addressLine3, zipCode, province, country, regDate)

c.execute("INSERT INTO People VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", params)

The NULL value is for the p_ID primary key column; the alternative is to name all the columns you want to insert values for.
https://www.e-learn.cn/topic/482719

mysql5.7.26:[ERR] 1118 – Row size too large (> 8126)

Scene reappearance

   after exporting all the table structures from the MySQL Library of the Linux server, prepare to transfer them to the local windows. The MySQL version of Linux is 5.7.26 , the local version is 5.7 , or the 32-bit MSI program is installed (previously downloaded when I went to school, it has been retained until now)
   when executing all table structures locally, [err] 1118 appears, because this problem also occurs on Linux. Check the my.cnf configuration file of MySQL in Linux, and add the corresponding configuration to my.ini or my-default.ini locally. After restarting, the error remains when executing the script again
   later, I searched most of the solutions on the Internet, but they couldn’t solve them; Later, thinking that it might be caused by the inconsistency of database versions, I downloaded the windows 5.7.26 zip package from the official website of MySQL. After decompressing and installing according to the installation tutorial, I added the configuration added in the MySQL configuration file in Linux to my.ini of the new local mysql. After restarting, I executed all the table scripts and executed successfully.

Error message

[ERR] 1118 – Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

Solution:

  in my.ini for windows and /etc/my.cnf for Linux, add the following code under the [mysqld] tag:

sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
innodb_strict_mode=0
max_allowed_packet=16M

After restart, it is running normally.


Author: su1573
I record my life, learn and share, please give me more advice
if you need to communicate, please contact [email protected] , I will reply in time when I see it

Error handling of apt instruction e: unmet dependencies. Try ‘apt — fix broken install’ with no packages in Ubuntu 20.04

Record the error handling of * * e: unmet dependencies. Try ‘apt — fix broken install’ with no packages and errors were accounted while processing and E: sub process/usr/bin/dpkg returned an error code (1) * *
only my process and solutions are recorded here.

Process

This error was reported when using apt and apt get packages today.

$ sudo apt install git
[sudo] password for wh: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is to be installed
 git : Depends: liberror-perl but it is not going to be installed
       Depends: git-man (> 1:2.17.1) but it is not going to be installed
       Depends: git-man (< 1:2.17.1-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Follow the prompts to run sudo apt -- fix broken install , and report an error. The echo is as follows:

YPreconfiguring packages ...
(Reading database ... 209743 files and directories currently installed.)
Preparing to unpack .../neo4j_1%3a3.5.14_all.deb ...
-----------------------------------------------------------------------------
It looks like you are upgrading from Neo4j 2.x. Many configuration
changes and improvements have been made in 3.0, including the location of
the databases. These changes cannot be handled automatically by this package
installation.

You will need to upgrade from Neo4j 2.x to Neo4j 3.2 and THEN to this release.
The upgrade guide for Neo4j 3.2 can be found at 
https://neo4j.com/docs/operations-manual/3.2/upgrade/
-----------------------------------------------------------------------------

dpkg: error processing archive /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb 
(--unpack):
 new neo4j package pre-installation script subprocess returned error exit status
 1
Errors were encountered while processing:
 /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here I want to install neo4j_ 1%3a3.5.14_ All.deb, but I already have neo4j 2. X. I need to upgrade from neo4j 2. X to neo4j 3.2, and then to this version
the following error report also means to analyze neo4j_ 1%3a3.5.14_ Error in all.deb
(but I didn’t look at the above information carefully, so I only know that the following error report says my neo4j_ 1%3a3.5.14_ All.deb parsing error)

I’ve checked a lot of blogs here, but it doesn’t work for a long time
I followed the method in reference 1. Method 1 and method 2 are useless. I have achieved method 3
the process of trying method 3 is as follows:

$ sudo rm /var/cache/apt/archives/neo4j_1%3a3.5.14_all.deb 
$ sudo apt-get clean
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

When you run sudo apt get autoremove , you will be prompted

The following packages have unmet dependencies:
 cypher-shell : Breaks: neo4j (< 3.1.4) but 2.1.5 is installed

At this time, I realized that there is a 2.1.5 version of neo4j in my system
if this step is not successful, the following instructions will not be executed successfully.

Here, I query the directory of neo4j version 2.1.5 through the where is command, and modify the corresponding directory name. It is reasonable to say that after the modification, the system cannot find neo4j2.1.5, sudo apt get autoremove should be able to execute successfully. But it didn’t.

In fact, it’s very simple here. We just need to uninstall neo4j in version 2.1.5. As follows:
perform sudo apt get remove neo4j uninstall
then follow method 3 in reference blog 1 to execute it again. The above error will not be reported in the process.

Then apt and apt get can be used normally.

reference resources

    Fix “Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu

Jumper notebook, import numpy, prompt “importerror: DLL load failed: unable to find the specified module”

  Using pychar, import numpy   no problem

But jupyter notebook   no way.

I tried to add environment variables on the Internet, but I can’t.

Numpy, which is not a virtual environment, has no problem,

There are problems with virtual environments,

The virtual environment uses CONDA   Install.

Considering the isolation of virtual environment, I use pip   install   ,
It can be found.

pip uninstall numpy

pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

The most direct and essential method: switch to the virtual environment and start jupyter   At this time, switch the kernel to the python core of the virtual environment

modelsim Error: (vlog-13067) Syntax error, unexpected non-printable character.

 ** Error: (vlog-13067) Syntax error, unexpected non-printable character.

The reason is that. V file format is UTF-8 encoding. Modelsim supports ANSI. UTF-8 white space characters are not blank. When converting. V to ANSI encoding, you can see the following figure. The white space characters are not blank. Just delete these exceptional white space characters.

error C2065: ‘_beginthread‘ : undeclared identifier

error C2065: ‘_ beginthread’ : undeclared identifier

First, include & lt; process.h> Header file. If an error is reported, set the engineering parameters as follows:
Project – & gt; Select the C/C + + page in settings… And then select code generation in category, and then select multithreaded (or multithreader DLL or debug multithreader DLL or debug multithreader) in use runtime library below it

If you still report an error, put the following two sentences at the beginning of the cpp file
extern “C” unsigned long __ cdecl _ beginthread (void (__ cdecl *) (void *),
unsigned, void *);
extern “C” void __ cdecl _ endthread(void);

The test is effective
this is equivalent to manually declaring the two functions.