Category Archives: Error

uniapp Use picker Error: Error in render: “TypeError: Cannot read property ‘XXX’ of undefined”

In uniapp, picker is used to render the object array, and the data is obtained from the background. The page code is as follows:

The data acquisition code is as follows:

Error report encountered:

The mistake here is that the property ProjectName is undefined, so you only need to add this property to the object array:

Previously:

Replace with:

If you use the hbuilder built-in browser, you may not see the error until you refresh it twice;

above;

[Solved] Error: Not a genuine ST Device! Abort connection

In other words, the chip of ST company is detected and the connection fails, but it does burn the program for you (although it seems that you need to restart manually), so you can ignore this problem, but this error is a little annoying. Refer to the following steps to remove it.

environment

The model of single chip microcomputer is ch32f103c8t6 (not official)
ide: keil 5.35

Solution:

The installation path to the relevant pack, such as

E:\fold\arm pack\Keil\STM32F1xx_DFP\2.3.0

Open keil.stm32f1xx_Dfp.pdsc, open with Notepad, can be backed up first
Ctrl + F search not a genius
in the block block, add// comments before the two related sentences.

[Solved] zabbix Monitor postgres Error: “sh:psql command not found”

1. Error: “sh:psql command not found”

2. How to Solve

After investigation, it is because the postgres installation directory is under /home/, and the zabbix user monitoring causes insufficient permissions.

Note: Do not try to modify the permissions with: chmod,chown, that is useless, I have tested it

3. solution:

Put the postgres installation directory in a directory other than /home, usually it can be put in the /usr/local directory, and then authorize the soft connection and it is OK, the data storage directory is not required.

mv /home/postgres/postgres-13  /usr/local/

ln -s //usr/local/postgres-13/bin/psql /bin/psql

The rest of the environment variables can be modified by yourself, so I won't explain them.

Appium Error: An unknown server-side error occurred while pro…g\\\\npm\\\\node_modules\\\\appium\\\\node_modules

Error Messages:

adb.exe' -P 5037 -s 29cc0bc8 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Exception occurred while executing 'delete': java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTI

 

Solution:

In Developer Options – Disable Permission Monitoring – Enabled

[Solved] redisson Error: IllegalArgumentException: port out of range:-1

Reason for putting it first: [version incompatibility]

Exception:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [redis.client.RedisClient]: Factory method ‘redisClient’ threw exception; nested exception is java.lang.IllegalArgumentException: port out of range:-1

Port out of range: – 1

Solution:

Find a private blog in the vast sea of articles, and modify the reisson version, Cao, under the tips of the boss’s post

Finally, reload pom.xml again

Redis based distributed lock implementation in springboot (via redisson)

SparkSQL Use DataSet to Operate createOrReplaceGlobalTempView Error

The error information is as follows

Cause analysis

The main reason is that the hive configuration file is not configured in spark. Copy the hive-site.xml file of hive configuration to the spark directory

mv ../hive/conf/hive-site.xml ../spark/conf/hive-site.xml

explain:

If a JDBC error is reported, you also need to copy the MySQL jdbc driver under ../hive/lib to the ../spark/jars directory

The jar package MySQL connector is in hive’s lib directory, and the path where spark stores Jia package is in jars directory

result

Android Studio Failed to Install app Error: INSTALL_FAILED_DUPLICATE_PERMISSION

When running the installation app in Android studio, if the installation fails, the following exception occurs:
installation did not succeed.
the application could not be installed: install_FAILED_DUPLICATE_PERMISSION

This indicates that the custom permission conflicts with the installed apps in the system, because two apps with different signatures are not allowed to define the same permission from Android 5.0
so the solution is to modify the permission definition, not the same as the existing app

Anaconda startup error: libGL error… [How to Solve]

The installed Anaconda startup error is as follows:

anaconda-navigator 
2021-12-02 20:57:12,833 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
2021-12-02 20:57:55,550 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

QXcbConnection: XCB error: 3 (BadWindow), sequence: 3225, resource id: 14878253, major code: 40 (TranslateCoords), minor code: 0

Later, it was found that the two versions of/usr/lib/libstdc + +. So.6.0.29 under the system and/lib/libstdc + +. So.6.0.28 under Anaconda were inconsistent. Let’s use the method of stealing heaven and earth.

mv  ~/ anaconda3/lib/libstdc++.so.6.0.28  ~/ anaconda3/lib/libstdc++.so.6.0.28bake

cp  / usr/lib/libstdc++.so.6.0.29   ~/ anaconda3/lib/libstdc++.so.6.0.28

There is no problem starting now:

anaconda-navigator 
2021-12-02 21:34:56,159 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

2021-12-02 21:35:31,590 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

2021-12-02 21:35:31,921 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

It’s almost normal