无法在intelij Idea 14 CE上编译java项目

f2uvfpb9  于 2023-03-21  发布在  Java
关注(0)|答案(6)|浏览(133)

About a week from now i started using Intelij Idea 14 Community Edition on OS X 10.10 without any significant problem and since this morning i get this error when i try to compile or run my last java project :
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)
Thank you.

iih3973s

iih3973s1#

  • 在菜单“Build〉Rebuild project”中。
  • 在菜单“文件〉无效缓存/重新启动...〉无效并重新启动”。
  • 删除最后安装/启用的插件(如果有)。
  • 在“文件〉项目结构...〉模块”中检查依赖关系(尤其是循环依赖关系)
  • 最后的机会:从你的项目目录中删除.idea文件夹并从头开始创建新项目。
smdncfj3

smdncfj32#

  • 在菜单“Build〉Rebuild project”中。
lskq00tm

lskq00tm3#

这很简单,你有以下选项:
1.后藤菜单选项“Build”-〉“Rebuild project”
1.后藤菜单“文件”-〉“无效缓存/重新启动...”-〉“无效并重新启动”。

az31mfrm

az31mfrm4#

我尝试了上面的方法,但都没有效果。最后我通过刷新maven依赖解决了这个问题。

wtzytmuj

wtzytmuj5#

我尝试了上面提到的每一种方法,但这个编译错误仍然出现,直到我关闭Mac上的“shadowsocks”,它才再次出现。

km0tfn4u

km0tfn4u6#

我退出并重新启动intelliJ并删除了文件夹,它开始工作

相关问题