opened
DarkArc
username_0
**I am currently running...**
```
    Minecraft: 1.11.2
    SpongeAPI: 6.1.0-SNAPSHOT-a15cc3e
    SpongeForge: 1.11.2-2315-6.1.0-BETA-2395
    Minecraft Forge: 13.20.0.2315
```

**Exception:**
```
[23:28:29] [Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_131]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_131]
        at net.minecraft.util.Util.func_181617_a(SourceFile:47) [h.class:?]
        at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1046) [bes.class:?]
        at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:372) [bes.class:?]
        at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.lang.NullPointerException
        at net.minecraft.client.network.NetHandlerPlayClient.func_147290_a(NetHandlerPlayClient.java:2024) ~[bno.class:?]
        at net.minecraft.network.play.server.SPacketEntityProperties.func_148833_a(SourceFile:70) ~[ik.class:?]
        at net.minecraft.network.play.server.SPacketEntityProperties.func_148833_a(SourceFile:15) ~[ik.class:?]
        at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:164) ~[PacketUtil.class:1.11.2-2315-6.1.0-BETA-2395]
        at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjk000(SourceFile:539) ~[fo$1.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fo$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_131]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_131]
        at net.minecraft.util.Util.func_181617_a(SourceFile:46) ~[h.class:?]
        ... 9 more
```
Unable to connect when SpongeForge is installed client side
issue
created
EmanYm
username_1
I suggest removing SpongeForge from your client.
Probabley don't need SpongeAPI clientside either
comment
created
Meronat
username_2
@username_1 SpongeForge is designed to be able to work on servers and clients just fine, it even exposes some very slight extra features. Eventually the client version will provide a lot more functionality as well.

It can be a good way to test your plugins quickly, and it is another use case plugin developers should test and plan for. There are some people who even use SpongeForge on singleplayer to add certain functionality I bet.
comment
created
EmanYm
username_1
Have you tried without Spongeforge installed?
Did you use the forge installer?
Do you have any other mods installed?
comment
created
DarkArc
username_0
@username_1 It's not any other mods, it's SpongeForge. I've tried with every other mods removed. 

I need SpongeForge client side, as my mod is one jar, for client and server, and both a mix of Sponge, and Forge, for Item/Block registration. That's non-trivial to change, and I need Sponge present, if for no other reason, than to allow classes to load properly.
comment
created
EmanYm
username_1
Just trying to help by running down a troubleshooting list.  I will leave this for a dev to look into now.
comment
created
DarkArc
username_0
Started to investigate, this is the original exception, which seems to be the source of the problem:
```
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Server has not been initialized yet!
	at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_131]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_131]
	at net.minecraft.util.Util.runTask(Util.java:30) [Util.class:?]
	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1117) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.IllegalStateException: Server has not been initialized yet!
	at com.google.common.base.Preconditions.checkState(Preconditions.java:176) ~[guava-17.0.jar:?]
	at org.spongepowered.mod.SpongeModGame.getServer(SpongeModGame.java:57) ~[SpongeModGame.class:?]
	at org.spongepowered.api.Sponge.getServer(Sponge.java:240) ~[Sponge.class:?]
	at net.minecraft.world.chunk.Chunk.handler$onConstructedTracker$zmk000(Chunk.java:5023) ~[Chunk.class:?]
	at net.minecraft.world.chunk.Chunk.<init>(Chunk.java:114) ~[Chunk.class:?]
	at net.minecraft.world.chunk.EmptyChunk.<init>(EmptyChunk.java:23) ~[EmptyChunk.class:?]
	at net.minecraft.client.multiplayer.ChunkProviderClient.<init>(ChunkProviderClient.java:43) ~[ChunkProviderClient.class:?]
	at net.minecraft.client.multiplayer.WorldClient.createChunkProvider(WorldClient.java:131) ~[WorldClient.class:?]
	at net.minecraft.client.multiplayer.WorldClient.<init>(WorldClient.java:77) ~[WorldClient.class:?]
	at net.minecraft.client.network.NetHandlerPlayClient.handleJoinGame(NetHandlerPlayClient.java:309) ~[NetHandlerPlayClient.class:?]
	at net.minecraft.network.play.server.SPacketJoinGame.processPacket(SPacketJoinGame.java:89) ~[SPacketJoinGame.class:?]
	at net.minecraft.network.play.server.SPacketJoinGame.processPacket(SPacketJoinGame.java:13) ~[SPacketJoinGame.class:?]
	at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:164) ~[PacketUtil.class:?]
	at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjk000(PacketThreadUtil.java:539) ~[PacketThreadUtil$1.class:?]
	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_131]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_131]
	at net.minecraft.util.Util.runTask(Util.java:29) ~[Util.class:?]
	... 15 more
```
comment
closed
DarkArc
username_0
issue
created
DarkArc
username_0
Fixed by https://github.com/SpongePowered/SpongeCommon/pull/1384
comment