Jump to content

Recommended Posts

Posted

When attempting to run the latest builds of Forge (200 to 230) on my headless server (no window managers of any kind), the server fails to start.

 

Console output: http://pastie.org/private/q9clitpw0ojo0vkczmw5ag

 

No Forge*.log or ModLoader.txt is created, as the server fails before any such things happen. No patcher or launcher is used. Installation of Forge is in minecraft_server.jar (not the client!) and contains ONLY the builds mentioned above (minecraftforge-universal-4.0.0.230.zip, for example), no ModLoader or ModLoaderMP.

 

From what I can gather, the issue is specifically limited to the lack of an installed window manager; whether or not it is running seems irrelevant (with X11 installed I can start the server even without Xorg running). The same jar works on both Windows and Slackware Linux so long as a window manager is installed.

 

I'm fairly confident that the problem is the lack of a null check in Downloader.java, after it fails to instantiate an instance of the JOptionPane due to a lack of any installed libraries with which to create said pane.

Posted

rev. 230 isn't the latest... the latest is like 243 or so. Try that.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I have a few headless servers, one is ancient and I tried on it, it has Java 1.6.0_07, java-runtime-headless, no x libraries, no x fonts, no GUI system or code at all, I checked everything that I could think of in the package manager, and the server still downloads its files and launches fine as of the latest version.  Need more information.  Start a trace on it and see what it locks on or something.  Unless you have an idea for a package I may have missed?

Posted

Hello

Well, I cannot for the life of me make this problem occur on any linux install I own or create. I have no idea how you got java to run in such a barebones environment.

 

I am attaching an experimental FML build to this post for you to merge into a minecraft_server.jar and report back success or failure. If this works, I'll push and merge it to generate a forge build. If not, I need to know how to build your environment...

 

Note: just merge and start this up. Do not do anything else. it's not going to work with forge as it stands...

Posted

Hey cpw! Thanks for the experimental build. It cleared things right up.

 

I forgot to mention that the problem initially occurred on a completely barebones installation of FreeBSD (using OpenJDK 1.6.0.0_23, 64 bit server). I was able to replicate it on a totally barebones installation of Slackware 13.37 as well (no window management or libraries installed).

 

Same FreeBSD system with this new build (attached to your post) fixes the issue.

Posted

Bad news. :(

 

The issue appears to manifest itself again with Java 7 on an updated OS (previous was FreeBSD 8.2 with JDK 6):

 

[spoiler=java -version]bash# java -version

openjdk version "1.7.0_04"

OpenJDK Runtime Environment (build 1.7.0_04-b22)

OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)

 

 

 

[spoiler=OS] bash# uname -mrs

FreeBSD 8.3-RELEASE-p3 amd64

 

 

 

[spoiler=error log]

Exception in thread "main" java.lang.NullPointerException

        at cpw.mods.fml.relauncher.Downloader.makeHeadless(Downloader.java:137)

        at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:67)

        at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

        at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

        at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

 

 

 

Server is being started with pretty typical flags:

 

[spoiler=startup flags]bash# java -Xms160M -Xmx600M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar minecraft_server.jar nogui

 

 

 

The same build of FML/Mineforge works fluidly now on 8.2-RELEASE-p3 with JDK 1.6.0-b23, but not on the above specs.

Posted

You have an incorrect FML version. There is nothing that can be null in that method now, and that line doesn't even *exist* in the code... Update!

Posted

Greetings,

 

I seem to be having a similar problem as the others here, but I'm clueless as to why and not sure if I'm screwing things up when I move to the host service vs my computer, because it works fine on my computer but on the host it gives this error:

 

 

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

 

 

What I know:

 

Host runs vanilla server fine.

Host does not run vanilla server with minecraftforge-universal-4.1.1.251

 

my computer runs the server minecraftforge-universal-4.1.1.251 + mods no issues.

 

have tried complete fresh installs and copying my server over to host, but does not seem to help.

 

Is this me or the host?

Posted

I need the *complete* log for that error graymayne. There should be something else there. This problem is practically impossible to reproduce, and others have tested and verified it works in practically identical environments. Most likely you are missing a key java component on your server.

Posted

That's what the console from the hosting service gives me, I don't get any ForgeModLoader-server-# logs to pull from.

 

The part that's confusing is it works fine on my computer, its when I load it into the hosting service, so if you can't duplicate, odds are its something with the hosting service. And I'm leaning in that direction moreso since hosting service runs vanilla fine, and it ran forge 3.3.8.152 last week. So I have no clue what might have changed that the host doesn't like, the hosting service is verygames.us if that helps.

 

Below is the only code I see everytime I reset the server, so far the only good code has been when I load a vanilla server.

 

 

 

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:15:24 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:15:34 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:15:44 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:15:55 CEST 2012: Server restart in 10 seconds

Sun Sep 9 10:17:43 CEST 2012

Auto-restarting the server on crash

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:17:43 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:17:53 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:18:04 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:18:14 CEST 2012: Server restart in 10 seconds

openmod => 77.111.242.187:25565:10:Arancia

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

Sun Sep 9 10:18:24 CEST 2012: Server restart in 10 seconds

 

 

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

Posted

wow we must have the same host my errors are the same

Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

i am having the error if someone could help i would be grateful

Posted

Im having same problem with lates forge universal build 4.1.1.252 running on linux server.

 

server don't generate any logs.

Command i run to start server and error i get:

 

 

java -Xms1G -Xmx1G -jar minecraft_server.jar nogui

Exception in thread "main" java.lang.NullPointerException

        at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

        at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

        at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

        at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

 

 

 

mine java -version:

 

 

java -version

java version "1.7.0_07"

OpenJDK Runtime Environment (IcedTea7 2.3.2) (ArchLinux build 7.u7_2.3.2-1-x86_6

OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

 

 

 

 

OS

uname -mrs

Linux 3.0.40-1-lts x86_64

 

 

 

If someone have any idea that im missing some packages just let me know i can install anything i want on that machine.

 

E:added spoiler tags

Posted

 

Fontconfig error: Cannot load default config file

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

 

This looks like the fontconfig package to me.  You might try searching around your provider to see if they have their /usr/local/etc/fonts somewhere else, and try setting the FONTCONFIG_PATH prior to launching. This may be an OpenJDK thing vs. a Sun/Oracle JDK thing? 

I'm fixing the stupid villagers.  http://www.minecraftforum.net/topic/1588460-

Posted

Interesting that openjdk seems to be missing this stuff. That's very frustrating. I'll see if I can make a patch that works even without it, but it looks like it cannot even classload some of the graphical components, which is frankly ridiculous. *sigh*.

  • 2 weeks later...
Posted

hello

 

i got more info about crash with missing java componnent

i try it with MC 1.3.2 and Forge 275

 

openmod => 77.111.253.93:25565:6:world

Fontconfig error: Cannot load default config file

java.lang.NullPointerException

at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)

at sun.font.SunFontManager$2.run(SunFontManager.java:428)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.SunFontManager.<init>(SunFontManager.java:371)

at sun.awt.X11FontManager.<init>(X11FontManager.java:32)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at java.lang.Class.newInstance0(Class.java:372)

at java.lang.Class.newInstance(Class.java:325)

at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:80)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:71)

at sun.font.SunFontManager.getInstance(SunFontManager.java:245)

at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)

at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1003)

at javax.swing.JComponent.getFontMetrics(JComponent.java:1615)

at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:276)

at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:376)

at javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(BasicButtonUI.java:366)

at javax.swing.JComponent.getMinimumSize(JComponent.java:1733)

at javax.swing.plaf.basic.BasicOptionPaneUI.addButtonComponents(BasicOptionPaneUI.java:692)

at javax.swing.plaf.basic.BasicOptionPaneUI.createButtonArea(BasicOptionPaneUI.java:630)

at javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:178)

at javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:141)

at javax.swing.JComponent.setUI(JComponent.java:655)

at javax.swing.JOptionPane.setUI(JOptionPane.java:1863)

at javax.swing.JOptionPane.updateUI(JOptionPane.java:1885)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1848)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1811)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1779)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1757)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1737)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1721)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1709)

at cpw.mods.fml.relauncher.Downloader.<init>(Downloader.java:19)

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:59)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:121)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1307)

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:72)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:121)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1307)

Mon Sep 24 16:55:04 CEST 2012: Server restart in 10 seconds

 

 

Posted

 

 

Fontconfig error: Cannot load default config file

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

 

This looks like the fontconfig package to me.  You might try searching around your provider to see if they have their /usr/local/etc/fonts somewhere else, and try setting the FONTCONFIG_PATH prior to launching. This may be an OpenJDK thing vs. a Sun/Oracle JDK thing? 

There you go.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

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.