Jump to content
  • 0

Internal Exception: java.lang.NullPointerException?


Question

Posted

Title: Internal Exception: java.lang.NullPointerException?

Version: 3.1.1

OS: Windows 7 64 bit

Java Version: 7

Description of Problem:

I was playing on the Tekkit server I made last night with 2 of my friends. I was preparing to go mining when suddenly I got disconnected and got the error "Internal Exception: java.lang.NullPointerException". My friends connected easily with no problems and were still playing when this happened. I restarted the server, saved, restarted my tekkit launcher, etc. I did everything I could but it still says that error. How do I fix this???

Error Messages:

Internal Exception: java.lang.NullPointerException

Error Log:


Internal Exception: java.lang.NullPointerException

6 answers to this question

Recommended Posts

  • 0
Posted

A java.lang.NullPointerException occurs when a Java application or Java applet has been badly coded. Typically, the Java program (and consequently, the programmer) attempted to access the reference or handle to a Java object that did not exist.

Here's an analogy that may help:

You have a piece of land on which you intend to build your own house, but you haven't built it yet.

This is the equivalent of creating (or owning) a Java object reference (also called an address).

Before you build the house, you accidentally give out your address to people, saying "That's my home address" (even though there's nothing there, not even a sign saying "My House").

This is the equivalent of wrongly using the Java object reference (or address) without actually having created a Java object within it.

The postman, your friends and your relatives drive to the address but find nothing there and think it's an error.

This is the equivalent of getting a NullPointerException.

If you're seeing the exception when using an existing Java application what displays charts, then the application has been badly coded.

The wrong n' dirty way of quickly solving (or actually suppressing) the exception is to encapsulate the offending code in a try-catch block and handle the catch in some quiet, elegant way.

The right way of solving the exception is to figure out the line causing the problem, and trace it's source, reason and data.

  • 0
Posted

i am having the same problem if you run the batch file as an administrator it gets rid of the list of 15 or so errors however it says can't find tekkit.jar but if you tell it whre it is before it exectutes the launcher the error's come back i am in this cicle of badly coded java and it's pissing me off

  • 0
Posted

No that didn't happen, it happened when I was on my server and someone got griefed, one of the items was not in tekkit anymore and I tried to spawn it so he could have it back. When I did that I disconnected.

Guest
This topic is now closed to further replies.
×
×
  • Create New...