/ java.lang.NullPointerException Minecraft ~ Java EE Support Patterns

4.16.2013

java.lang.NullPointerException Minecraft


I have been receiving recently many comments and emails related to Minecraft Java related errors such as java.lang.NullPointerException

I recommend to look at the following YouTube video:




While this Blog is dedicated to general Java and Java EE troubleshooting, I’m still willing to help non Java programmers and Minecraft gamers who are facing these problems such as java.lang.NullPointerException when developing Mods and understand what is null in Java.

If you are in fact facing such problem, please follow the steps below:

  • Provide me with the Java error and complete stack trace from Minecraft and/or your code.
  • Post the complete error as a comment of this post (Post a Comment section below).
I also encourage you to search and post your problems to the Minecraft community forum.

5 comments:

---- Minecraft Crash Report ----
// Oops.

Time: 5/15/13 7:20 PM
Description: Unexpected error

java.lang.NullPointerException
at ww.a(Unknown Source)
at mq.a(Unknown Source)
at mq.a(Unknown Source)
at pb.e(Unknown Source)
at net.minecraft.client.Minecraft.aW(Unknown Source)
at net.minecraft.client.Minecraft.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows XP (x86) version 5.1
Java Version: 1.7.0_15, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 318423280 bytes (303 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 1568 (87808 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: [net.minecraft.client.a]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
LWJGL: 2.4.2
OpenGL: GeForce GTX 650 Ti BOOST/PCIe/SSE2/3DNOW! GL version 4.3.0, NVIDIA Corporation
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
Texture Pack: faithful32pack (2).zip
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

Hi DeathIsConquerable,

Do you have the source or jar file that contains the class below?

ww.a

The NPE error is triggered from this Java class.

Regards,
P-H

---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 2/28/15 2:55 PM
Description: Initializing game

org.lwjgl.LWJGLException: Pixel format not accelerated
at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:739)
at avf.ap(SourceFile:534)
at avf.am(SourceFile:363)
at avf.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
at org.lwjgl.opengl.Display.create(Display.java:757)
at org.lwjgl.opengl.Display.create(Display.java:739)
at avf.ap(SourceFile:534)
at avf.am(SourceFile:363)

-- Initialization --
Details:
Stacktrace:
at avf.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
Minecraft Version: 1.8.3
Operating System: Windows 8 (amd64) version 6.2
CPU: 4x Intel(R) Core(TM) i3-2370M CPU @ 2.40GHz
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 57755112 bytes (55 MB) / 159522816 bytes (152 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: 0, tallocated: 0
Launched Version: 1.8.3
LWJGL: 2.9.4
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
GL Caps:
Using VBOs: No
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: []
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)

Hi anonymous,

It looks like that you are facing a drive compatibility problem with your hardware and/or OS version.

I recommend that you follow the forum Thread below from Minecraft support.

http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/2340822-pixel-format-not-accelerated-help

Potential solution for you from the above reference:

Your chipset is now considered obsolete. The last driver available for it is for Windows 8.

Try to install this version of Catalyst: http://support.amd.com/en-us/download/desktop/legacy?product=legacy2&os=Windows 8 - 64

You may need to follow the "have disk" method: http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/1869598-windows-8-1-not-able-to-play?comment=2

Thanks.
P-H

Could you fix this




There was a critical exception handling a packet on channel Telepads
java.lang.NoClassDefFoundError: net/darkhax/bookshelf/util/Utilities
at net.subaraki.telepads.common.network.PacketSyncTelepadEntries$PacketSyncTelepadEntriesHandler.onMessage(PacketSyncTelepadEntries.java:78)
at net.subaraki.telepads.common.network.PacketSyncTelepadEntries$PacketSyncTelepadEntriesHandler.onMessage(PacketSyncTelepadEntries.java:73)
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37)
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98)
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:101)
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785)
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169)
at cpw.mods.fml.common.network.internal.FMLProxyPacket.func_148833_a(FMLProxyPacket.java:77)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:2061)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:973)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Post a Comment