java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)

GitHub | sylcai | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    JRE 9 - optifine causes failure to boot

    GitHub | 10 months ago | sylcai
    java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)
  2. 1

    Error when moving tesseract

    GitHub | 2 years ago | da3dsoul
    java.lang.ClassCastException: me.planetguy.remaininmotion.spectre.TileEntitySupportiveSpectre cannot be cast to cofh.api.tileentity.IRedstoneControl [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:36) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:51:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:30] [Client thread/ERROR] [ThermalExpansion]: Packet payload failure! Please check your config files! [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:37) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.RenderPacket.Handle(RenderPacket.java:97) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.Message.onMessage(Message.java:33) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at me.planetguy.remaininmotion.network.Message.onMessage(Message.java:15) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:30] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [06:54:33] [Client thread/ERROR] [ThermalExpansion]: Packet payload failure! Please check your config files! [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.thermalexpansion.network.PacketTEBase.handlePacket(PacketTEBase.java:37) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketCoFHBase.handleClientSide(PacketCoFHBase.java:364) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:98) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cofh.core.network.PacketHandler.decode(PacketHandler.java:40) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1590) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:961) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.client.main.Main.main(SourceFile:148) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at java.lang.reflect.Method.invoke(Method.java:606) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [06:54:33] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.ClassCastException

      jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)

      at net.minecraft.launchwrapper.Launch.<init>()
    2. Minecraft
      Launch.main
      1. net.minecraft.launchwrapper.Launch.<init>(Launch.java:33)
      2. net.minecraft.launchwrapper.Launch.main(Launch.java:27)
      2 frames