Jump to content

[1.8.9] Crash...


Fuffles

Recommended Posts

Hello Dear Modders,

 

Im stumbling upon a problem of a java.lang.ClassNotFoundException

 

Full Error

Spoiler

[Client thread/ERROR] [FML]: An error occured trying to load a proxy into {serverSide=com.fuffles.tcc.common.CommonProxy, clientSide=com.fuffles.tcc.proxy.ClientProxy}.com.fuffles.tcc.TCCMain
java.lang.ClassNotFoundException: com.fuffles.tcc.proxy.ClientProxy
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_121]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_121]
    at net.minecraftforge.fml.common.ModClassLoader.loadClass(ModClassLoader.java:65) ~[ModClassLoader.class:?]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_121]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_121]
    at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:64) [ProxyInjector.class:?]
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:540) [FMLModContainer.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) [LoadController.class:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) [LoadController.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:360) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.NullPointerException
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
    ... 45 more

annd the code

Spoiler

public class ClientProxy extends CommonProxy
{
    public class ItemModelEntry
    {
        public ItemModelEntry(Item item, int metadata, String name, boolean variant) 
        {
            
        }
    }

    private static ArrayList<ClientProxy.ItemModelEntry> itemsToRegister = new ArrayList();
    
    public void registerItemMesh(Item item, int metadata, String name, boolean variant)
    {
        itemsToRegister.add(new ClientProxy.ItemModelEntry(item, metadata, name, variant));
    }
}

Sorry if the mistake is obvious, Im really blind at times

Link to comment
Share on other sites

13 minutes ago, HashtagShell said:

(The ItemModelEntry class can be static.)

 

Can we get the class where the proxy is declared? Probs the main mod class.

TCCMain
Code for decalration
 

@SidedProxy(clientSide = TCCGlobal.TCC_CLIENT_PROXY, serverSide = TCCGlobal.TCC_SERVER_PROXY)
	public static CommonProxy proxy;

Code in TCCGlobal

public static final String TCC_CLIENT_PROXY = "com.fuffles.tcc.proxy.ClientProxy";
public static final String TCC_SERVER_PROXY = "com.fuffles.tcc.common.CommonProxy";

 

Edited by Fuffles
Link to comment
Share on other sites

8 hours ago, diesieben07 said:

So you don't import anything? You don't have a package declaration?

ofc I do, just didnt think those were important

but well

here is everything

Spoiler

package com.fuffles.tcc.client;

import java.util.ArrayList;

import com.fuffles.tcc.common.CommonProxy;

import net.minecraft.item.Item;

public class ClientProxy extends CommonProxy
{
    public class ItemModelEntry
    {
        public ItemModelEntry(Item item, int metadata, String name, boolean variant) 
        {
            
        }
    }

    private static ArrayList<ClientProxy.ItemModelEntry> itemsToRegister = new ArrayList();
    
    public void registerItemMesh(Item item, int metadata, String name)
    {
        itemsToRegister.add(new ClientProxy.ItemModelEntry(item, metadata, name, false));
    }
      
    public void registerItemMesh(Item item, int metadata, String name, boolean variant)
    {
        itemsToRegister.add(new ClientProxy.ItemModelEntry(item, metadata, name, variant));
    }
}
 

 

Link to comment
Share on other sites

Spoiler

package com.fuffles.tcc.client;

public static final String TCC_CLIENT_PROXY = "com.fuffles.tcc.proxy.ClientProxy";

 

 

Your package declaration and String of your ClientProxy don't match up.

 

 

Edited by larsgerrits

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

4 hours ago, larsgerrits said:
  Hide contents

package com.fuffles.tcc.client;

public static final String TCC_CLIENT_PROXY = "com.fuffles.tcc.proxy.ClientProxy";

 

 

Your package declaration and String of your ClientProxy don't match up.

 

 

Omg... I said I was blind, thanks xD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Ok, so my friend has been trying to enter my minecraft modded server but he keeps getting these errors: Internal Exception: java.lang.StringIndexOutOfBoundsException: offset 108, count 101, length 141 and Internal exception: net.minecraft.class_151: Non [a-z0-9/._-] Character in path of location: minecraft:daf\uFFFD\uFFFD\uFFFD\uFFFD\\U\uFFFD\u00115\u0011\uFFFDzK\uFFFDQo, \uFFFD\uFFFD)\uFFFd\uFFFD( Logs: https://mclo.gs/AQjtPE8
    • I figured out that the issues was due to using the wrong version of https://www.curseforge.com/minecraft/mc-mods/werewolves-become-a-beast  thank you Ughar for telling me that I sent the logs wrong, I will keep that in mind for next time I experience an issue
    • can someone help me out I'm trying to figure out why I cannot mind nothing with a pickaxe I tried every type of pickaxe and i'm still not get any material on mine a block plz help ps and i add Load My F***ing Tags and still nothing  
    • Hi! This is my first time creating a mod in Minecraft. It will be for personal use, and the goal is to play creepy/scary music at night. I want it to play without overlapping with Minecraft music (C418, etc.). I have almost finished it, but I don't know how to detect if Minecraft music is playing. I tried accessing a "currentMusic" variable in the MusicManager class via reflection, but it doesn't work.   Class<?> musicManagerClass = musicManager.getClass(); java.lang.reflect.Field currentMusicField = musicManagerClass.getDeclaredField("currentMusic"); currentMusicField.setAccessible(true); currentMusic = (SoundInstance) currentMusicField.get(musicManager); Does anyone know how to do it?
    • Please I need help if anyone can I will leave the log below         [15jun2024 18:11:44.134] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, {MINECRAFT_USERNAME}, --version, 1.16.5, --gameDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\profiles\xD, --assetsDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\meta\assets, --assetIndex, 1.16, --uuid, {MINECRAFT_UUID}, --accessToken, ????????, --userType, msa, --versionType, release, --width, 854, --height, 480, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.39, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [15jun2024 18:11:44.136] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_412 by Azul Systems, Inc. [15jun2024 18:11:44.525] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [15jun2024 18:11:44.574] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/{COMPUTER_USERNAME}/AppData/Roaming/com.modrinth.theseus/meta/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=CLIENT [15jun2024 18:11:46.205] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5, --gameDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\profiles\xD, --assetsDir, C:\Users\{COMPUTER_USERNAME}\AppData\Roaming\com.modrinth.theseus\meta\assets, --uuid, {MINECRAFT_UUID}, --username, {MINECRAFT_USERNAME}, --assetIndex, 1.16, --accessToken, ????????, --userType, msa, --versionType, release, --width, 854, --height, 480] [15jun2024 18:11:46.676] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [15jun2024 18:11:46.677] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [15jun2024 18:11:46.677] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [15jun2024 18:11:46.677] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [15jun2024 18:11:46.677] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [15jun2024 18:11:46.678] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [15jun2024 18:11:46.678] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [15jun2024 18:11:46.678] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15jun2024 18:11:46.678] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [15jun2024 18:11:46.678] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [15jun2024 18:11:46.679] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at java.lang.reflect.Method.invoke(Method.java:498) [15jun2024 18:11:46.679] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:37) [15jun2024 18:11:46.679] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [15jun2024 18:11:46.679] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]:     ... 4 more [15jun2024 18:11:46.679] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]: Caused by: java.lang.NoSuchMethodError: org.apache.logging.log4j.core.impl.ThrowableProxy.formatExtendedStackTraceTo(Ljava/lang/StringBuilder;Ljava/util/List;Lorg/apache/logging/log4j/core/pattern/TextRenderer;Ljava/lang/String;Ljava/lang/String;)V [15jun2024 18:11:46.680] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at cpw.mods.modlauncher.log.TransformingThrowablePatternConverter.generateEnhancedStackTrace(TransformingThrowablePatternConverter.java:87) [15jun2024 18:11:46.680] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraftforge.fml.CrashReportExtender.generateEnhancedStackTrace(CrashReportExtender.java:65) [15jun2024 18:11:46.680] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraftforge.fml.CrashReportExtender.generateEnhancedStackTrace(CrashReportExtender.java:55) [15jun2024 18:11:46.680] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.crash.CrashReport.func_71498_d(CrashReport.java:119) [15jun2024 18:11:46.680] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.crash.CrashReport.func_71502_e(CrashReport.java:135) [15jun2024 18:11:46.681] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.crash.CrashReport.func_230188_h_(CrashReport.java:248) [15jun2024 18:11:46.681] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     at net.minecraft.client.main.Main.main(Main.java:122) [15jun2024 18:11:46.681] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:644]:     ... 10 more    
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.