olliestanley/craftprofiles

look into issue one user is having

Closed this issue · 3 comments

[14:41:28] [Server thread/INFO]: [CraftProfiles] Enabling CraftProfiles v1.0.0
[14:41:28] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "3306cprofiles"'.
[14:41:28] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[14:41:28] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[14:41:28] [Server thread/WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[14:41:28] [Server thread/WARN]: at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.Util.getInstance(Util.java:382)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:314)
[14:41:28] [Server thread/WARN]: at java.sql.DriverManager.getConnection(DriverManager.java:579)
[14:41:28] [Server thread/WARN]: at java.sql.DriverManager.getConnection(DriverManager.java:221)
[14:41:28] [Server thread/WARN]: at pw.ollie.craftprofiles.ProfileStore.getConnection(ProfileStore.java:132)
[14:41:28] [Server thread/WARN]: at pw.ollie.craftprofiles.ProfileStore.initialise(ProfileStore.java:42)
[14:41:28] [Server thread/WARN]: at pw.ollie.craftprofiles.CraftProfiles.onEnable(CraftProfiles.java:60)
[14:41:28] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250)
[14:41:28] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324)
[14:41:28] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
[14:41:28] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:441)
[14:41:28] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:375)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436)
[14:41:28] [Server thread/WARN]: at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
[14:41:28] [Server thread/WARN]: Caused by: java.lang.NumberFormatException: For input string: "3306cprofiles"
[14:41:28] [Server thread/WARN]: at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
[14:41:28] [Server thread/WARN]: at java.lang.Integer.parseInt(Integer.java:492)
[14:41:28] [Server thread/WARN]: at java.lang.Integer.parseInt(Integer.java:527)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.port(NonRegisteringDriver.java:831)
[14:41:28] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
[14:41:28] [Server thread/WARN]: ... 16 more
[14:41:28] [Server thread/ERROR]: Error occurred while enabling CraftProfiles v1.0.0 (Is it up to date?)
java.lang.NullPointerException
at pw.ollie.craftprofiles.ProfileStore.initialise(ProfileStore.java:48) ~[?:?]
at pw.ollie.craftprofiles.CraftProfiles.onEnable(CraftProfiles.java:60) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:441) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:375) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-21-g1ab090e-b3050jnks]

I can't reproduce it but I will look into it. Seems like the plugin is combining the database name with the port but I have no idea why it would...

If it helps heres my config:
url: jdbc:mysql://quollcraft.net:3306/
database: quollcr1_hub
db-user: quollcr1_forum
db-pass: d7sjd7sudasdkI(jdsL0

well, my config looks like this

url: jdbc:mysql://localhost:3306/
database: cprofiles
db-user: root
db-pass: password

And I have no problems. Still looking into it.

@LaughingQuoll I made a new change to the plugin. Now, your config should look more like this:

db-url: jdbc:mysql://127.0.0.1:3306/cprofiles
db-user: root
db-pass: password

Notice that url has changed to db-url and now requires the database name on the end of it, instead of the database field. DL: http://ollie.pw/dl/CraftProfiles.jar