Jump to content

Welcome to FTB Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

BukkitForge with custom plugin - Failed to remap class


6 replies to this topic

#1
WareManu

WareManu

    Newbie

  • Members
  • Pip
  • 6 posts
  • IGN:HydroTekZ
  • Modpack:FTB Unleashed
I am trying to add a custom plugin, but it somehow refuse to load properly. I have tried both BukkitForge and MCPC+, neither works. When I try to only import BukkitForge (not bukkit/craftbukkit), I am getting this error:
7d106a00b1aa8a5f1de51c459392b3d8.png
And when I import bukkit/craftbukkit I am getting the error down below. I have tried to only use BukkitForge and Ebean as build path jars, didn't help a bit. I can also say that I have tried multiple versions of BukkitForge and MCPC+. Btw, MCPC+ couldn't load any plugins (same type of error as below), but BukkitForge failed only to load my custom plugin. Does anyone have an idea how I can fix this?
 
Error:
2016-01-02 04:55:23 [SEVERE] [BukkitForge] Could not load '.\plugins\Spillere.no.jar' in folder '.\plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: Failed to remap class no.spillere.plugin.ftb.FtbPlugin
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:176)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:232)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:816)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:219)
        at keepcalm.mods.bukkit.asm.BukkitStarter.run(BukkitStarter.java:47)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Failed to remap class no.spillere.plugin.ftb.FtbPlugin
        at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:433)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:347)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:323)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:165)
        ... 6 more
Caused by: java.lang.IllegalArgumentException
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at net.md_5.specialsource.RemapperPreprocessor.preprocess(RemapperPreprocessor.java:83)
        at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:389)
        ... 13 more
FtbPlugin.java:
package no.spillere.plugin.ftb;
 
import org.bukkit.plugin.java.JavaPlugin;
 
import no.spillere.plugin.ftb.listeners.*;
 
public class FtbPlugin extends JavaPlugin {
 
    public BlockListener BlockListener;
    public EntityListener EntityListener;
 
 
    public void onEnable() {
        try {
            BlockListener = new BlockListener(this);
            EntityListener = new EntityListener(this);
            getServer().getPluginManager().registerEvents(BlockListener, this);
            getServer().getPluginManager().registerEvents(EntityListener, this);
            System.out.println("Spillere.no: Pluginen startet!");
 
        } catch (Exception e){
            e.printStackTrace();
            System.out.println("Spillere.no: Kunne ikke starte pluginen.");
        }
    }
}
plugin.yml:
name: Spillere.no
author: [HydroTekZ]
main: no.spillere.plugin.ftb.FtbPlugin
version: 1.0


#2
felinoel

felinoel

    Steampunk Alchemist

  • Administrators
  • 3860 posts
  • Location:Somewhere, possibly?
  • IGN:felinoel
  • Modpack:FTB Mage Quest

Plugins aren't really what we cover at this wiki but someone might be able to answer you here?


Watch all of my different Let's Play series, Minecraft and more!
player.me/felinoel


We need to make default article pages! Discuss their designs here!

#3
WareManu

WareManu

    Newbie

  • Members
  • Pip
  • 6 posts
  • IGN:HydroTekZ
  • Modpack:FTB Unleashed

Plugins aren't really what we cover at this wiki but someone might be able to answer you here?

Hope so, my FTB Unleashed server need this plugin.



#4
WareManu

WareManu

    Newbie

  • Members
  • Pip
  • 6 posts
  • IGN:HydroTekZ
  • Modpack:FTB Unleashed

Bump



#5
SirPersonJr

SirPersonJr

    Advanced Member

  • Administrators
  • 72 posts
  • IGN:SirPersonJr
  • Modpack:Private Pack

I have no experience with custom plugins. However, that being said my suggestion would be to make sure your java is up to date. Also something is wrong with EbeanServer, try doing different stuff with that.



#6
WareManu

WareManu

    Newbie

  • Members
  • Pip
  • 6 posts
  • IGN:HydroTekZ
  • Modpack:FTB Unleashed

Bump again, I hope somebody knows anything.

 

 

I have no experience with custom plugins. However, that being said my suggestion would be to make sure your java is up to date. Also something is wrong with EbeanServer, try doing different stuff with that.

Java is up to date, not sure what else I can try which I haven't already tried.



#7
timrem

timrem

    Advanced Member

  • Administrators
  • 1275 posts
  • Location:NJ, USA
  • Modpack:Direwolf20 1.7 Pack

This tutorial declares the custom plugin class as "final". That might not be the solution to your problem, but perhaps something else in the tutorial will help you find out what's gone wrong.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users