I have been wracking my brain to try and solve this one, I am unable to convert an old map to the new anvil format (also cannot covert in single player). at first i thought it to be corrupted chunk data, but running chunkster and mcedit showed that there were no problems. I am running with no plugins (was running with some, but tested on vanila craftbukkit with none) server.log: Code: 2012-03-27 21:16:13 [INFO] Starting minecraft server version 1.2.4 2012-03-27 21:16:13 [INFO] Loading properties 2012-03-27 21:16:13 [INFO] Starting Minecraft server on *:25565 2012-03-27 21:16:13 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.3-R0.2-96-ge16ae9a-b2124jnks (MC: 1.2.4) (Implementing API version 1.2.4-R0.1-SNAPSHOT) 2012-03-27 21:16:13 [INFO] Preparing level "wcreative" 2012-03-27 21:16:13 [INFO] Converting map! 2012-03-27 21:16:13 [INFO] Scanning folders... 2012-03-27 21:16:13 [INFO] Total conversion count is 333 2012-03-27 21:16:20 [INFO] Converting... 0% 2012-03-27 21:16:25 [INFO] Converting... 1% 2012-03-27 21:16:28 [INFO] Converting... 1% 2012-03-27 21:16:33 [INFO] Converting... 2% 2012-03-27 21:16:35 [INFO] Converting... 2% 2012-03-27 21:16:40 [INFO] Converting... 2% 2012-03-27 21:16:45 [INFO] Converting... 2% 2012-03-27 21:16:52 [INFO] Converting... 3% 2012-03-27 21:16:58 [INFO] Converting... 3% 2012-03-27 21:16:59 [INFO] Converting... 4% 2012-03-27 21:17:00 [INFO] Converting... 4% 2012-03-27 21:17:07 [INFO] Converting... 4% 2012-03-27 21:17:14 [INFO] Converting... 5% 2012-03-27 21:17:15 [INFO] Converting... 5% 2012-03-27 21:17:21 [INFO] Converting... 5% 2012-03-27 21:17:23 [INFO] Converting... 6% 2012-03-27 21:17:24 [INFO] Converting... 6% 2012-03-27 21:17:25 [INFO] Converting... 6% 2012-03-27 21:17:26 [INFO] Converting... 6% 2012-03-27 21:17:28 [INFO] Converting... 6% 2012-03-27 21:17:30 [INFO] Converting... 6% 2012-03-27 21:17:32 [INFO] Converting... 7% 2012-03-27 21:17:35 [INFO] Converting... 7% 2012-03-27 21:17:37 [INFO] Converting... 8% 2012-03-27 21:17:43 [INFO] Converting... 8% 2012-03-27 21:17:47 [INFO] Converting... 8% 2012-03-27 21:17:48 [INFO] Converting... 9% 2012-03-27 21:17:53 [INFO] Converting... 9% 2012-03-27 21:18:00 [INFO] Converting... 9% 2012-03-27 21:18:03 [INFO] Converting... 10% 2012-03-27 21:18:08 [INFO] Converting... 10% 2012-03-27 21:18:11 [INFO] Converting... 11% 2012-03-27 21:18:18 [INFO] Converting... 11% 2012-03-27 21:18:21 [INFO] Converting... 11% 2012-03-27 21:18:22 [INFO] Converting... 12% 2012-03-27 21:18:25 [INFO] Converting... 12% 2012-03-27 21:18:27 [INFO] Converting... 12% 2012-03-27 21:18:29 [INFO] Converting... 13% 2012-03-27 21:18:30 [INFO] Converting... 13% 2012-03-27 21:18:34 [SEVERE] java.lang.ClassCastException: net.minecraft.server.NBTTagInt cannot be cast to net.minecraft.server.NBTTagLong 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.NBTTagCompound.getLong(NBTTagCompound.java:135) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.OldChunkLoader.a(SourceFile:27) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.WorldLoaderServer.a(SourceFile:199) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.WorldLoaderServer.a(SourceFile:169) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.WorldLoaderServer.convert(SourceFile:128) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:223) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 2012-03-27 21:18:34 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 2012-03-27 21:18:34 [SEVERE] Unexpected exception java.lang.ClassCastException: net.minecraft.server.NBTTagInt cannot be cast to net.minecraft.server.NBTTagLong at net.minecraft.server.NBTTagCompound.getLong(NBTTagCompound.java:135) at net.minecraft.server.OldChunkLoader.a(SourceFile:27) at net.minecraft.server.WorldLoaderServer.a(SourceFile:199) at net.minecraft.server.WorldLoaderServer.a(SourceFile:169) at net.minecraft.server.WorldLoaderServer.convert(SourceFile:128) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:223) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) I am hoping someone has ideas on what to do about this. information about the map itself: this is a old map, was started shortly before the Halloween update and rolled through all the others without problems. after 1.0 this map was archived for players to go back to and fly around in creative in only. my thoughts are that the transition from .dat to .mcr was not perfect (and left some old NBT tags around?) and is causing problems with the conversion from .mcr to .mca
simmilar result, although the function names seem to be mangled. Code: 182 recipes 27 achievements 2012-03-27 23:41:07 [INFO] Starting minecraft server version 1.2.4 2012-03-27 23:41:07 [INFO] Loading properties 2012-03-27 23:41:07 [INFO] Starting Minecraft server on *:25565 2012-03-27 23:41:07 [INFO] Preparing level "wcreative" 2012-03-27 23:41:07 [INFO] Converting map! Scanning folders... Total conversion count is 333 2012-03-27 23:41:13 [INFO] Converting... 0% 2012-03-27 23:41:17 [INFO] Converting... 1% 2012-03-27 23:41:20 [INFO] Converting... 1% 2012-03-27 23:41:24 [INFO] Converting... 2% 2012-03-27 23:41:26 [INFO] Converting... 2% 2012-03-27 23:41:31 [INFO] Converting... 2% 2012-03-27 23:41:36 [INFO] Converting... 2% 2012-03-27 23:41:42 [INFO] Converting... 3% 2012-03-27 23:41:48 [INFO] Converting... 3% 2012-03-27 23:41:49 [INFO] Converting... 4% 2012-03-27 23:41:50 [INFO] Converting... 4% 2012-03-27 23:41:56 [INFO] Converting... 4% 2012-03-27 23:42:03 [INFO] Converting... 5% 2012-03-27 23:42:04 [INFO] Converting... 5% 2012-03-27 23:42:10 [INFO] Converting... 5% 2012-03-27 23:42:12 [INFO] Converting... 6% 2012-03-27 23:42:13 [INFO] Converting... 6% 2012-03-27 23:42:14 [INFO] Converting... 6% 2012-03-27 23:42:15 [INFO] Converting... 6% 2012-03-27 23:42:16 [INFO] Converting... 6% 2012-03-27 23:42:18 [INFO] Converting... 6% 2012-03-27 23:42:20 [INFO] Converting... 7% 2012-03-27 23:42:23 [INFO] Converting... 7% 2012-03-27 23:42:25 [INFO] Converting... 8% 2012-03-27 23:42:26 [INFO] Converting... 8% 2012-03-27 23:42:31 [INFO] Converting... 8% 2012-03-27 23:42:35 [INFO] Converting... 8% 2012-03-27 23:42:36 [INFO] Converting... 9% 2012-03-27 23:42:41 [INFO] Converting... 9% 2012-03-27 23:42:47 [INFO] Converting... 9% 2012-03-27 23:42:52 [INFO] Converting... 10% 2012-03-27 23:42:56 [INFO] Converting... 10% 2012-03-27 23:42:58 [INFO] Converting... 11% 2012-03-27 23:43:05 [INFO] Converting... 11% 2012-03-27 23:43:08 [INFO] Converting... 11% 2012-03-27 23:43:09 [INFO] Converting... 12% 2012-03-27 23:43:12 [INFO] Converting... 12% 2012-03-27 23:43:13 [INFO] Converting... 12% 2012-03-27 23:43:16 [INFO] Converting... 13% 2012-03-27 23:43:17 [INFO] Converting... 13% java.lang.ClassCastException: qz cannot be cast to nu at ph.g(SourceFile:113) at uv.a(SourceFile:27) at iz.a(SourceFile:199) at iz.a(SourceFile:169) at iz.a(SourceFile:128) at net.minecraft.server.MinecraftServer.a(SourceFile:210) at net.minecraft.server.MinecraftServer.s(SourceFile:188) at net.minecraft.server.MinecraftServer.run(SourceFile:333) at dn.run(SourceFile:490) 2012-03-27 23:43:21 [SEVERE] Unexpected exception java.lang.ClassCastException: qz cannot be cast to nu at ph.g(SourceFile:113) at uv.a(SourceFile:27) at iz.a(SourceFile:199) at iz.a(SourceFile:169) at iz.a(SourceFile:128) at net.minecraft.server.MinecraftServer.a(SourceFile:210) at net.minecraft.server.MinecraftServer.s(SourceFile:188) at net.minecraft.server.MinecraftServer.run(SourceFile:333) at dn.run(SourceFile:490) any ideas on anything people? any at all? im already starting to tear into the mcedit/pymclevel code looking to see if i can convert it by "hand" there. might there also be a way to find what chunks (not region files) that are causing this? i can stand loosing some of the world, but the whole world is not a option that i wish to take.
A stretch, but have you ever used Spout or any sort of server mods that may have added non-vanilla content to the game? New blocks, especially, but possibly new entities as well?
I'm not so sure, there were no problems at all when playing on this map for over a year, and all my backups are having the same conversion error. i have quite the amount of redundant backups going all the way back 6 months. so, ignoring that unlikelihood, does anyone have ideas to find where the chunk is that is having problems? because i am willing to mcedit out a couple chunks. can anyone comment on how a chunk has a nbttagint when it should be nbttaglong? how should i find where this is? digging into the craftbukkit source has not helped much due to not having all the obfuscated code to try and find the offending lines. so, ideas i have now: find the chunk(s) that are causing errors and prune them out by hand, write my own anvil converter use something along the lines of a minecraft modding tool to help me dig into the source code and find the error any leads on other ideas or how to better pursue these ones? sadly i must be off to bed, will check back first thing when i wake up. no, never ran any server mods besides craftbukkit. I was too afraid of patches breaking the server and not getting updates. good idea though. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Another thing worth checking on and trying would be changing around java versions. If you're using Java 6, try 7, and vice versa. If you're using OpenJDK, try dropping it for official Java 6 or 7. Doubtful, but I think this is where we start grasping at those types of straws.
I have been grasping for a while already. i have tried OpenJDK 6, sun java 6, and sun java 7, all no goes. :/ any other straws?
that did it! thank you! sorry for the long reply, sleep was demanding my attention. my players will be very thankful, they think this world is a goner, but now i shall return it to life! for any others that come along with the problem, it was fixed with https://github.com/Bukkit/CraftBukkit/commit/f937f4e8434a9299f3762bf98ef886a87adcb7cf seems that sometimes the NBTtag "LastUpdate" was saved as a int incorrectly sometimes, the commit just changes it so that it can load both.
Hi. I'm having the same problem, I can't convert my server with the new update... I see this is a fix, but I don't understand what it means. The link just takes me to some code, I don't understand what I'm supposed to do with it. I would appreciate if someone could explain this to me. I can run my server either on my mac or pc. Also, my issue is that I try to convert to the new update and the conversion stops at 6% with a "severe" error or something. Any help would be appreciated, thanks!
ah, sorry, that link takes you to the source code explaining why it crashes at that point. http://dl.bukkit.org/downloads/craftbukkit/view/00996_1.2.4-R1.1/ this is the exact download that I used to convert my old world to the new anvil format