Category Archives: Error

[Solved] class java.lang.RuntimeException/error reading Scala signature of package.class: Scala signature package has wrong version

An error occurred while connecting spark with Scala:

scalac: error while loading package, class file 'C:\Users\asus\. ivy2\cache\org. scala-lang\scala-library\jars\scala-library-2.13. 7.jar(scala/reflect/package.class)' is broken
(class java.lang.RuntimeException/error reading Scala signature of package.class: Scala signature package has wrong version
expected: 5.0
found: 5.2 in package.class)

Because of the version conflict, the SDK version of scala added by the compiler is consistent with the version of POM file

Open file >> Project Structure >> Global librarier can add a version consistent with the POM file

Run successfully

Finally, the spark version used is 3.0

[Solved] elastic search, blocked by: index read-only/allow delete (api)

Recently, I found that the index failed during index, and then I looked at the log

The following exception is found: blocked by: [binding/12/index read only/allow delete (API)]

Find the reason

By command: http://localhost:9200/indexName/_settings? pretty , check found, read_only_allow_delete”: “true”

Indexes can only be read-only or deleted

Most of this happens because the disk is full. When the utilization rate exceeds 95%, elasticsearch will force the operation that data cannot be written

Solution

1. Clear disk space

2. Read_only_allow_Set delete to false

{
    "index.blocks.read_only_allow_delete": "false"
}

Acknowledged = true indicates successful execution

3. Query the index configuration again, and you can see “read_only_allow_Delete = false”, then you can index the data

[Solved] rabbitmq Error: Failed to start RabbitMQ broker

systemctl start rabbitmq-server


Error Messages:

Error: unable to connect to node rabbit@sf206152: nodedown
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {bad_return,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {{rabbit,start,[normal,[]]},
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {‘EXIT’,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {rabbit,failure_during_boot,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {error,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: {schema_integrity_check_failed,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: [{table_attributes_mismatch,rabbit_user,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: [username,password_hash,tags],
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: [username,password_hash,tags,
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: hashing_algorithm]}]}}}}}}}
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: Log files (may contain more information):
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: /var/log/rabbitmq/[email protected]
Jun 21 17:11:12 sf206152 rabbitmq-server[31112]: /var/log/rabbitmq/[email protected]
Jun 21 17:11:13 sf206152 rabbitmq-server[31112]: {“init terminating in do_boot”,{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{‘EXIT’,{rabbit,failure_du
Jun 21 17:11:14 sf206152 rabbitmq-server[31112]: Crash dump was written to: erl_crash.dump
Jun 21 17:11:14 sf206152 rabbitmq-server[31112]: init terminating in do_boot ()
Jun 21 17:11:14 sf206152 systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: Stopping and halting node rabbit@sf206152 …
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: Error: unable to connect to node rabbit@sf206152: nodedown
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: DIAGNOSTICS
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: ===========
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: attempted to contact: [rabbit@sf206152]
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: rabbit@sf206152:
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: * connected to epmd (port 4369) on sf206152
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: * epmd reports: node ‘rabbit’ not running at all
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: no other nodes on sf206152
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: * suggestion: start the node
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: current node details:
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: – node name: rabbitmqctl31207@sf206152
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: – home dir: /var/lib/rabbitmq
Jun 21 17:11:14 sf206152 rabbitmqctl[31207]: – cookie hash: cmvEv4p7/gNkQVUvRdn10w==
Jun 21 17:11:14 sf206152 systemd[1]: rabbitmq-server.service: control process exited, code=exited status=2
Jun 21 17:11:14 sf206152 systemd[1]: Failed to start RabbitMQ broker.
— Subject: Unit rabbitmq-server.service has failed
— Defined-By: systemd
— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit rabbitmq-server.service has failed.

— The result is failed.

solution:
[email protected], rabbit@localhost, rabbit@localhost-plugins-expand exist in the /var/lib/rabbitmq/mnesia directory. After deleting these 3 items, use systemctl start rabbitmq-server to start.

# Start stop restart
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart

# View status
rabbitmqctl cluster_status
rabbitmqctl status

Add a new user
[root@sf106212 etc]# rabbitmqctl add_user admin admin@2015
View current user list
[root@sf106212 etc]# rabbitmqctl list_users
Set user role super administrator (administrator)
[root@sf106212 etc]# rabbitmqctl set_user_tags admin administrator
Set user permissions
[root@sf106212 etc]# rabbitmqctl set_permissions -p/admin “.*” “.*” “.*”
View the authority information of the specified user
[root@sf106212 etc]# rabbitmqctl list_user_permissions admin
Listing permissions for user “admin” …
/ .* .* .*

# Start the configuration automatically start
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server start
chkconfig rabbitmq-server on
http://localhost:15672

[Solved] vivado implementation Execute Error: Unsupported PLLE2_ADV connectivity…….

Error:
[DRC REQP-1712] Input clock driver: Unsupported PLLE2_ADV connectivity. The signal u_clk_wiz_0/inst/clk_in1 on the u_clk_wiz_0/inst/plle2_adv_inst/CLKIN1 pin of u_clk_wiz_0/inst/plle2_adv_inst with COMPENSATION mode ZHOLD must be driven by a clock capable IO.

According to the prompt information, there should be a problem with the configuration of the clocking wizard.

Solution:
After selecting PLL, adjust the source from “single ended clock capable pin” to “global buffer”. No error will be reported when implementing again.

[Solved] kuberlet Service Startup Error: “Failed to run kubelet” err=”failed to run Kubelet: misconfiguration: kubelet cgroup driver: \”systemd\” is different from docker cgroup driver: \”cgroupfs\””

After analysis, it is found that “kebernetes sets the CGroup driver to SYSTEMd by default, while the CGroup driver of docker service is cgroups”. There are two solutions. First, why is the service configuration file of docker the same as that of kubernetes? Second, modify the configuration file of kebernetes to cgroups. The first one is adopted here.

Modify the configuration file of docker service,/etc/docker/daemon.JSON, and add the following

"exec-opts": ["native.cgroupdriver=systemd"]

Restart dokcer service:

sudo systemctl daemon-reload
sudo systemctl restart docker

Restart kuberlet:

systemctl restart kubelet

[Solved] EasyCVR Error: LibEasySnap.dll:The specified module could not be found

Easycvr is a video protocol fusion platform developed by tsingsee Qingxi video. In addition to accessing RTSP and gb28181, easycvr also completes docking with equipment and video stream transmission through private protocols such as hiksdk and EHOME.

Sometimes we encounter that easycvr cannot be started and the error libeasysnap DLL: the specified module could not be found. Generally, if the service fails to start, it will be in the log, so we check the log to see if there is any error message:

You can see that the reason for the error is that the file is missing. Therefore, we need to check whether libeasysnap is missing in the easycvr directory dll:

Libeasysnap. Is found in the directory DLL, but still prompt that the DLL file is missing.

After investigation, it is found that only the individual system environment (windowsserver2012 RC) is missing from this DLL. Therefore, we need to copy all DLL files beginning with AV in the directory of other versions to the directory of the current version, and it will be normal to start again.

[Solved] JSTL1.2 Error: org.apache.catalina.core.StandardWrapperValve.invoke…

Problem description

An error is reported after importing the required dependencies and referencing the following core tag library. JSTL cannot be used.

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


Reason:

The dependency jar package is missing in the Tomcat project.

jstl 1.1 jstl 1.2
依赖 jar 包 standard.jar taglibs-standard-impl-1.2.5.jar
taglibs-standard-spec-1.2.5.jar

solution
Option 1: Add these two dependencies

<!-- https://mvnrepository.com/artifact/org.apache.taglibs/taglibs-standard-spec -->
<dependency>
  <groupId>org.apache.taglibs</groupId>
  <artifactId>taglibs-standard-spec</artifactId>
  <version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.taglibs/taglibs-standard-impl -->
<dependency>
  <groupId>org.apache.taglibs</groupId>
  <artifactId>taglibs-standard-impl</artifactId>
  <version>1.2.5</version>
  <scope>runtime</scope>
</dependency>

Solution 2: manually import the jar package

you can find these two jar packages in the Tomcat \ webapps \ examples \ WEB-INF \ lib directory, and then copy them to the Lib directory of Tomcat or the Lib directory of the project to solve the problem</ font>

1. Copy to the Lib directory of Tomcat (once and for all)

2. Copy to the Lib directory of the project (only valid for this project)

About importing external jar packages in the project, you can see importing external jar packages in eclipse and idea

cURL error 1014: SSL verify failed Error [How to Solve]

report errors

[ERROR] cURL error 1014: SSL verify failed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://mgobe.tencentcloudapi.com/[247] in /www/wwwroot/*.net/vendor/
[ERROR] #0 /www/wwwroot/tencentgame.net/vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Common/AbstractClient.php(175): TencentCloud\Common\AbstractClient->doRequestWithOptions()
#1 /www/wwwroot/*.net/app/Controller/IndexController.php(46): TencentCloud\Common\AbstractClient->__call()
#2 /www/wwwroot/*.net/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Controller\IndexController->index()
#3 /www/wwwroot/*.net/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound()

frame

hyperf swoole 4.5. 9 openssl1. one point one

direction

1. System layer. The OpenSSL version of swoole is too low. PHP — RI swoole view OpenSSL version is 1.0 1. The system checks that the OpenSSL version is 1.1 1 upgrade the OpenSSL version of swoole. Recompile (not working)

2. Framework issues

The hyperf framework spoole adopts the co process mode, and guzzle will cause blocking and error reporting

use GuzzleHttp\Client;
use Hyperf\Guzzle\CoroutineHandler;
use GuzzleHttp\HandlerStack;

$client = new Client([
    'base_uri' => 'http://127.0.0.1:8080',
    'handler' => HandlerStack::create(new CoroutineHandler()),
    'timeout' => 5,
    'swoole' => [
        'timeout' => 10,
        'socket_buffer_size' => 1024 * 1024 * 2,
    ],
]);

$response = $client->get('/');

1. Add handler at the request => Handlerstack:: create (New coroutinehandler()) to solve the problem

2. Directly use hyperf\ guzzle\coroutinehandler as the processor and set it in the guzzle client to turn it into collaborative operation. In order to facilitate the creation of guzzle objects for collaborative processes, we provide a factory class hyperf\guzzle\clientfactory to facilitate the creation of clients

<?php 
use Hyperf\Guzzle\ClientFactory;

class Foo {
    /**
     * @var \Hyperf\Guzzle\ClientFactory
     */
    private $clientFactory;
    
    public function __construct(ClientFactory $clientFactory)
    {
        $this->clientFactory = $clientFactory;
    }
    
    public function bar()
    {
        // $options is equivalent to the $config parameter of the GuzzleHttp\Client constructor
         $options = [];
         // $client is a coroutineized GuzzleHttp\Client object
        $client = $this->clientFactory->create($options);
    }
}

[Solved] java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

This error is caused by the inconsistency between the incoming string and the class of the object when gson parses the JSON string into an object

Solution:

Either modify the background method and change the structure type of the return value to be consistent with the specified class;

Either modify the class structure of the foreground transformation. In short, the data to be parsed must correspond to the structure of the transformed instance

[Solved] ‘modules.module[2]’ specifies duplicate child module XMMRTest @line 14, column 17

Engineering errors are as follows:

Reason: engineering document POM Duplicate XML

When the modules module was created before, the file was simply deleted, but the project configuration was not deleted. An error occurred when the module with the same name was created again