Comments (10)
Thanks for the report.
Can you provide your config file, thanks. :)
from backup.
I Have added a catch exception to this class, should fix the issue.
I could not reproduce it, but give the latest build a go:
http://ci.tgxn.net/job/dev-Backup/18/
from backup.
Config file: http://pastebin.com/410bVi5M
The error is still there
11:21:38 [INFO] java.lang.NullPointerException
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.cleanFolder(BackupTask.java:416)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.deleteOldBackups(BackupTask.java:381)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.backup(BackupTask.java:308)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.run(BackupTask.java:83)
11:21:38 [INFO] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
11:21:38 [INFO] java.lang.NullPointerException
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.cleanFolder(BackupTask.java:416)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.deleteOldBackups(BackupTask.java:381)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.backup(BackupTask.java:308)
11:21:38 [INFO] at net.tgxn.bukkit.backup.threading.BackupTask.run(BackupTask.java:83)
11:21:38 [INFO] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
11:21:38 [INFO] at java.lang.Thread.run(Unknown Source)
from backup.
// Store all backup files in an array.
File[] filesList = backupDir.listFiles();
// If the amount of files exceeds the max backups to keep.
if (filesList.length > maxBackups) {
This is from L416 in BackupTask.java
"Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs."
Throws: SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the directory
To fix this we have to throw a custom Exception after checking fileList against null.
if (fileList == null)
throw new BackupInvalidDirectory("Directory not found or I/O Error occured)
something like that =)
from backup.
I have checked the folder, and backups are indeed performed fine (and temporary folder is removed correctly). Only the backup cleanup is not performed correctly. I have "Full control" over the backup folder. So, probably the path to backup dir is different in creation and removal code?
from backup.
@iarspider (according to your config file you do use v1.8. [..]) Edit: okay i was wrong about auto version update sry ;) Have to open an issue about this and implement an update manager ^^
from backup.
1.8.3-dev (as fetched by CraftBukkitUpToDate)
from backup.
Thanks, we have to check that ... also i dont get the throws Exception declaration in the methods signature and in body of cleanFolder() ... anysways should be fixed soon.
from backup.
Cheers lycano! Ill try to push a fix tonight.
from backup.
Fixed.
from backup.
Related Issues (20)
- Problem: CoreData Compatibility Issue. HOT 3
- Plugin is not removing old backups since 1.3 HOT 8
- Backup will not backup all plugins, seems to stall at plugins with a '-' HOT 8
- Errors when backing up HOT 1
- Failed to delete old backups (Urgent! Every time a backup runs!) HOT 8
- Fix: Not compatible with worldedit snapshots HOT 3
- DropBox Integration HOT 1
- Source 'worlds/World' does not exist HOT 3
- 00:08:01 [INFO] [Backup] Please provide following error with support request: HOT 4
- [SEVERE] Plugin attempted to register task while disabled HOT 2
- Backup fails when specifying size for maxbackups HOT 1
- Only a seed file in world folder after backup HOT 2
- java.util.ConcurrentModificationException on Backup HOT 3
- Question: Is this plugin ready for 1.6.1?
- Backup failed HOT 2
- Error when Backup starts...
- Error occurs when loading the plugin
- Failed to backup worlds: Exception in BackupWorlds.
- "null backup" No backup performed.
- when exception occurs - backup crash and after no more save are done
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backup.