ppbjzf 2021-09-06 14:17 采纳率: 100%
浏览 147
已结题

idea启动tomcat报错java.lang.NoSuchMethodError

Error:Internal error: (java.lang.NoClassDefFoundError) Could not initialize class com.intellij.util.io.FileChannelUtil
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.util.io.FileChannelUtil
at com.intellij.util.io.ReadWriteDirectBufferWrapper$FileContext$1.execute(ReadWriteDirectBufferWrapper.java:50)
at com.intellij.util.io.ReadWriteDirectBufferWrapper$FileContext$1.execute(ReadWriteDirectBufferWrapper.java:42)
at com.intellij.openapi.util.io.FileUtilRt.doIOOperation(FileUtilRt.java:945)
at com.intellij.util.io.ReadWriteDirectBufferWrapper$FileContext.(ReadWriteDirectBufferWrapper.java:42)
at com.intellij.util.io.ReadWriteDirectBufferWrapper.create(ReadWriteDirectBufferWrapper.java:27)
at com.intellij.util.io.DirectBufferWrapper.getBuffer(DirectBufferWrapper.java:24)
at com.intellij.util.io.ReadWriteDirectBufferWrapper.getBuffer(ReadWriteDirectBufferWrapper.java:16)
at com.intellij.util.io.PagedFileStorage$StorageLock.createValue(PagedFileStorage.java:631)
at com.intellij.util.io.PagedFileStorage$StorageLock.get(PagedFileStorage.java:558)
at com.intellij.util.io.PagedFileStorage$StorageLock.access$500(PagedFileStorage.java:466)
at com.intellij.util.io.PagedFileStorage.getBufferWrapper(PagedFileStorage.java:407)
at com.intellij.util.io.PagedFileStorage.getBuffer(PagedFileStorage.java:371)
at com.intellij.util.io.PagedFileStorage.putInt(PagedFileStorage.java:144)
at com.intellij.util.io.ResizeableMappedFile.putInt(ResizeableMappedFile.java:222)
at com.intellij.util.io.PersistentEnumeratorBase.markDirty(PersistentEnumeratorBase.java:597)
at com.intellij.util.io.PersistentEnumeratorBase.(PersistentEnumeratorBase.java:185)
at com.intellij.util.io.PersistentBTreeEnumerator.(PersistentBTreeEnumerator.java:73)
at com.intellij.util.io.PersistentEnumeratorDelegate.(PersistentEnumeratorDelegate.java:47)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:149)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:138)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:129)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:121)
at com.intellij.util.io.PersistentHashMap.(PersistentHashMap.java:114)
at org.jetbrains.jps.incremental.storage.AbstractStateStorage.createMap(AbstractStateStorage.java:124)
at org.jetbrains.jps.incremental.storage.AbstractStateStorage.(AbstractStateStorage.java:27)
at org.jetbrains.jps.incremental.storage.FileTimestampStorage.(FileTimestampStorage.java:27)
at org.jetbrains.jps.incremental.storage.ProjectStamps.(ProjectStamps.java:39)
at org.jetbrains.jps.incremental.storage.ProjectTimestamps.(ProjectTimestamps.java:19)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:92)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:274)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:130)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:232)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)

img

  • 写回答

2条回答 默认 最新

  • CSDN专家-sinJack 2021-09-06 14:19
    关注

    idea文件的报错,可能idea配置文件有问题。你运行普通java类看看正常吗。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月14日
  • 已采纳回答 9月6日
  • 创建了问题 9月6日

悬赏问题

  • ¥15 vs2022无法联网
  • ¥15 TCP的客户端和服务器的互联
  • ¥15 VB.NET操作免驱摄像头
  • ¥15 笔记本上移动热点开关状态查询
  • ¥85 类鸟群Boids——仿真鸟群避障的相关问题
  • ¥15 CFEDEM自带算例错误,如何解决?
  • ¥15 有没有会使用flac3d软件的家人
  • ¥20 360摄像头无法解绑使用,请教解绑当前账号绑定问题,
  • ¥15 docker实践项目
  • ¥15 利用pthon计算薄膜结构的光导纳