GVKun编程网logo

打开jsp页面时的java.lang.OutOfMemoryError(PermGen空间)和java.lang.ClassNotFoundException

23

本文将为您提供关于打开jsp页面时的java.lang.OutOfMemoryError的详细介绍,我们还将为您解释PermGen空间和java.lang.ClassNotFoundException

本文将为您提供关于打开jsp页面时的java.lang.OutOfMemoryError的详细介绍,我们还将为您解释PermGen空间和java.lang.ClassNotFoundException的相关知识,同时,我们还将为您提供关于'java.lang.NoClassDefFoundError 由 java.lang.ClassNotFoundException 引起的 Ljava/util/Base64 解析失败 未找到类“java.util.Base64”、Exception in thread "JFinal-Scanner" java.lang.OutOfMemoryError: PermGen space、exception java.lang.OutOfMemoryError: Java heap space、fastjson导致java.lang.OutOfMemoryError: PermGen spac的实用信息。

本文目录一览:

打开jsp页面时的java.lang.OutOfMemoryError(PermGen空间)和java.lang.ClassNotFoundException

打开jsp页面时的java.lang.OutOfMemoryError(PermGen空间)和java.lang.ClassNotFoundException

我使用SpringSource Tool Suite
3.0.1,Tomcat服务器7.0.21,maven-2.2.1。我成功构建了Web应用程序,并运行Tomcat服务器。该应用程序成功运行。重新启动Tomcat服务器后,我依次看到网页login.jsp上的下一个错误和异常:

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen spacetype Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen space    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)root causejava.lang.OutOfMemoryError: PermGen space    java.lang.ClassLoader.defineClass1(Native Method)    java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)    java.lang.ClassLoader.defineClass(ClassLoader.java:615)    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)    java.net.URLClassLoader.defineClass(URLClassLoader.java:283)    java.net.URLClassLoader.access$000(URLClassLoader.java:58)    java.net.URLClassLoader$1.run(URLClassLoader.java:197)    java.security.AccessController.doPrivileged(Native Method)    java.net.URLClassLoader.findClass(URLClassLoader.java:190)    java.lang.ClassLoader.loadClass(ClassLoader.java:306)    java.lang.ClassLoader.loadClass(ClassLoader.java:247)    org.eclipse.jdt.internal.compiler.parser.Parser.createJavadocParser(Parser.java:8256)    org.eclipse.jdt.internal.compiler.parser.Parser.<init>(Parser.java:889)    org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:685)    org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:283)    org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:204)    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:442)    org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)    org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)    org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.21 logs.

type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionorg.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.login_jsp    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:178)    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)    org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)root causejava.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.views.login_jsp    java.net.URLClassLoader$1.run(URLClassLoader.java:202)    java.security.AccessController.doPrivileged(Native Method)    java.net.URLClassLoader.findClass(URLClassLoader.java:190)    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)    org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)    org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.21 logs.

login.jsp-主页由SpringSecurity配置。

我不明白问题的根源,因为我没有重建项目。之后,我尝试几种错误恢复方法:

  • 刷新项目
  • 清理并重建项目
  • 更新Maven依赖项
  • 清理Tomcat工作目录
  • 服务器菜单中的清理…按钮

没有什么办法对我没有帮助。但是应用程序的内部逻辑可以正常工作(它与Web界面无关)。我得到适当的日志消息。但是,一旦打开页面login.jsp,我就会收到错误消息。然后,我尝试恢复到该项目的先前稳定版本。不幸的是我遇到了同样的错误。

登录控制台在显示错误消息之前在页面logon.jsp上显示以下消息:

02.04.2012 11:22:41 org.apache.jasper.compiler.TldLocationsCache tldScanJarINFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.02.04.2012 11:22:44 org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [appServlet] in context with path [/main] threw exception [Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen space] with root causejava.lang.OutOfMemoryError: PermGen space

我发现了类似的问题:http : //www.mail-
archive.com/users@tomcat.apache.org/msg54797.html和http://wiki.metawerx.net/wiki/Org.apache.jasper.JasperException。但这并没有帮助我。

如何解决这个问题呢?

答案1

小编典典

对于OutOfMemory错误,请确保已设置以下参数(并设置了适当的值)

-Xmx1024m -XX:MaxPermSize=512m

编辑:

512m1024m 只是建议!您可能需要将这些设置添加到硬件资源中。

通常,您应该从大约128m处开始,每次遇到OutOfMemory错误时,请尝试将分配的数量增加一倍。

例如:

  • 您拥有256m的MaxPermSize并获得OutOfMemory-新的阈值应设置为512m

  • 您拥有512m的MaxPermSize并获得OutOfMemory-新的阈值应设置为1G

有关调整JVM参数的更多详细信息,可以在Oracle的Java官方文档中找到。

'java.lang.NoClassDefFoundError 由 java.lang.ClassNotFoundException 引起的 Ljava/util/Base64 解析失败 未找到类“java.util.Base64”

'java.lang.NoClassDefFoundError 由 java.lang.ClassNotFoundException 引起的 Ljava/util/Base64 解析失败 未找到类“java.util.Base64”

如何解决''java.lang.NoClassDefFoundError 由 java.lang.ClassNotFoundException 引起的 Ljava/util/Base64 解析失败 未找到类“java.util.Base64”?

我收到此错误,我已阅读该错误以解决它我必须将 import java.util.Base64 替换为 import android.util.Base64 但在我的整个项目中我只发现 Base68 result = Base64.getEncoder().encodetoString(macData); 的唯一用法 我该如何解决?而且我不能用 android.util.Base.64 替换 java.util.Base64 因为这行代码在后端

解决方法

这很不幸 - 这意味着您正在使用某个库,而那个库正在尝试使用 /i。 Android 选择了 Java 库,就像 android 发布时一样,现在已经是很久以前的事了。从那以后它们就没有真正更新过。 (那个 oracle v google 法庭案件可能没有帮助……)

java.util.Base64 已添加到 https://forge.autodesk.com/en/docs/design-automation/v3/reference/cmdLine/cmdLine-inventor/(有关此信息,请参阅 javadoc 中的“since”行;任何“1.6”或以下,或者如果没有“since”行,肯定可用在 android 上。其他东西通常不是)。 java 8 现在已经 7 岁了,因此不是专门为 android 设计的库越来越有可能开始使用这些非 android 库调用。

检查堆栈跟踪,您会找到正在执行此操作的库。恐怕除了停止使用这个库之外别无他法。您可以尝试在您的应用程序中粘贴 juBase64 impl,但这会相对棘手,因为这可能涉及一些法律问题,因此,要么没有人这样做,要么如果他们这样做,他们可能不会宣传如何。

您可以要求这个库使用第三方库来做 base64 工作,但他们可能不想这样做,这可能不是库无法在 android 上运行的唯一问题。

如果 android 变体是一个替代品,你可以重写这个库的类文件,但这也是一个有点笨拙、笨拙的概念,并不完全困难,但因为这不是一件正常的事情,而且通常积极不喜欢,我认为您无法轻松找到有关如何操作的文档。

因此,建议:尝试寻找另一个图书馆。

Exception in thread

Exception in thread "JFinal-Scanner" java.lang.OutOfMemoryError: PermGen space

@JFinal 你好,想跟你请教个问题:

exception java.lang.OutOfMemoryError: Java heap space

exception java.lang.OutOfMemoryError: Java heap space

 

1.情景展示

  java内存溢出异常,将程序代码问题排除在外,如何增大JVM的使用内存?

2.解决方案

   在eclipse中的解决办法:增大你要运行的测试类的内存分配。

  点击运行或debug按钮旁的倒三角--》Run Configurations...

  默认选中的就是你刚才报错的测试类,如果没有按照这种格式新建

  切换到arguments视图--》配置最大内存:-Xmx1024m,单位可以是m/g。

3.JVM最大可分配内存

  在排除电脑硬件的可运行内存的情况下,分配最大JVM内存与JVM版本、操作系统版本有关;

  比如: jdk1.7,32bit,最大可用内存为1400M;

  如何测试你的JVM机的最大可分配内存为多少?

  前提:已经配置了JDK的环境变量。

  win+r-->cmd-->java -Xmx1024m-->回车,如果没有报错就表示:指定的内存大小可用,否则会打印错误信息。

  单位可以是m或g;

  按照这种方法进行测试即可。

 

写在最后

  哪位大佬如若发现文章存在纰漏之处或需要补充更多内容,欢迎留言!!!

 相关推荐:

  • 个人主页

 

 

fastjson导致java.lang.OutOfMemoryError: PermGen spac

fastjson导致java.lang.OutOfMemoryError: PermGen spac

fastjson 1.2.5 

从携程获取机票订单详情的时候,返回的json对象较为复杂且内容巨多,同事通过fastjson解析成java对象。用户每次请求都会执行如下代码片段:

ParserConfig,XmlDateTypeDeserializer,DateTypeDeserializerS这三个类是工具类为什么要每次请求的时候都要new呢,明显可以作为工具使用,先不纠结这个。咱先重现内存溢出,永久代的内存溢出,模拟http请求,同时发起1000个,果然内存溢出了。

1.通过jsp -l 发现jetty 容器的pid=2557

 

2. jstat -gc 2557 250 20

 

发现jvm一直在进行ygc和fgc,而且永久代已经用完了,难道上述代码真能引起PermGen spac吗?我们知道永久带主要是存储的是java的类信息,包括解析得到的方法、属性、字段,深入java虚拟机中介绍常量池也是属于永久代,永久代=方法区+运行时常量池。

3.jmap -histo -F 2557  加上"-F"就会强制执行 显示对中的对象统计信息

 

发现json在使用asm生产了很多代理类

初步猜想是fastjson在通过动态代理的时候生成了代理类,每次请求都会生成新的代理,导致永久代一直加载新的类信息,结果PermGen spac出现了。

4.查看代码验证猜想,把 ParserConfig,XmlDateTypeDeserializer,DateTypeDeserializer放到静态块内初始化,这样三个类只有一个实例,通过修改代码并测试,发现少了ASM生成的动态代理类,异常也不见了。

5.这到底是为什么呢?为什么在new ParserConfig,XmlDateTypeDeserializer,DateTypeDeserializer这个三个类的时候会生成很多代理呢?并且还有其他动态代理类出现了,继续研究fastjson源码。

关于打开jsp页面时的java.lang.OutOfMemoryErrorPermGen空间和java.lang.ClassNotFoundException的介绍已经告一段落,感谢您的耐心阅读,如果想了解更多关于'java.lang.NoClassDefFoundError 由 java.lang.ClassNotFoundException 引起的 Ljava/util/Base64 解析失败 未找到类“java.util.Base64”、Exception in thread "JFinal-Scanner" java.lang.OutOfMemoryError: PermGen space、exception java.lang.OutOfMemoryError: Java heap space、fastjson导致java.lang.OutOfMemoryError: PermGen spac的相关信息,请在本站寻找。

本文标签: