Tag Archives: ProgrammerAH

Tomcat error parsing HTTP request header

Tomcat login was configured a few days ago https://localhost : 8080/I found that I didn’t find the reason for the error. Later, others suggested 127.0.0.1:8080. The result was really OK. I was very fascinated

Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException : Invalid character found in method name. HTTP method names must be tokens

at org.apache.coyote .http11. InternalInputBuffer.parseRequestLine ( InternalInputBuffer.java:139 )

at org.apache.coyote .http11.AbstractHttp11 Processor.process (AbstractHttp11 Processor.java:1028 )

at org.apache.coyote .AbstractProtocol$Abstr actConnectionHandler.process ( AbstractProtocol.java:637 )

at org.apache.tomcat . util.net.JIoEndpoint $ SocketProcessor.run ( JIoEndpoint.java:316 )

at java.util.concurrent . ThreadPoolExecutor.runWorker ( ThreadPoolExecutor.java:1145 )

at java.util.concurrent .ThreadPoolExecutor$ Worker.run ( ThreadPoolExecutor.java:615 )

at org.apache.tomcat . util.threads.TaskThread $ WrappingRunnable.run ( TaskThread.java:61 )

at java.lang.Thread .run( Thread.java:745 )

Error evaluating expression

https://blog.csdn.net/xiuxiuzhuanshu/article/details/78296183

Error information:

Error evaluating expression : 

Source text: deposit receipt

……

Caused by: groovy.lang.MissingPropertyException : no such property: Gold receipt for class: Report_ test_ 1508483943865_ 782998

……

solve:

Using component problems

Originally, it should be a static text, the text is: deposit receipt
uses a text field, and when printing, there is no get method for the “deposit receipt” field in the bean

Redis cluster error: (error) moved solution

When using redis cli to connect the redis cluster for data operation, an error is reported

./redis-cli -h 192.24.54.1 -p 6379 -a '123456'
192.24.54.1:6379> get name
(error) MOVED 5798 192.24.54.2:6379

resolvent:

This situation is generally caused by not setting the cluster mode when starting redis cli .

When starting, use the - C parameter to start the cluster mode. The command is as follows:

./redis-cli -h 192.24.54.1 -p 6379 -a '123456' -c
192.24.54.1:6379> get name
-> Redirected to slot [5798] located at 192.24.54.2:6379
"yayun"

Flash + Vue uses Axios to obtain server data, and reports error: “request aborted”

Today, I’m studying the flash + Vue tutorial https://testdriven.io/blog/developing-a-single-page-app-with-flask-and-vuejs/

Go to the back-end flash to create a new books array. When the front-end Vue obtains the data from the back-end through Axios, it always reports an error: “request aborted”

After looking at the developer tools, I didn’t have any other tips. I couldn’t figure it out.

BOOKS = [
    {
        'title': 'On the Road',
        'author': 'Jack Kerouac',
        'read': True
    },
    {
        'title': 'Harry Potter and the Philosopher\'s Stone',
        'author': 'J. K. Rowling',
        'read': False
    },
    {
        'title': 'Green Eggs and Ham',
        'author': 'Dr. Seuss',
        'read': True
    }
]

This is the back-end books array. It’s strange that after the “]” after the meeting, a “;” is added. It’s easy to use. I really don’t understand.

After the operation is successful, it’s good to remove the “;”.

Strange, encounter this situation of prawns welcome message exchange.

Error creating bean with name ‘redissonclient’:

The contents of the error report are as follows:

 Error creating bean with name ‘redissonClient’: Bean instantiation via factory method failed; nested exception is org.springframework.beans .BeanInstantiationException: Failed to instantiate [ org.redisson.api .RedissonClient]: Factory method ‘create’ threw exception; nested exception is java.lang.NoSuchMethodError : io.netty.channel . nio.NioEventLoopGroup .<init>(ILjava/util/concurrent/ThreadFactory;)V

 

The version of reisson I use is 3.10.7

Finally, through debugging the source code, I found that the version of netty I used was too high. After several tests, I used netty 4.1.36.final

At present, redisson does not support netty 5. At the same time, version 3.10.7 of redisson does not support part of netty 4.0. X, so you need to pay attention when using redisson

 

 

After solving the previous problem, I have encountered a problem, that is, I clearly configured the redisson node address as the remote address, but the redisson node has to connect to my local address, that is 127.0.0.1, that is to say, the address of the redisson node connection is inconsistent with the address of the redis configured by me, as shown in the figure below

You can see that the first step is to grab the configuration from the remote server that I configured, and then connect directly to my local server. It’s conceivable that I can’t connect. Later, when debugging the source code, I suddenly thought whether there was a problem with the configuration of my redis cluster. After checking the process, I found that the processes of redis server are all there. Later, I suddenly thought that the processes of redis are all there, but the It’s not in the cluster state. After checking the configuration method of redis cluster, it’s found that in addition to the basic change of configuration file, you need to start the cluster in two steps

1. Start each node of redis

2. Create clusters through redis cli

And my problem is that I didn’t do step 2, and then I did step 2, and I tested again and finally connected,

There is another possibility for this error report, that is, redis.conf File bind configuration error, pro test, in redis.conf This problem will appear whether “bind” or “bind” binding address is 0.0.0.0 or 127.0.0.1. The solution is to set the value of “bind” to the real IP of the machine, that is, the intranet IP or the Internet IP, depending on your application. Of course, this is the setting needed to build a redis cluster. If it is a stand-alone redis, it is better to comment out the bind or set it to 0.0.0.0

When using redis cli to connect to redis cluster, use the following command:

Redis cli – C – H ﹣ any node IP – P ﹣ port number

For the construction of redis cluster, please refer to:

https://my.oschina.net/ruoli/blog/2252393

Modelsim compiles vivado IP and reports error protection region

The reason is that some IP file names of vivado seem to be VHD, but they are not written in VHD syntax. You need to compile vivado’s related libraries.

Check if the INI file of Modelsim in your project has the following libraries.
secureip = C:\modeltech64_ 10.2c\win64\xilinx_ lib/secureip
unisim = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unisim
unimacro = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unimacro
unifast = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unifast
unisims_ ver = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unisims_ ver
unimacro_ ver = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unimacro_ ver
unifast_ ver = C:\modeltech64_ 10.2c\win64\xilinx_ lib/unifast_ ver
simprims_ ver = C:\modeltech64_ 10.2c\win64\xilinx_ lib/simprims_ ver

If not, you need to compile the following libraries first.

Click Tools – comparative simulation libraries on the vivado toolbar, as shown in Figure 2.

 

 

After compiling, there will be no problem in the simulation.

Error: bundling failed: error: unable to resolve module

When I was learning react native to load local with imgae, I encountered this problem. The code is like this

In the images folder of the root directory, there are backicon.png This picture is

According to the path configured above, the image can be located in the code, but the actual running test reported an error, and the image could not be found. Later, the test found that it was necessary to write like this

After changing to this, it can run normally, because refers to the image Login.js Different from the folder level of an image, you need to jump to the same level to find it. However, it’s not clear why you can also point out the path of the image without adding.. /.

Error starting ApplicationContext. To display the conditions report re run

When we create a springboot project, it pom.xml This place in is like this: as shown in the figure

 

If there is no comment point in the red box, an error will be reported as soon as the project is run, as shown in the following picture:

There is also a warning as shown in the figure below:

After some time, baidu also did not find a similar error situation, do not know how to solve.

Only will pom.xml Note out this in, as shown in the figure below:

Then click Import changes. After compiling, it will run normally.