Author Archives: Robins

springboot Integrate mybatis Error: Error creating bean with name ‘deptController‘: Unsatisfied dependency expresse


Error creating bean with name ‘deptController’: Unsatisfied dependency expressed through field ‘departmentMapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘departmentMapper’ defined in file [D:\demo16\target\classes\com\example\demo\mapper\DepartmentMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is java.io.FileNotFoundException: class path resource [mybatis/mybaties-config.xml] cannot be opened because it does not exist

Error situation analysis.
1. mapping xml file in the namespace and resultType full class name attention to the correct reference.
2. yml file mybatis config and mapper address note that the best direct reference, not hand-typed.

Error: Unable to build IHost No DbContext named ‘PersistedGrantDbContext‘ was found.

IdentityServer4 data migration error: surprisingly Apollo appsettings.json configuration problem!

PM> dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb –project MicroService.IdentityServer
Build started…
Build succeeded.
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Unable to build IHost
No DbContext named ‘PersistedGrantDbContext’ was found.
PM> dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb –project MicroService.IdentityServer


[Solved] RuntimeError An attempt has been made to start a new process

1、 Exception 1: runtimeerror: an attempt has been made to start a new process

Reason: multiple processes need to run in the main function

Solution 1:

Add the main function and call it in main.

if __name__ == '__main__':
	main()

Solution 2:

num_workers changed to 0, single process loading

Ers changed to 0, single process loading

ERROR 1261 (01000): Row 1 doesn‘t contain data for all columns

1. Error Messages:

MariaDB [baidd]> select * from t1  into outfile '/var/lib/mysql/t1.txt';
Query OK, 1 row affected (0.000 sec
MariaDB [baidd]>  load data infile '/var/lib/mysql/t1.txt' into table t2;
ERROR 1261 (01000): Row 1 doesn't contain data for all columns
2. Reason
t2 has more fields than t1, so the import fails.

[Solved] kalibr Compile Error: error: ‘Eigen::MatrixBase<Derived>::~Matrix

Error 1:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:885:23: error: ‘Eigen::MatrixBase<Derived>::~MatrixBase() [with Derived = Eigen::Matrix<double, -1, 1>]’ is protected
EIGEN_DEVICE_FUNC ~Derived() = default;
Solution:
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h line 466
Change protected to public
Error 2:

Errors     << aslam_cv_python:make /home/lab/kalibr_workspace/logs/aslam_cv_python/build.make.002.log
Solution: in the File of kalibr/aslam_cv/aslam_imgproc/include/aslam/implementation/aslamcv_helper.hpp, Change CvSize to cv::Size

Done!

[Solved] error ‘test‘ is assigned a value but never used no-unused-vars

1. Relevant error reporting information

error  'test' is assigned a value but never used  no-unused-vars

2. Error reporting reason

The eslint loader is used for relevant syntax check. Because the test variable has not been used and does not comply with relevant syntax rules, an error is reported.

3. Turn off related syntax checking
create a new Vue in the root directory of the related project config.JS file

in Vue config.JS file is configured as follows

module.exports = {
    // Turn off syntax checking
    lintOnSave: false
}

after restarting the project, it is found that the relevant error message disappears
See Vue cli configuration parameters for details

[Solved] yocto Compile Error: ERROR: libtinyxml2-XXX do_fetch: Fetcher failure for URL

Yocto compilation, when changing the GIT address to the local server address in the BB file, there is a series of error prompts, the main idea of which is:

ERROR: libtinyxml2-XXX do_ fetch: Fetcher failure for URL:’ git://git @XXX/tinyxml2. git’. Unable to fetch URL from any source.

I can succeed in clone alone, but not in yocto. I guess it may be because there is no specified protocol and branch. Just add it.

Solution:

SRC_URI = ” git://git @XXX/tinyxml2.git “change to” git://git @XXX/tinyxml2.git;protocol=ssh;branch=master”

Yocto’s information is too few. It’s hard to check if there are problems. I share what I have encountered. I hope more people can share it, so that problems can be solved in the future.

[Solved] hbase Create Sheet Error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

To create a table in the HBase shell:

A few days ago, it was OK. Today, I want to review it. Suddenly, it doesn’t work.
I checked a lot and said that list can’t create tables. When I encountered a problem, list can’t create tables.
after reading a lot, I found that many of them are about the problem of zookeeper. Clearing HBase cache, I cried because I didn’t install zookeeper client, let alone clearing it.
the next step is to change the configuration, Synchronize the time cycle and eliminate strange error reports

Problem Description:

There is no problem using list in HBase shell
there is a problem when creating a table: error: org apache. hadoop. hbase. PleaseHoldException: Master is initializing

Cause analysis:

1. hbase file configuration
2. The clock does not correspond to
3. Some strange errors are reported when hbase runs (although it can run normally before, there are hidden dangers)
4. hbase is sick (artificial mental retardation)

Solution:

Modify HBase configuration file

By modifying the hbase configuration file hbase-site.xml, hbase.rootdir is changed to hbase.root.dir. The following configuration file


<configuration>
        <property>
                <name>hbase.root.dir</name>
                <value>hdfs://localhost:9000/hbase</value>
        </property>
        <property>
                <name>hbase.cluster.distributed</name>
                <value>true</value>
        </property>
        <property>
                <name>hbase.unsafe.stream.capability.enforce</name>
                <value>false</value>
        </property>
</configuration>

synchronization time

directly enter the following command in the shell

ntpdate 1.cn.pool.ntp.org

3. Eliminate strange messages from HBase

Directly in HBase env Add the following command to the SH file

 export HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP=true

Reboot

[Err] [REST.cc:205] Error in REST request Gazebo Startup Error

Question

An error is reported when gazebo is started. The error is as follows:

[Err] [REST.cc:205] Error in REST request

libcurl: (51) SSL: no alternative certificate subject name matches target host name 'api.ignitionfuel.org'

Solution:

sudo vim ~/.ignition/fuel/config.yaml

https://api.ignitionfuel.org