java.lang.InternalError:名称太长,无法表示 [英] java.lang.InternalError: name is too long to represent

查看:376
本文介绍了java.lang.InternalError:名称太长,无法表示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

java.lang.InternalError: name is too long to represent
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)

似乎与某些调试功能有关(实际上,删除-Xdebug命令行选项后错误消失了).我还在 ASF Bugzilla 中找到了一些信息.有办法解决吗?

Which seems related to some debug functionality (in fact removing -Xdebug command line option the error disappears). I've also found some information in ASF Bugzilla. Is there a way to solve this?

我可以想到的解决方案是更改JVM(使用应该没有此问题的JRockit),但我真的不知道这是否可以解决问题以及是否可以解决其他问题.

Possible solutions I can think of are to change the JVM (using JRockit which should't have this issue), but I do not really know if this can solve the issue and if it can break something else.

推荐答案

更新以下原始答案中提到的错误现已关闭!

update The bug mentioned in the original answer below has now been closed!

如您所引用的文章中所述,这是一个错误在Sun/Oracle JVM实现中.在撰写本文时,它尚未解决.

As noted in the article that you reference, this is a bug in the Sun/Oracle JVM implementation. At the time of writing, it is unresolved.

我可以想到三种解决此问题的方法:

I can think of three ways to work around the issue:

  1. 完全不生成SMAP文件(例如:不要与-Xdebug一起运行或不使用类似于preventSmap的设置)
  2. 尝试确保调试信息的大小较小(例如:减小代码的大小)
  3. 使用其他虚拟机实现.

这篇关于java.lang.InternalError:名称太长,无法表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆