java.lang.NullPointerException

Mojang JIRA | The Papa | 9 months ago
  1. 0

    Making a superflat world with one layer causes an Exception, because there is hardly any heap space: {code} net.minecraft.util.ReportedException: Exception generating new chunk at net.minecraft.world.WorldServer.initialize(WorldServer.java:814) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527) at java.lang.Thread.run(Unknown Source) [?:1.8.0_66] Caused by: java.lang.OutOfMemoryError: Java heap space at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14) at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42) at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163) at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150) at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130) at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160) at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346) at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335) at net.minecraft.world.World.getBlockState(World.java:859) at net.minecraft.world.World.isAirBlock(World.java:257) at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239) at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110) at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872) at net.minecraft.world.WorldServer.initialize(WorldServer.java:792) ... 4 more [11:47:57] [Server thread/ERROR]: This crash report has been saved to: C:\Users\<censored>\AppData\Roaming\.minecraft\crash-reports\crash-2016-03-21_11.47.52-server.txt {code} I also get another insuffecient heap space error when I try to close down Minecraft: {code} [11:47:57] [Server thread/INFO]: Stopping server [11:47:57] [Server thread/INFO]: Saving players [11:47:57] [Server thread/INFO]: Saving worlds [11:47:57] [Server thread/INFO]: Saving chunks for level 'Village Finder'/Overworld Exception in thread "Server thread" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space {code} Here is the crash report: {code} ---- Minecraft Crash Report ---- // Don't do that. Time: 3/21/16 11:47 AM Description: Exception generating new chunk java.lang.OutOfMemoryError: Java heap space at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14) at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42) at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163) at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150) at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130) at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160) at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346) at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335) at net.minecraft.world.World.getBlockState(World.java:859) at net.minecraft.world.World.isAirBlock(World.java:257) at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239) at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110) at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872) at net.minecraft.world.WorldServer.initialize(WorldServer.java:792) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527) at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:14) at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:42) at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:163) at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:150) -- Chunk to be generated -- Details: Location: -3,51 Position hash: 223338299389 Generator: FlatLevelSource Stacktrace: at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:130) at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:160) at net.minecraft.world.World.getChunkFromChunkCoords(World.java:346) at net.minecraft.world.World.getChunkFromBlockCoords(World.java:335) at net.minecraft.world.World.getBlockState(World.java:859) at net.minecraft.world.World.isAirBlock(World.java:257) at net.minecraft.world.World.getGroundAboveSeaLevel(World.java:239) at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:110) at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:872) -- Affected level -- Details: Level name: Village Finder All players: 0 total; [] Chunk stats: ServerChunkCache: 520 Drop: 0 Level seed: 6508721325 Level generator: ID 01 - flat, ver 0. Features enabled: true Level generator options: 3;minecraft:bedrock;1;village Level spawn location: 0.00,0.00,0.00 - World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 0 game time, 0 day time Level dimension: 0 Level storage version: 0x04ABD - Anvil Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true Stacktrace: at net.minecraft.world.WorldServer.initialize(WorldServer.java:792) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:119) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:527) at java.lang.Thread.run(Unknown Source) -- Client Details -- Session ID: token:fa6652af00ba4a46a6ba6daba78f800b:a5b571be309843b7b035f05298422d38 LWJGL Version: 2.9.4 Reloading ResourceManager: Default Local Player ID: [local:E:dc1f21d2] Entity ID: 135 Location: X: -1463.722650610396, Y: 83.58051006549411, Z: 1920.213808177263 -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows Vista (x86) version 6.1 Java Version: 1.8.0_66, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 28248 bytes (0 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 Profiler Position: N/A (disabled) Player Count: 0 / 8; [] Type: Integrated Server (map_client.txt) Is Modded: Probably not. Jar signature remains and client brand is untouched. {code}

    Mojang JIRA | 9 months ago | The Papa
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.minecraft.server.MinecraftServer.stopServer()
    2. MC Server
      IntegratedServer.stopServer
      1. net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:494)
      2. net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:377)
      2 frames
    3. MC Client
      Main$2.run
      1. net.minecraft.client.Minecraft.stopIntegratedServer(Minecraft.java:3075)
      2. net.minecraft.client.main.Main$2.run(Main.java:125)
      2 frames