[INACTIVE][DEV] Persistence v0.76 - Data-Driven Bukkit [677]

Discussion in 'Inactive/Unsupported Plugins' started by NathanWolf, Jan 29, 2011.

  1. Offline

    NathanWolf

    Persistence - Data-Driven Bukkit

    PLEASE NOTE
    Persistence is a developer API and framework- NOT a game or admin plugin.

    If you've come here looking for plugin/admin support for Spells, Wand, NetherGate or any other plugin that uses Persistence- please turn around and go back to that thread. Thank you for your cooperation!

    If you're a dev, then check the Persistence wiki for information on using the Persistence framework.

    View changelog on github
     
    Duccis likes this.
  2. Offline

    Wulfspider

    Getting this error with CB 493 (recommended) and Persistence 0.56.

    Code:
    11:18:50 [SEVERE] Could not pass event PLAYER_JOIN to Persistence
    java.lang.NullPointerException
            at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermissio
    n(PluginCommand.java:231)
            at com.elmakers.mine.bukkit.plugins.persistence.PersistenceListener.onPl
    ayerJoin(PersistenceListener.java:29)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:125)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:98)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
            at net.minecraft.server.Packet1Login.a(SourceFile:46)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
     
  3. Offline

    NathanWolf

    Arrggg... looking :(

    493 is what I'm running on my public server, but I haven't updated to 0.56 there because 0.55 is working fine for me. Let me test locally a bit.
    --- merged: Mar 6, 2011 4:43 PM ---
    Hrm- does it show up as Persistence 0.56 in the logs? This looks very similar to what I just fixed- maybe something went wrong when I published it?

    I just tested with and without Permissions/PermissionsSupport and it seemed to work both ways.

    I'm about to update my public server, I'll report back if I find issues.
     
  4. Offline

    Wulfspider

    It's the latest one I just downloaded from your link when it said 0.56 was the latest version.

    2011-03-06 11:04:40 [INFO] Persistence: Create a plugins/Persistence/permissions.yml to use internal permissions
    2011-03-06 11:04:40 [INFO] Persistence version 0.56
     
  5. Offline

    matejdro

    Hello? I'm being ignored here.

    @NathanWolf Can't you at least say "sorry, i don't know how to solve your problem" instead of ignoring me?
     
  6. Offline

    Triggjo2

    I did remove them sadly and it works fine now
     
  7. Offline

    acegiak

    Show Spoiler
    @NathanWolf any idea why persistence is giving me this error:
    Code:
    2011-03-07 12:03:51 [INFO] Persistence version 0.56 is enabled
    2011-03-07 12:03:51 [SEVERE] com.elmakers.mine.bukkit.persistence.exception.InvalidPersistedClassException: Class does not ha
    ve the @PersistClass annotation
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.Persistence.getPersistedClass(Persistence.java:3
    56)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.core.PersistedObject.bind(PersistedObject.java:6
    2)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.core.PersistedClass.bindReferences(PersistedClas
    s.java:255)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.Persistence.createPersistedClass(Persistence.jav
    a:390)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.Persistence.getPersistedClass(Persistence.java:4
    31)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.Persistence.getPersistedClass(Persistence.java:3
    59)
    2011-03-07 12:03:51 [SEVERE]    at com.elmakers.mine.craftbukkit.persistence.Persistence.get(Persistence.java:198)
    2011-03-07 12:03:51 [SEVERE]    at acegiak.NpcSpirit.NpcSpirit.onEnable(NpcSpirit.java:96)
    2011-03-07 12:03:51 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    2011-03-07 12:03:51 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    2011-03-07 12:03:51 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    2011-03-07 12:03:51 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    2011-03-07 12:03:51 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    2011-03-07 12:03:51 [SEVERE]    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    2011-03-07 12:03:51 [SEVERE]    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    2011-03-07 12:03:51 [SEVERE]    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    2011-03-07 12:03:51 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    2011-03-07 12:03:51 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-07 12:03:51 [SEVERE] Persistence: Reference field: null has no valid reference type
    2011-03-07 12:03:51 [WARNING] Persistence: Empty DataRow name
    when the persisted class looks like this:
    Code:
    package acegiak.NpcSpirit;
    
    import java.util.HashMap;
    import java.util.Set;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    
    import org.bukkit.block.Block;
    import org.bukkit.entity.Entity;
    import org.bukkit.entity.Player;
    
    import com.elmakers.mine.bukkit.persistence.annotation.PersistClass;
    import com.elmakers.mine.bukkit.persistence.annotation.PersistField;
    
    import redecouverte.npcspawner.BasicHumanNpc;
    
    @PersistClass(name = "soulmanager", schema = "NpcSpirit")
    public class NpcSoulManager {
    
    	public String managername = "smanager";
    	public void setManagername(String managername) {
    		this.managername = managername;
    	}
    	public void setSoulblocks(HashMap<Block, NpcSoul> soulblocks) {
    		this.soulblocks = soulblocks;
    	}
    	@PersistField(id=true)
    	public String getManagername() {
    		return managername;
    	}
    	@PersistField(id=false, auto=true,contained=true)
    	public HashMap<Block, NpcSoul> getSoulblocks() {
    		return soulblocks;
    	}
    
        private HashMap <Block,NpcSoul> soulblocks;
        private static final Logger logger = Logger.getLogger("Minecraft");
        public NpcSoulManager(){
        }
        public void fill(){
        	soulblocks = new HashMap<Block,NpcSoul>();
        }
        public void killallsouls (){
        	soulblocks.clear();
        }
        public void killsoul (Block goneblock){
        	killbody(goneblock);
        	soulblocks.remove(goneblock);
        }
        public void killbody (Block goneblock){
        	soulblocks.get(goneblock).evap();
        }
    	public void createSoul(Block placedBlock,Player owner){
    		logger.log(Level.INFO,owner.getName()+" placed a new spawner at "+placedBlock.getLocation().toString());
    		soulblocks.put(placedBlock,new NpcSoul(owner));
    	}
    	public BasicHumanNpc getNpcFromEntity(Entity wanted){
    		for(Block s : soulblocks.keySet()){
    			if(soulblocks.get(s).isIncarnate() && soulblocks.get(s).body.getBukkitEntity() == wanted){
    				return soulblocks.get(s).body;
    			}
    		}
    		return null;
    	}
    	public Block getHomeFromEntity(Entity wanted){
    		for(Block s : soulblocks.keySet()){
    			if(soulblocks.get(s).isIncarnate() && soulblocks.get(s).body.getBukkitEntity() == wanted){
    				return s;
    			}
    		}
    		return null;
    	}
    	public NpcSoul getBlockSoul(Block s){
    		return soulblocks.get(s);
    	}
    	public Set <Block> getBlockKeys(){
    		return soulblocks.keySet();
    	}
    	public HashMap<Block,NpcSoul> getHash(){
    		return soulblocks;
    	}
    	public Boolean isAHome(Block b){
    		if (soulblocks.containsKey(b)){
    			return true;
    		}
    		return false;
    	}
    }
    ?

    EDIT: fixed, now just waiting on persistence to be fixed
     
  8. Offline

    fabe

    Could you please upload Persistance 0.55 for me? I have the same error as above.
     
  9. Offline

    Astro MacGuffin

    Getting the same in CB 497, upon login. Plus this when I try to use /cast from Spells:

    Code:
    00:03:04 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cast' in plugin Spells v0.99
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
    	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    	at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    	at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    	at net.minecraft.server.NetworkManager.a(SourceFile:230)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    	at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermission(PluginCommand.java:231)
    	at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:332)
    	at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:293)
    	at com.elmakers.mine.bukkit.plugins.spells.SpellsPlugin.onCommand(SpellsPlugin.java:92)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
    	... 12 more
    
    The server startup log:

    Code:
    00:00:54 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-497-gea319d1-b499jnks (MC: 1.3)
    00:00:56 [INFO] [Permissions] version [2.5.2] (Phoenix) was Initialized.
    00:00:56 [INFO] AFK version 0.5 is enabled!
    00:00:56 [INFO] Wand version 0.65 is enabled
    00:00:56 [INFO] Tombstone v.1.04 is enabled.
    00:00:56 [INFO] [Permissions] version [2.5.2] (Phoenix)  loaded
    00:00:56 [INFO] [Tombstone] Using Permissions 2.5 (2.5.2) for permissions
    00:00:56 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    00:00:56 [INFO] [Towny] Using: Permissions, iConomy
    00:00:56 [INFO] [Towny] Version: 0.46 - Mod Enabled
    00:00:57 [INFO] [iConomy] Logging enabled.
    00:00:57 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    00:00:57 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    00:00:57 [INFO] [iConomy] Successfully linked with Permissions.
    00:00:57 [INFO] [IOBookcase] version 1.2 by lonelydime is enabled!
    00:00:57 [INFO] [mcMMO] Permissions enabled.
    00:00:57 [INFO] mcMMO version 0.8.11 WIP B15 is enabled!
    00:00:57 [INFO] Spells version 0.99 is enabled
    00:00:57 [INFO] Persistence: Create a plugins/Persistence/permissions.yml to use internal permissions
    00:00:57 [INFO] Persistence version 0.56 is enabled
    Ubuntu 10.04 64 bit edition; haven't configured Persistence yet.
     
  10. Offline

    mudzereli

    I'm getting the same issue. CB #493. Persistence 0.56. Disabled all other plugins to ensure this was causing the problem.
     
  11. Offline

    acegiak

    I'm getting the same crash.

    After a long process of debugging my own code it's disappointing to have the api fail.
     
  12. Offline

    NathanWolf

    Sorry, I'm really not ignoring you. Debugging someone else's code takes MUCH longer than just answering some random forum posts, and I've barely had time to debug my own code lately. I didn't touch this stuff, or the forums, all day yesterday.

    So, that being said- I unzipped your code, commented out PLAYER_COMMAND (that's dead now, the code you gave me is pretty old....), build it, exported a jar, and ran it.

    I got an NPE on startup having to do with config, but no Persistence error and no WorldData error.

    Thoughts?
    --- merged: Mar 7, 2011 3:23 PM ---
    0.56 is working for me- I really don't understand why it's giving everyone such trouble. I've tried every combination of other plugins I can think of, I honestly have no idea why it's not working for you.

    Old versions are always available here:

    http://www.elmakers.com/minecraft
    --- merged: Mar 7, 2011 3:25 PM ---
    Sorry to hear that- old versions are always available, the links' right above this.
    --- merged: Mar 7, 2011 3:30 PM ---
    BTW, the jar I built is here. I'm really sorry if you've waited this long for nothing, but I really don't see anything wrong with your code.

    The manifest file has a couple of unnecessary entries in it- are you directly using MySql or Sqlite?

    Otherwise, as long as you're actually using that manifest when you export, it should be fine- worked for me, other than the config file breakage.
     
  13. Offline

    mudzereli

    I've tried with #493 and no other plugins installed. Is it possible you're using a different 0.56 than you've uploaded to the site?
     
  14. Offline

    NathanWolf

    Ok, so, it's all working for me. I really can't support all these rediculous Permission flavors- I tried with, I tried it without, I can't get any NPE's.

    I do know that things crash if you're using Permissions and don't have it set up at all- but that shouldn't cause an NPE in my code, anyway. And I imagine you have it set up, right?

    I have tried setting up permissions with and without the right to use the "cast" command, with and without any spells access, etc. It really all seems tow ork as I expect- and I don't get any errors on startup or on command use.

    I'm sorry to everyone that's been having so much trouble, but I honestly have no idea why. I'm using all the same stuff as I've uploaded.

    I'd love to know that the current version of my plugins are working for at least one other person- all I get these days is complaints :p
    --- merged: Mar 7, 2011 3:39 PM ---
    It's possible, but very unlikely- especially because I re-uploaded it after people first started complaining.

    My publish scripts pull right out of my dev plugins folder, as does the script to update my public server.

    The script that updates my dev plugins folder pull straight out of each projects' "target" output folder... so, it's a lot of scripts, but it really keeps the chances of something getting "lost" on publish very low...
     
  15. Offline

    mudzereli

    This would be my first time running it. Could it possibly be that I'm missing a config file or something that you already have from a previous version that's needed to pass the PLAYER_JOIN event on?
     
  16. Offline

    NathanWolf

    Ok, I just tried with only Persistence.jar, I tried with NetherGate, with Spells+Wand, and with all 4- no errors on startup.

    I'm re-uploading now here, just in case: Persistence-RETRY.jar
    --- merged: Mar 7, 2011 3:52 PM ---
    No, that's the thing- there is no config for Persistence :(

    No setup is required, no console commands, etc...
     
  17. Offline

    acegiak

    !NathanWolf what version of permissions are YOU using? also, communal debug time:
    Is it possible that PlayerData is null? I'm trying to play with your code to make it go but to no avail. Give us a list of your plugins, server version etc that's working for you.
    --- merged: Mar 7, 2011 4:03 PM ---
    I'm off to bed, catch you on the flipside, good luck
     
  18. Offline

    Astro MacGuffin

    I'd never installed a plugin before this weekend just past. So, here's hoping we can straighten one or both of us out :)

    My plugins/Permissions/MyWorldFolderName.yml
    http://pastebin.com/xpBkpYkP

    (forgot to include in that paste, but also included in that file is...)

    Code:
    users:
    ....MyMinecraftAccountName:
    ........group: Admins
    ...but with spaces instead of dots.

    Ok, next, my console output, where all I've done is start up, log in, /cast fireball, log out, shut down:

    http://pastebin.com/kpgFzqQH

    And, the output of /plugins

    Code:
    >plugins
    11:53:12 [INFO] Plugins: CraftBookCircuits, WorldEdit, CraftBookMechanisms, AFK, PlugMan, Wand, RealShop, CraftBookVehicles, SpawnMob, Tombstone, Stats, Towny, Permissions, iConomy, PermissionsSupport, DropBonus, IOBookcase, AlchemicalCauldron, Friendly, CraftBookCommon, mcMMO, Spells, Persistence, MCDocs, Achievement
    I just noticed I'm using TheYeti's Permissions 2.5.2, and 2.5.3 is out. Updated m'jar file, server startup reports the new version, but I get otherwise the same behavior as pasted above.

    Let me know if there's anything more a noob can paste / investigate to help.
     
  19. Offline

    matejdro

    @NathanWolf Sorry for accusing you ignoring, but then answer my post and tell me that you are busy. I'm completely fine with that. :)

    What is NPE?
     
  20. Offline

    Astro MacGuffin

    I can field that one, NullPointerException.

    Unless I'm wrong.
     
  21. Offline

    NathanWolf

    I've tried it with and without, as mentioned- I'm using Yeti's latest when I do use it.

    Let me try testing with a clean data folder- your comment on PlayerData rings true, I suppose, with people who are having problems with a clean install- maybe it's broken in a way I'm still not seeing :(
    --- merged: Mar 7, 2011 5:20 PM ---
    Well, if you were the only one having issues, here, I may blame your noobness ;)

    But, no, something seems to be wrong. I'm investigating, and have been unable to reproduce any of these issues- but clearly there is something up with the Permissions "integration" :(
    --- merged: Mar 7, 2011 5:21 PM ---
    Null pointer exception- it seems like your plugin is trying to read a config file, and blowing up. Maybe it dies if the config does not exist?

    I didn't get any Persistence-related exceptions, though.
    --- merged: Mar 7, 2011 5:22 PM ---
    Oops, nope, thanks :) Right on.

    More specifically, it usually means you're trying to access a variable that you haven't initialized yet.
     
  22. Offline

    Astro MacGuffin

    Some thoughts on mistakes I might be making:

    • Are we still supposed to be using PermissionsSupport.jar ?
    • Is there some other addon with a feature that won't work, unless Permissions is configured to some minimal degree which also makes Persistence work? (e.g. "well if XXXX's command '/yyyy' works, then Persistence should work")
    • Is there any chance one of my client-side mods is interfering with PLAYER_JOIN?
    Also, I've tried with both online_mode=false and online_mode=true.
     
  23. Offline

    NathanWolf

    I just tested with a completely clean plugins folder, installing one a time, etc. All seemed to work- I really don't know what's going on here. :(

    If you're using Permissions.jar and want my plugins to use that, you need PermissionsSupport.jar. This isn't really a "still", this is brand-new as of Persistence 0.55, and replaces Groups.jar.

    If you don't have PermissionsSupport.jar, Permissions.jar will be ignored.

    Ok, first of all, we should move this conversation to the respective thread. I have no idea at this point who is having what problems with which plugins- and this thread is really supposed to be a dev thread anyway.

    That being said, Spells and NetherGate no longer do anything by default if you haven't set up some sort of permissions. This will be true for Spells always, the next version of NetherGate will restore basic functionality without permissions setup.

    Persistence itself has no setup of its own.

    Certainly possible. If you can try with a vanilla client- well, you should have done that already :p
     
  24. Offline

    ThyLordRoot

    I think this is a great thing, espescially since the Bukkit devs have been encouraging everybody to use databases as backends for their plugins. I noticed that your framework is abstract enough to support different store sources, and was curious if you would accept help with implementing the drivers for some of these sources. If so, I would love to write a SqlStore class for my preferred RDBMS, PostgreSQL.
     
  25. Offline

    NathanWolf

    Nice! A postgres fan!

    Definitely. If you're interested, check out the code for the sqlite store, here:

    SqliteDataStore.java

    You can see that it's very light- adding new store types should be super eay.
     
  26. Offline

    Astro MacGuffin

    Ok, please let me know what thread to continue in - my apologies for the clutter. Meantime, I've done the following:

    Code:
    mv plugins/* tmp-disabled/
    mv tmp-disabled/Persistence.jar plugins/
    cp ~/minecraft-backup/bin/minecraft.jar ~/.minecraft/bin
    Sadly... same error about PLAYER_JOIN on login.
     
  27. Offline

    mudzereli

    @NathanWolf

    I dont know if you'd be down to try this, but I can send you my persistence.jar (0.56) and craftbukkit.jar (493)
    and you could just run the two together like I have been attempting and see if you get the same error. If not, maybe we can track it back to java somehow?

    Or heck, if you'd be willing to send me the exact persistence.jar and craftbukkit.jar that you're using, I can check those out and see if I get the issue.

    I'd love to get this up and running. I'll help in any way that I can.
     
  28. Offline

    NathanWolf

    Well, why do you have Persistence? :)

    I'm assuming either Spells or NetherGate- if it's both, then I guess go to the NG thread since that's where most people are complaining :p
    --- merged: Mar 7, 2011 10:57 PM ---
    That's the thing- the exact jars I'm running are the ones I upload.

    Do you have a DB account, or somewhere you can stick a ZIP? I'd be happy to DL and try what you have.
     
  29. Offline

    mudzereli

    I've uploaded the files here (sorry, mediafire was the first thing I could think of for fast free filehosting):

    <Edit by Moderator: Redacted mediafire url>

    I've included the following files:

    craftbukkit.jar
    server.bat (so you can look in there and see if maybe somehow those parameters are causing it)
    plugins folder with persistence

    Running this exact setup gives me the following:

    Code:
    17:55:31 [INFO] Starting minecraft server version Beta 1.3
    17:55:31 [INFO] Loading properties
    17:55:31 [WARNING] server.properties does not exist
    17:55:31 [INFO] Generating new properties file
    17:55:31 [INFO] Starting Minecraft server on *:25565
    17:55:31 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-493-
    g8b5496e-b493jnks (MC: 1.3)
    17:55:31 [WARNING] Failed to load ban list: java.io.FileNotFoundException: banne
    d-players.txt (The system cannot find the file specified)
    17:55:31 [WARNING] Failed to load ip ban list: java.io.FileNotFoundException: ba
    nned-ips.txt (The system cannot find the file specified)
    17:55:31 [WARNING] Failed to load ops: java.io.FileNotFoundException: ops.txt (T
    he system cannot find the file specified)
    17:55:31 [WARNING] Failed to load white-list: java.io.FileNotFoundException: whi
    te-list.txt (The system cannot find the file specified)
    17:55:31 [INFO] Preparing level "world"
    17:55:31 [INFO] Preparing start region
    17:55:32 [INFO] Preparing spawn area: 4%
    17:55:33 [INFO] Preparing spawn area: 12%
    17:55:34 [INFO] Preparing spawn area: 16%
    17:55:35 [INFO] Preparing spawn area: 24%
    17:55:36 [INFO] Preparing spawn area: 28%
    17:55:37 [INFO] Preparing spawn area: 36%
    17:55:38 [INFO] Preparing spawn area: 40%
    17:55:39 [INFO] Preparing spawn area: 48%
    17:55:41 [INFO] Preparing spawn area: 52%
    17:55:42 [INFO] Preparing spawn area: 61%
    17:55:43 [INFO] Preparing spawn area: 69%
    17:55:44 [INFO] Preparing spawn area: 77%
    17:55:45 [INFO] Preparing spawn area: 89%
    17:55:46 [INFO] Preparing spawn area: 97%
    17:55:47 [INFO] Persistence: Create a plugins/Persistence/permissions.yml to use
     internal permissions
    17:55:47 [INFO] Persistence version 0.56 is enabled
    17:55:47 [INFO] Done (1.547s)! For help, type "help" or "?"
    17:55:49 [INFO] 143 recipes
    17:55:49 [INFO] mudzereli [/127.0.0.1:1626] logged in with entity id 276
    17:55:49 [SEVERE] Could not pass event PLAYER_JOIN to Persistence
    java.lang.NullPointerException
            at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermissio
    n(PluginCommand.java:231)
            at com.elmakers.mine.bukkit.plugins.persistence.PersistenceListener.onPl
    ayerJoin(PersistenceListener.java:29)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:125)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:98)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    >
     
    Last edited by a moderator: Dec 15, 2016
  30. Offline

    Xylogeist

    It keeps giving me relatively the same error all the time:
    Code:
    [SEVERE] Could not pass event PLAYER_JOIN to Persistence
    java.lang.NullPointerException
        at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermission(PluginCommand.java:231)
        at com.elmakers.mine.bukkit.plugins.persistence.PersistenceListener.onPlayerJoin(PersistenceListener.java:29)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:125)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-07 17:51:22 [INFO] Forcing MCServerlist update.
    2011-03-07 17:51:26 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'spells' in plugin Spells v0.99
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at com.elmakers.mine.bukkit.persistence.dao.PluginCommand.checkPermission(PluginCommand.java:231)
        at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:332)
        at com.elmakers.mine.bukkit.utilities.PluginUtilities.dispatch(PluginUtilities.java:293)
        at com.elmakers.mine.bukkit.plugins.spells.SpellsPlugin.onCommand(SpellsPlugin.java:92)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
        ... 12 more
    I have these pluggins:
    - Essentials
    - GroupPermissions
    - Spells
    - Wand

    I'm running bukkit 493. Help? :D +cool points in advance for the pluggins
    EDIT: I see a lot of people seem to be having this problem... I hope it gets resolved, as these seem to be the best pluggins around, lol.
     
  31. Offline

    acegiak

    Just a bit more help on my particular instance of the bug, I get it starting up persistence for the first time so there's likely to be no playerdata there yet, I'm also using regular permissions and onCommands rather than using persistence's wrappers
     

Share This Page