Solution: java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names

Table of Contents Problem Description Abnormal Solution 1. Check the method names in the code 2. Use appropriate HTTP request method constants 3. Use third-party HTTP libraries 4. Check the request URL 5. Debugging and logging in conclusion Problem description When writing web applications in Java, you sometimes encounter exceptions similar to ??java.lang.IllegalArgumentException: Invalid character […]

Caused by:java.lang.IllegalArgumentException: provider “network“ does not exist

Problem: The mobile phone location permission is turned on. When installing a customized apk, the first installation starts normally, but when it is started again, the application crashes. According to the system log, the problem is located in LocationManager.java. The system log is as follows: Problem analysis: The app will apply for positioning permission, but […]

Caused by:java.lang.IllegalArgumentException: provider “network“ does not exist

Problem: The mobile phone location permission is turned on. When installing apk customized by some manufacturers, the first installation starts normally, but when it is started again, the application crashes. According to the system log, the problem is located in LocationManager.java. The system log is as follows: Problem analysis: The app will apply for positioning […]

Solved Spring Error: `IllegalArgumentException: Validation failed for argument at index 0 in method` problem

Blogger Maotouhu () takes you to Go to New World? Blog homepage: Maotouhu’s blog “Complete Column of Interview Questions” Articles with pictures and texts Vivid images Simple and easy to learn! Everyone is welcome to step in~ “IDEA Development Cheats Column” Learn the common operations of IDEA and double your work efficiency~ “Master Golang in […]

Caused by:java.lang.IllegalArgumentException: provider “network“ does not exist

Problem: The mobile phone location permission is turned on. When installing apk customized by some manufacturers, the first installation starts normally, but when it is started again, the application crashes. According to the system log, the problem is located in LocationManager.java. The system log is as follows: Problem analysis: The app will apply for positioning […]

maven packaging exception: java.lang.IllegalArgumentException: Malformed \uxxxx encoding

maven packaging exception: java.lang.IllegalArgumentException: Malformed \uxxxx encoding [ERROR] Malformed \uxxxx encoding. java.lang.IllegalArgumentException: Malformed \uxxxx encoding. at java.util.Properties.loadConvert (Properties.java:672) at java.util.Properties.load0 (Properties.java:455) at java.util.Properties.load (Properties.java:408) at org.eclipse.aether.internal.impl.TrackingFileManager.read (TrackingFileManager.java:56) at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.read (DefaultUpdateCheckManager.java:511) at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkMetadata (DefaultUpdateCheckManager.java:250) at org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolve (DefaultMetadataResolver.java:302) at org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolveMetadata (DefaultMetadataResolver.java:181) at org.apache.maven.repository.internal.DefaultVersionRangeResolver.getVersions (DefaultVersionRangeResolver.java:198) at org.apache.maven.repository.internal.DefaultVersionRangeResolver.resolveVersionRange (DefaultVersionRangeResolver.java:148) at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel (DefaultModelResolver.java:197) at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally (DefaultModelBuilder.java:1070) at org.apache.maven.model.building.DefaultModelBuilder.readParent (DefaultModelBuilder.java:846) at […]

IllegalArgumentException exception analysis

IllegalArgumentException, after analyzing the stack, it was found that the most fundamental exception is the following: java.lang.IllegalArgumentException: No enum constant com.a.b.f.m.a.c.AType.P_M It’s probably the above content. It seems very simple. The error message prompted is that the P_M enumeration item is not found in the AType enumeration class. So after investigation, we found that before […]

Nacos2.2.1 error java.lang.IllegalArgumentException: the length of secret key must great than or equal 32

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:423) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) at com.alibaba.nacos.Nacos.main(Nacos.java:35) Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104) at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:479) at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:182) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:160) … 8 […]

IllegalArgumentException: OnNoRibbonDefaultCondition exception and Maven Helper plugin to resolve jar package conflicts

When building the Spring Cloud project, different versions of jars were introduced, causing an error to be reported when the project started: main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization – canceling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.jd.auth.data.s security.server.eureka.SSOEurekaApplication]; nested exception is java.lang.IllegalArgumentException: Could not find class [org.springframework.cloud.client.loadbalancer.reactive.OnNoRibbonDefaultCondition] 2023-07-05 […]

java.lang.IllegalArgumentException: Found more than one fragment named spring_web. This is an invalid relative order.

Questions java.lang.IllegalArgumentException: Found more than one fragment named spring_web. This is an invalid relative order. Detailed question The author uses the Servlet + JSP technical framework for project development. For the internationalization of the project (ie i18n, to achieve Chinese and English page conversion), it is necessary to introduce The following packages <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> […]