2014-11-22 69 views
5

大約一個星期後,我開始在OS X 10.10上使用Intelij Idea 14社區版,沒有任何重大問題,今天早上我收到這個錯誤,當我嘗試編譯或運行我的最後一個java項目:無法在intelij上編譯java項目Idea 14 CE

Error:java: Internal error: java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:267) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:295) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:282) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType.(TypeRepr.java:190) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:302) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:282) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType.(TypeRepr.java:190) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:302) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:282) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType.(TypeRepr.java:190) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:302) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:282) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType.(TypeRepr.java:190) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:302) at org.jetbrains.jps.builders.java.dependencyView.TypeRepr$1.read(TypeRepr.java:282) at org.jetbrains.jps.builders.java.dependencyView.ClassRepr.(ClassRepr.java:257) at org.jetbrains.jps.builders.java.dependencyView.ClassRepr$2.read(ClassRepr.java:389) at org.jetbrains.jps.builders.java.dependencyView.ClassRepr$2.read(ClassRepr.java:381) at org.jetbrains.jps.builders.java.dependencyView.ObjectObjectPersistentMultiMaplet$CollectionDataExternalizer.read(ObjectObjectPersistentMultiMaplet.java:259) at org.jetbrains.jps.builders.java.dependencyView.ObjectObjectPersistentMultiMaplet$CollectionDataExternalizer.read(ObjectObjectPersistentMultiMaplet.java:237) at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:518) at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:451) at org.jetbrains.jps.builders.java.dependencyView.ObjectObjectPersistentMultiMaplet$1.createValue(ObjectObjectPersistentMultiMaplet.java:53) at org.jetbrains.jps.builders.java.dependencyView.ObjectObjectPersistentMultiMaplet$1.createValue(ObjectObjectPersistentMultiMaplet.java:48) at com.intellij.util.containers.SLRUCache.get(SLRUCache.java:46) at org.jetbrains.jps.builders.java.dependencyView.ObjectObjectPersistentMultiMaplet.get(ObjectObjectPersistentMultiMaplet.java:76) at org.jetbrains.jps.builders.java.dependencyView.Mappings$Differential.differentiate(Mappings.java:1985) at org.jetbrains.jps.builders.java.dependencyView.Mappings.differentiateOnIncrementalMake(Mappings.java:2038) at org.jetbrains.jps.builders.java.JavaBuilderUtil.updateMappings(JavaBuilderUtil.java:99) at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:326) at org.jetbrains.jps.incremental.java.JavaBuilder.doBuild(JavaBuilder.java:204) at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:176) at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1140) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:826) at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:894) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:789) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:612) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:352) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:191) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:131) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:229) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:158) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

謝謝。

回答

8
  • 在菜單「Build> Rebuild project」中。
  • 在菜單「File> Invalidate caches/Restart ...> Invalidate and Restart」中。
  • 刪除上次安裝/啓用的插件(如果有)。
  • 入住依賴(尤其是循環依賴)「文件>項目結構...>模塊」
  • 的最後機會:讓備份&從項目目錄中刪除.idea文件夾,並從頭開始創建新的項目。
+0

謝謝你的回答,但它沒有解決問題,我仍然有同樣的錯誤。 – Yorlink 2014-11-22 17:52:41

+1

刪除.idea文件夾並創建新項目後,它工作正常,謝謝! – Yorlink 2014-11-22 18:22:51

+0

我有同樣的問題,試過所有的建議,仍然不工作=/ – Bubuntux 2014-12-23 16:44:23

11
  • 在菜單「Build> Rebuild project」中。
+0

謝謝。那解決了我的問題 – mstzn 2015-02-20 16:51:08

+0

謝謝!你的建議爲我解決了同樣的錯誤! – 2015-05-07 13:01:45

+0

由於Groovy編譯錯誤,我來到這個頁面,重建足以讓事情進入正常狀態。 – Dmitri 2016-01-12 07:46:57

相關問題