Jump to content

[RESOLVED] "Session ID is null" Error when Running Minecraft from Eclipse


MarekVarro

Recommended Posts

Hello world,

 

I've been following Pahimar's 5th "Let's Mod" video tutorial for the most part. However, I've been utilizing more up to date versions of MCP (mcp802) and Forge (minecraftforge-src-1.6.1-8.9.0.751). Regardless of the difference in versions, I was fairly successful with this endeavor and was able to generate a Minecraft project with no build errors as well as to initialize a mod project using the Minecraft project as a dependency.

 

It is at the point where I try to build either project (running Vanilla + Forge or the modded version within eclipse) where I encounter the following issue:

 

2013-07-02 18:44:35 [CLIENT] [iNFO] Setting user: Player763

2013-07-02 18:44:35 [CLIENT] [iNFO] (Session ID is null)

java.lang.NullPointerException

at java.io.Reader.<init>(Unknown Source)

at java.io.InputStreamReader.<init>(Unknown Source)

at net.minecraft.src.AchievementMap.<init>(AchievementMap.java:20)

at net.minecraft.src.AchievementMap.<clinit>(AchievementMap.java:11)

at net.minecraft.src.StatBase.registerStat(StatBase.java:60)

at net.minecraft.src.StatBasic.registerStat(StatBasic.java:20)

at net.minecraft.src.StatList.<clinit>(StatList.java:22)

at net.minecraft.src.Minecraft.<init>(Minecraft.java:210)

at net.minecraft.client.main.Main.main(Main.java:76)

at Start.main(Start.java:11)

Exception in thread "main" java.lang.ExceptionInInitializerError

at net.minecraft.src.StatCollector.<clinit>(StatCollector.java:5)

at net.minecraft.src.Item.getStatName(Item.java:476)

at net.minecraft.src.StatList.initUsableStats(StatList.java:206)

at net.minecraft.src.StatList.initStats(StatList.java:118)

at net.minecraft.src.Item.<clinit>(Item.java:687)

at net.minecraft.src.Block.<clinit>(Block.java:1316)

at net.minecraft.src.StatList.initMinableStats(StatList.java:180)

at net.minecraft.src.StatList.<clinit>(StatList.java:87)

at net.minecraft.src.Minecraft.<init>(Minecraft.java:210)

at net.minecraft.client.main.Main.main(Main.java:76)

at Start.main(Start.java:11)

Caused by: java.lang.NullPointerException

at java.io.Reader.<init>(Unknown Source)

at java.io.InputStreamReader.<init>(Unknown Source)

at org.apache.commons.io.IOUtils.readLines(IOUtils.java:986)

at net.minecraft.src.StringTranslate.<init>(StringTranslate.java:29)

at net.minecraft.src.StringTranslate.<clinit>(StringTranslate.java:21)

... 11 more

I would have used the pastebin feature, but it seemed to be down when I tried generating this, appologies.

 

 

How can I either initialize the Session ID, or circumvent this issue?

 

Thanks in advance!

Happy to help, thankful to be helped!

 

New MC modder, ongoing student, longtime geek

Link to comment
Share on other sites

Are you sure forge is being compiled in??? I don't think so.

 

Session ID is null has nothing to do with this error.

Go to Java Build Path -> Libraries

and click on "Add Jar"

select jars->version->1.6.1-> 1.6.1.jar

 

Then go the Order and Export tab and select 1.6.1.jar

 

Now it should run minecraft

 

Link to comment
Share on other sites

Thank you very kindly!

 

That reply set me on the right path, although I did run in to some other issues I was able to resolve.

 

For the sake of posterity, I'll elaborate a little.

 

You were indeed right that I needed to link in the 1.6.1.jar file. I was uncertain if that was the minecraft file I needed, simply because the name was not particularly clear (One might deduce it's nature, but it is just obscure enough to be uncertain).

Because I wasn't sure, I instead downloaded and linked the Minecraft.jar for version 1.6.1 separately.

 

Once I'd removed my original link, I linked the 1.6.1.jar file in the .../mcp/jars/versions/1.6.1 folder.

 

However, once the project rebuilt, 22 errors were generated. I took note of the errors that mentioned anything to do with imports and isolated the issue was that I had not yet linked in joptsimple.

 

Fixing this was as simple as linking in jopt-simple-4.5.jar from /mcp/jars/libraries/net/sf/jopt-simple/jopt-simple/4.5/

 

 

Again, thanks for the help. It does seem simple to me now, although I wouldn't likely have thought the jar I was using would function, but would not be correct (^_^;)

Happy to help, thankful to be helped!

 

New MC modder, ongoing student, longtime geek

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.