-1

I set up a Spigot server on my PC, created from the latest BuildTools. There are no errors on startup, but I can't log in due to a Java security exception.

I've tried updating Java to the latest release, creating a clean server directory, running both CraftBukkit and Spigot builds, with the matching version of Minecraft. I've connected to both 127.0.0.1 and localhost, with and without specifying the port. In all cases the error is the same. This only happens with my local server- I'm able to log in to multiple remote servers just fine.

Client message:

Failed to connect to the server Disconnected

Console message:

[11:20:38 WARN]: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA [11:20:38 WARN]: at javax.crypto.Cipher.getInstance(Cipher.java:540) ... [11:20:38 INFO]: com.mojang.authlib.GameProfile@479afd0d[id=<null>,name=WildWeazel,properties={},legacy=false] (/127.0.0.1:51608) lost connection: Internal Exception: java.lang.NullPointerException

WildWeazel
  • 752
  • 1
  • 4
  • 19

1 Answers1

1

You might be using:

 -Djava.ext.dirs=../lib 

as a startup directive for your java. Try using a regular startup directive such as

java -Xmx1G -Xms1G -jar (jarfile)

If this does not work, you can try downgrading to Java 7

Kaveen K
  • 175
  • 1
  • I don't recall what that was doing in the launch script, but sure enough that did it. – WildWeazel Mar 19 '16 at 02:32
  • No problem, the ext.dir./lib directive is hardcoded and is not supported anymore, it was used back when Minecraft was in 1.3 – Kaveen K Mar 19 '16 at 03:20