Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup failiure #17

Open
Tombik opened this issue Oct 16, 2011 · 23 comments
Open

Startup failiure #17

Tombik opened this issue Oct 16, 2011 · 23 comments

Comments

@Tombik
Copy link

Tombik commented Oct 16, 2011

I get this on server startup:

2011-10-16 17:11:08 [SEVERE] Error occurred while enabling Register v1.5 (Is it up to date?): Could not initialize class com.nijikokun.register.payment.Methods
java.lang.NoClassDefFoundError: Could not initialize class com.nijikokun.register.payment.Methods
at com.nijikokun.register.listeners.server.(server.java:18)
at com.nijikokun.register.Register.onEnable(Register.java:70)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

@Tombik
Copy link
Author

Tombik commented Oct 18, 2011

i have 1185 CB

@Tombik Tombik closed this as completed Oct 18, 2011
@Tombik Tombik reopened this Oct 18, 2011
@Acrobot
Copy link
Contributor

Acrobot commented Oct 21, 2011

Try re-downloading Register.jar, also be sure that you haven't got register in the /lib path.

@Tombik
Copy link
Author

Tombik commented Oct 29, 2011

Hi, i tried a lot of things but i just can't run it. I'm adding more info:

running on CB 1185, i have Register and all .jar things from zip (from file /lib/ in zip) in /lib/ and also i have got Register.jar in /plugins/ from file dist from zip. I have iConomy 6, beta 6.0.5b . But everytime a reload or restart server i get this err:

2011-10-29 13:27:59 [SEVERE] Could not load 'plugins/Register.jar' in folder 'plugins':
java.lang.UnsupportedClassVersionError: com/nijikokun/register/Register : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:168)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:408)
at org.bukkit.Bukkit.reload(Bukkit.java:173)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:349)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

@Acrobot
Copy link
Contributor

Acrobot commented Oct 29, 2011

It seems like the Register.jar is compiled for Java 7.
Can someone re-compile it for Java 6?

@Tombik
Copy link
Author

Tombik commented Oct 29, 2011

So...i cannot use it?

@Acrobot
Copy link
Contributor

Acrobot commented Oct 29, 2011

Yeah, it seems like that at the moment.
I'll try to re-compile it for you.

@Acrobot
Copy link
Contributor

Acrobot commented Oct 29, 2011

@Tombik
Copy link
Author

Tombik commented Oct 29, 2011

I love you man, you are awesome!! :) (works)

@Tombik
Copy link
Author

Tombik commented Oct 29, 2011

Ok, first issues:
on server restart
2011-10-29 20:04:29 [SEVERE] Could not pass event PLUGIN_DISABLE to Register
java.lang.NoClassDefFoundError: Could not initialize class com.nijikokun.register.payment.Methods
at com.nijikokun.register.listeners.server.onPluginDisable(server.java:22)
at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:569)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:946)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:294)
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:287)
at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:315)
at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:381)
at org.bukkit.Bukkit.reload(Bukkit.java:173)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:349)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
and a lot of more same.And on start:
2011-10-29 20:06:03 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
java.lang.NoClassDefFoundError: Could not initialize class com.nijikokun.register.payment.Methods
at com.nijikokun.register.listeners.server.onPluginEnable(server.java:33)
at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:562)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:927)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
at org.bukkit.Bukkit.reload(Bukkit.java:173)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:349)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
and a lot of more same. Also, when trying to use some Register-connected plugin, it doesn't work, it just writes this err to the console (same in all plugins):
2011-10-29 20:00:01 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'loanmoney' in plugin YouLoan v1.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at me.jeroende2e.youloan.CommandHandler.onCommand(CommandHandler.java:74)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
... 12 more

@Acrobot
Copy link
Contributor

Acrobot commented Oct 29, 2011

It seems like your plugin wasn't loaded properly - you, for example, tried running the server when it wasn't downloaded fully.
Just restart the server.
@Tombik

@Tombik
Copy link
Author

Tombik commented Oct 30, 2011

Hi, i'm adding some info about my server. Also, i tried to replace Register.jar and /lib files many times but it didn't work. I still get errs abou PLUGIN_DISABLE and PLUGIN_ENABLE. Here is server info:

root@sandy:~# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

@Acrobot
Copy link
Contributor

Acrobot commented Oct 30, 2011

@Tombik
You shouldn't place Register.jar in your /lib folder. If it is there, delete it.

@moshmage
Copy link

@Acrobot if this works i'm buying a set of new nut bolts for your ^^

@moshmage
Copy link

@Tombik

if you are running the server on a linux box, try this http://www.shinephp.com/install-jdk-7-on-ubuntu/
it worked for me. You'll have t update it sooner or later anyhow :)

*if you're on a windows box, well.. install the JDK/ update, shouldnt be hard to find on google

@Acrobot
Copy link
Contributor

Acrobot commented Nov 14, 2011

@moshmage
So it didn't work? :/

@moshmage
Copy link

This version and Java 1.6? Not so much.
Updating to Oracle Java 1.7? yessir it did.

@Acrobot
Copy link
Contributor

Acrobot commented Nov 15, 2011

@moshmage
Well, this version:
https://github.com/Acrobot/Register/tree/master/dist
right? It didn't work?

@moshmage
Copy link

Yes, the version @https://github.com/Acrobot/Register/tree/master/dist didn't work prior to my update to java 7.

I do not know if it works now, as i'm using the main distro @https://github.com/iConomy/Register/ (again, with JDK7).

@Acrobot
Copy link
Contributor

Acrobot commented Nov 15, 2011

@moshmage
Ok, sure :) I'll try to update it when I have time :P

@999eagle
Copy link

I want to use Showcase, but it needs Register. I've downloaded Register and there are many Errors:

15:47:20 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
 java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.hasMethod()Z
 at com.nijikokun.register.listeners.server.onPluginEnable(server.java:33)
 at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:585)
 at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
 at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
 at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:964)
 at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
 at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
 at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
 at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
 at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
 at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
 at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)

I hope you can help me.

@Acrobot
Copy link
Contributor

Acrobot commented Nov 26, 2011

Your other plugin has included Register in an incorrect way. Mind posting your plugin list?

@999eagle
Copy link

I tested and this issue was created by Showcase

@Tombik
Copy link
Author

Tombik commented Nov 28, 2011

Hi, it's me again. It seems that Register have not problem wit loading (when there are not any plugins using Register). But it loads strangely: firstly it writes that there is none plugin found and that it is using first found (so nonsense). After bunch of another plugin enables it writes that it is hooked into iConomy (6). But i think that problem is that, it loads too lately. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants