异常集锦
文章平均质量分 68
低调D树苗
Pry the world with code.
展开
-
记一次JSON.toJSONString()转换时非属性方法空指针异常排查及toJSONString保留null值属性
就是规范命名,与类属性无关的方法不要以get/is开头,向我这个类里面getRealName只是将name进行了处理,并不是作为一个类属性使用,所以我们将该方法改成handleRealName()或者其他即可。它会把所有符合以get开头的方法拿出来然后把它转成属性进行设置,所有他会在转method02方法的时候调用了getRealName()方法,而method02方法中name并没有设置值,所有才出现了空指针异常。我们还会发现为空的属性,toJSONStirng的时候不打印。不过建议还是规范命名。原创 2024-04-26 11:23:53 · 755 阅读 · 0 评论 -
maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its转载 2017-11-01 09:01:51 · 4034 阅读 · 0 评论 -
Tomcat启动报错---java.util.concurrent.ExecutionException,ClassNotFoundException异常
Tomcat启动报错如下:java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/EFP]] at j原创 2017-10-31 17:51:44 · 3221 阅读 · 0 评论 -
java.lang.OutOfMemoryError: PermGen space异常解决方案
1.PermGen space简介PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大内存。2.内存益出原因: 2.1:这一部分用于存放Class和Meta的信息,Class在被 Load的时候被放入PermGen space区域,...原创 2017-12-13 16:30:44 · 1988 阅读 · 0 评论 -
异常:Invalid character found in method name. HTTP method names must be tokens
1.异常截图:2.异常内容java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11Input...原创 2018-06-26 10:10:21 · 42830 阅读 · 2 评论 -
URL传输异常:Invalid character found in the request target
1.异常详情java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.InternalInputBuffer.pars...原创 2018-07-05 16:34:22 · 2123 阅读 · 0 评论