在你因为低级别信息而活活烧死我之前,让我解释一下为什么......我真的不明白这个错误来自哪里......所以我不知道我可能会搞砸
这基本上是一个错误有时会出现这种情况,我能解决的唯一方法是重新安装 Netbeans 和 Glassfish,并祈祷不要回来。
我随机更改了一些课程,然后砰!出现此错误。到目前为止,我什至无法删除我编写的所有代码。
Glassfish 给了我这个错误(日志中有更多内容,但我想它不值得放在这里):
Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file com/enterprise/dao/SomeClassDao
有趣的是......我没有改变这个类,它与我正在研究的那个没有任何关系!
提前致谢!