ChangeSkinX

ChangeSkinX

446k Downloads

NullPointerException SkinUpload

cmisztur opened this issue ยท 13 comments

commented

Hello, skinupload does not work. Any ideas how to get more info?

Spigot 1.10

ChangeSkin: Successfull authenticated user 74c62b3a4bff

1:57:01 PM CONSOLE: [INFO] TATODOG issued server command: /skinupload http://www.minecraftskins.com/thumbnails/technoblox-9873879.png
1:57:02 PM CONSOLE: WARN]: Exception in thread "Craft Scheduler Thread - 13"
1:57:02 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin ChangeSkin v2.3.2 generated an exception while executing task 3110

commented

The skinUrl is invalid. You need the raw skin file not the rendered one.

commented

And what's the username of your uploader account?

commented

I looked at the source and it points back to this, right?

String oldSkinUrl = plugin.getCore().getMojangAuthApi().getSkinUrl(profile.getName());

commented

Yes and that is null, because the header field Location (for redirection) wasn't available.

commented

I guess profile.getName() returned an invalid username.

commented

Anything I could try on my side?

commented

I need the full stacktrace

commented

[13:55:22] [Craft Scheduler Thread - 12/WARN]: org.apache.commons.lang.UnhandledException: Plugin ChangeSkin v2.3.2 generated an exception while executing task 1839 at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at java.net.URLEncoder.encode(Unknown Source) at com.github.games647.changeskin.core.MojangAuthApi.changeSkin(MojangAuthApi.java:90) at com.github.games647.changeskin.bukkit.tasks.SkinUploader.run(SkinUploader.java:48) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more

commented

Yes, could you try the latest dev-build?

commented

do you have the bits or do I have to build?

commented

"/skinupload url" returns a successful response, however skin selection only works for skins uploaded directly on minecraft.net. "/skinselect 12" returns a success message, however the skin shown is the last skin uploaded on minecraft.net

/skinupload http://imgur.com/a/FFwWE
issued server command: /skinselect 12