Jump to content

Recommended Posts

Posted

Hey guys,

I usually try to figure this out myself, but I don't know much Java. I am getting a few errors, and would like some help to get rid of them.

java.lang.NumberFormatException: For input string: "null"

    at java.lang.NumberFormatException.forInputString(Unknown Source)

    at java.lang.Long.parseLong(Unknown Source)

    at java.lang.Long.valueOf(Unknown Source)

    at me.edge209.OnTime.DataIO.loadPlayerDataMySQL(DataIO.java:364)

    at me.edge209.OnTime.DataIO.loadAllData(DataIO.java:32)

    at me.edge209.OnTime.OnTime.onEnable(OnTime.java:195)

    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)

    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)

    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:386)

    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:264)

    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:246)

    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:387)

    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:374)

    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:208)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)


 

I think this may have to do with a plugin (ontime) being outdated? Tekkit still runs on 1.2.5. though so I probably should not update to 3.1.2. versions, correct?

 


2012-09-13 21:54:33 [sEVERE] Could not pass event BlockPlaceEvent to ChestShop

org.bukkit.event.EventException

    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)

    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482)

    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467)

    at railcraft.common.structures.ItemMetalPost.interactWith(ItemMetalPost.java:120)

    at net.minecraft.server.ItemStack.placeItem(ItemStack.java:83)

    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:318)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:647)

    at net.minecraft.server.Packet15Place.handle(SourceFile:39)

    at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119)

    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83)

    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

Caused by: java.lang.NullPointerException

    at com.Acrobot.Breeze.Utils.BlockUtil.isSign(BlockUtil.java:18)

    at com.Acrobot.ChestShop.Listeners.Block.BlockPlace.onBlockPlace(BlockPlace.java:27)

    at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)

    ... 14 more

I assume this has to do with ChestShop, though I am not sure what is wrong with it.

I've tried to replicate this problem, but am not sure when it arises. It has come up quite a few times.

Thanks for all the help guys, appreciate it. :)

Posted

I can help you with the OnTime issue since I am the author. I need to know what version of OnTime you are running and it would be helpful to see your /ontime/config.yml

On first glance it looks like you have a bad piece of data in our MySQL database. So the next thing I will Lilly need you to do is to turn on OnTime logging, and then have you post the resulting /ontime/OnTimeLog.txt file. There is an enable in the config.yml to turn on logging and you would need to set the logging level to "1".

In the future when you see errors like this your best bet is to post on the bukkitdev page for this or any other plugin. I just happened to stumble across this.

Edge

Posted

Thank you, I am using 3.0.5.

One thing I actually noticed was that after 9/10/2012, no data was saved. I had the servers crashed on me that day, which I believe would have caused the problems in the SQL database.

# OnTime Configuration File

# Last Default YML Update: July 17, 2012

# Author: Edge209

 

#Version of this config file DO NOT CHANGE THIS

configVersion: 7

 

# The name of your server

serverName: ECG Tekkit

 

# If purge is enabled users will be auto removed from stored file if they don't have enough play time / or have not been on for so long

purgeEnable: true

 

# minimum time in minutes someone has to be on for their data to be saved

purgeTimeMin: 10

 

# maximum time in days since last login before purge

purgeLoginDay: 60

 

# maximum length of 'top player' lists

topListMax: 10

 

# Enable if data should be saved to disk on scheduled event. Otherwise it will happen on server shutdown only

autoSaveEnable: true

 

# If auto file save is enabled above, how frequently (server ticks) should this be done.  (72000 = 1 hour)

autoSavePeriod: 72000

 

# Enable if backup versions of data files should be auto-created each day

autoBackupEnable: true

 

# If auto backup is enabled above, how many versions should be retained?

autoBackupVersions: 3

 

# Enable if daily playingtime should be collected and reported

collectDailyEnable: true

 

# Enable if weekly playingtime should be collected and reported

collectWeeklyEnable: true

 

# Enable if monthly playingtime should be collected and reported

collectMonthlyEnable: true

 

# Identify the starting day of each week for weekly reports and weekly rewards.  Valid Values: 1-7  where:

# 1=Sunday; 2=Monday; etc.

firstDayofWeek: 1

 

# Identify the starting day of each month for monthly reports, and montly rewards.

# Just in case you want to start in the middle for some strange reason..... and to help debug problems

# Valid Values: 1-31  where: 1=1st; 2=2nd; etc.

firstDayofMonth: 1

 

# Enable if DAILY/WEEKLY/MONTLY reports should be auto-generated

autoReportEnable: true

 

# Enable if HTML format should be used for Reports (default is .txt)

reportFormatHTML: true

 

# Enable if log file should be created.

logEnable: true

 

# Detail to be included in OnTime logfile. 1=most detail ; 2=medium ; 3=least detail

logLevel: 3

 

# Detail to be shown on console. 1=most detail ;2= medium; 3=least detail

consoleLogLevel: 3

 

# Log Levels Include:

# Level 1 (Level 2 and Level 3 events plus)

#  Player login event

#  Player Quit event

#  Rewards scheduled

#  Rewards cancelled

# Level 2 (Level 3 events plus)

#    Players purged from records due to low play time

#  Players purged from records due to long absence

#  Players not scheduled for reward due to lack of receive permission

# Level 3 (Level 3 events only)

#  'set', 'add', and 'remove' commands executed

#  Rewards Issued

#  Error Messages

 

# Enable if OnTime Rewards system to be enabled

rewardsEnable: true

 

# Enable if Reward Notification Messages to players should be displayed

rewardNotifyEnable: true

 

# Enable if players are allowed to be referred by other players, and 'referred by' rewards defined and issued

referredByEnable: true

 

# Max total OnTime (in hours) where player can still be referred by another. After they have been on this long, they can no longer claim

# a reference by another player.  Set to -1 for no limit.

referredByMaxTime: -1

 

# Enable if AFK status to be checked, and AFK time NOT counted

afkCheckEnable: true

 

# If AFK is enabled, max time (minutes) with no activity before player is considered AFK

afkTime: 5

 

# Selection of Data Storage Method.  Valid values= DAT, YML, MYSQL

dataStorage: MYSQL

 

# MySQL - This must be enabled and properly set up if MySQL is to be used for data storage and/or

#          data import is to be done from another plugin MySQL table.  (currently support for LogBlock is provided)

MySQL:

  enable: true

  host: localhost

  port: ****

  user: ****

  password: ****

  database: ****

 

# Top Player Rewards

#

# Enable if rewards should be allowed to be defined as 'top player' rewards for the associated time period.

topRewardDailyEnable: true

topRewardWeeklyEnable: true

topRewardMonthlyEnable: true

topRewardTotalEnable: true

# When should rewards be issued to the overall top (total OnTime) players?  Valid settings: "daily", "weekly", and "monthly"

totalTopReward: weekly

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...