tgxn / Backup

A Backup plugin for the Bukkit Server API.
http://bukkitbackup.com
GNU General Public License v3.0
23 stars 14 forks source link

"java.land.IndexOutOfBoundesException" when backing up #129

Closed bastitch closed 11 years ago

bastitch commented 12 years ago

Whenever the backup runs, in the game it says all went well, but in the console it gives me a long error and says to submit a ticket with the following info:

10:46:03 [INFO] [Backup] Please provide following error with support request:
10:46:03 [INFO] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
10:46:03 [INFO]         at java.util.ArrayList.rangeCheck(Unknown Source)
10:46:03 [INFO]         at java.util.ArrayList.get(Unknown Source)
10:46:03 [INFO]         at com.bukkitbackup.full.threading.BackupTask.cleanFolde
r(BackupTask.java:267)
10:46:03 [INFO]         at com.bukkitbackup.full.threading.BackupTask.deleteOldB
ackups(BackupTask.java:209)
10:46:03 [INFO]         at com.bukkitbackup.full.threading.BackupTask.run(Backup
Task.java:138)
10:46:03 [INFO]         at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
tWorker.java:34)
10:46:03 [INFO]         at java.lang.Thread.run(Unknown Source)

Any idea what's causing this? No backup is being made either.

Thanks

EDIT: More info:: I've just installed this plugin, it has never worked so far. Also this is a Tekkit 3.1 server running on Windows

tgxn commented 12 years ago

Can you provide details on what version of the plugin you are running?

Also, try the latest dev version: http://ci.tgxn.net/job/dev-Backup/lastSuccessfulBuild/artifact/target/Backup.jar

bastitch commented 12 years ago

Upgrading to your dev build seems to have solved the problem. Odd though I am running Tekkit 3.1.2 which runs on Bukkit 1.2.5.

Either way backups work great and verified files work!

Thanks

BTW: I was using version 2.0 of your plugin before.

On Sun, Aug 12, 2012 at 8:50 AM, Domenic Horner notifications@github.comwrote:

Can you provide details on what version of the plugin you are running?

Also, try the latest dev version:

http://ci.tgxn.net/job/dev-Backup/lastSuccessfulBuild/artifact/target/Backup.jar

— Reply to this email directly or view it on GitHubhttps://github.com/gamerx/Backup/issues/129#issuecomment-7675861.

bastitch commented 12 years ago

Ok, well I get this error when a backup is being performed now:

10:16:07 [INFO] [Backup] Started Backup...
10:16:07 [SEVERE] java.util.ConcurrentModificationException
10:16:07 [SEVERE]       at java.util.HashMap$HashIterator.nextEntry(Unknown Sour
ce)
10:16:07 [SEVERE]       at java.util.HashMap$KeyIterator.next(Unknown Source)
10:16:07 [SEVERE]       at net.minecraft.server.World.a(World.java:2448)
10:16:07 [SEVERE]       at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionL
oader.java:219)
10:16:07 [SEVERE]       at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionL
oader.java:88)
10:16:07 [SEVERE]       at net.minecraft.server.ChunkProviderServer.saveChunk(Ch
unkProviderServer.java:171)
10:16:07 [SEVERE]       at net.minecraft.server.ChunkProviderServer.saveChunks(C
hunkProviderServer.java:221)
10:16:07 [SEVERE]       at net.minecraft.server.World.save(World.java:263)
10:16:07 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.save(CraftWorld.jav
a:646)
10:16:07 [SEVERE]       at com.bukkitbackup.full.threading.tasks.BackupWorlds.do
Worlds(BackupWorlds.java:92)
10:16:07 [SEVERE]       at com.bukkitbackup.full.threading.BackupTask.run(Backup
Task.java:114)
10:16:07 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
tWorker.java:34)
10:16:07 [SEVERE]       at java.lang.Thread.run(Unknown Source)
10:16:11 [INFO] [Backup] Finished Backup!
10:16:23 [INFO] [Backup] Failed to retrieve latest version information.

Yet when I check the backups folder, I see a new backup.

tgxn commented 12 years ago

Is anything missing from the backup?

I added a try catch around this, and it should work slightly better now.

tgxn commented 11 years ago

Closing Ticket.