(Eclipse)在:"装饰计算"期间发生内部错误。 Ubuntu 14.10中的java.lang.StackOverflowError

时间:2014-12-09 07:50:07

标签: javascript java eclipse

我正在使用Eclipse 4.3构建一个java网站。今天,当我启动我的tomcat服务器时,我的Eclipse显示以下错误:An internal error occurred during: "Decoration Calculation". java.lang.StackOverflowError

java.lang.StackOverflowError
    at org.eclipse.wst.jsdt.internal.core.index.DiskIndex.readCategoryTable(DiskIndex.java:580)
    at org.eclipse.wst.jsdt.internal.core.index.DiskIndex.addQueryResults(DiskIndex.java:199)
    at org.eclipse.wst.jsdt.internal.core.index.Index.query(Index.java:154)
    at org.eclipse.wst.jsdt.internal.core.search.matching.TypeDeclarationPattern.queryIn(TypeDeclarationPattern.java:406)
    at org.eclipse.wst.jsdt.internal.core.search.matching.InternalSearchPattern.findIndexMatches(InternalSearchPattern.java:92)
    at org.eclipse.wst.jsdt.internal.core.search.matching.MatchLocator.findIndexMatches(MatchLocator.java:407)
    at org.eclipse.wst.jsdt.internal.core.search.PatternSearchJob.search(PatternSearchJob.java:116)
    at org.eclipse.wst.jsdt.internal.core.search.PatternSearchJob.execute(PatternSearchJob.java:66)
    at org.eclipse.wst.jsdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:280)
    at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllBindingNames(BasicSearchEngine.java:689)
    at org.eclipse.wst.jsdt.internal.core.NameLookup.findBindingSearch(NameLookup.java:2168)
    at org.eclipse.wst.jsdt.internal.core.NameLookup.findBinding(NameLookup.java:829)
    at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findBinding(SearchableEnvironment.java:192)
    at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findBinding(SearchableEnvironment.java:339)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.askForBinding(LookupEnvironment.java:252)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:249)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:2156)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getBinding(Scope.java:1136)
    at org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.resolveType(FieldReference.java:175)
    at org.eclipse.wst.jsdt.internal.compiler.ast.FieldReference.resolveType(FieldReference.java:138)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:226)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:137)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:456)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getLocalBinding(Scope.java:1202)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:166)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:137)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:139)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:456)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getLocalBinding(Scope.java:1202)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:166)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:137)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:139)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:456)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getLocalBinding(Scope.java:1202)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:166)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:137)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:139)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:456)
    at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getLocalBinding(Scope.java:1202)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve0(LocalDeclaration.java:166)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:137)
    at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:139)

我不知道为什么会出现这个错误以及如何修复它。有人可以帮助我吗?

2 个答案:

答案 0 :(得分:3)

我在Eclipse Luna中遇到了同样的问题。我尝试了很多解决方案,但没有任何效果。我可以在堆栈跟踪中看到问题出在JavaScript开发工具(JSDT)上,即使我的项目只是一个javascript项目,这也是我遇到的问题。

解决方案是通过转到Windows - 首选项 - 常规 - 外观 - 标签装饰来删除javascript标签装饰,如下所示,并取消选中Javascript覆盖功能指示器: enter image description here

答案 1 :(得分:1)

考虑4.4.1或4.5M1版本。早些时候遇到这个问题并找到了eclipse bug。希望这有帮助