dain / leveldb

Port of LevelDB to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Files not loaded on certain computers but load on others just fine.

whirvis opened this issue · comments

For some reason when I try to use the Iq80DB it just wont work at all, but when my team mates do it it works fine! (Yes we are all using the same code) And what's weirder is that if I run the same code on my Macintosh and not my Windows 10, it loads just fine.

Stack trace:

[23:31:51] [ERROR] [RedstoneLamp]: java.io.FileNotFoundException while loading LevelDB world db
 (The filename, directory name, or volume label syntax is incorrect).provider.LevelLoadException: net.redstonelamp.level.provider.LevelLoadException: java.io.FileNotFoundException: worlds\world\db\MANIFEST-000025
 (The filename, directory name, or volume label syntax is incorrect)velLoadException: net.redstonelamp.level.provider.LevelLoadException: java.io.FileNotFoundException: worlds\world\db\MANIFEST-000025
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.level.Level.<init>(Level.java:88)
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.level.LevelManager.init(LevelManager.java:75)
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.Server.<init>(Server.java:126)
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.RedstoneLamp.main(RedstoneLamp.java:52)
 (The filename, directory name, or volume label syntax is incorrect)provider.LevelLoadException: java.io.FileNotFoundException: worlds\world\db\MANIFEST-000025
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.level.provider.leveldb.LevelDBProvider.<init>(LevelDBProvider.java:78)
[23:31:51] [INFO] [RedstoneLamp]:   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[23:31:51] [INFO] [RedstoneLamp]:   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[23:31:51] [INFO] [RedstoneLamp]:   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[23:31:51] [INFO] [RedstoneLamp]:   at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.level.Level.<init>(Level.java:84)
[23:31:51] [INFO] [RedstoneLamp]:   ... 3 more
 (The filename, directory name, or volume label syntax is incorrect)eption: worlds\world\db\MANIFEST-000025
[23:31:51] [INFO] [RedstoneLamp]:   at java.io.FileInputStream.open0(Native Method)
[23:31:51] [INFO] [RedstoneLamp]:   at java.io.FileInputStream.open(FileInputStream.java:195)
[23:31:51] [INFO] [RedstoneLamp]:   at java.io.FileInputStream.<init>(FileInputStream.java:138)
[23:31:51] [INFO] [RedstoneLamp]:   at org.iq80.leveldb.impl.VersionSet.recover(VersionSet.java:341)
[23:31:51] [INFO] [RedstoneLamp]:   at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:186)
[23:31:51] [INFO] [RedstoneLamp]:   at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
[23:31:51] [INFO] [RedstoneLamp]:   at net.redstonelamp.level.provider.leveldb.LevelDBProvider.<init>(LevelDBProvider.java:75)
[23:31:51] [INFO] [RedstoneLamp]:   ... 8 more

it says the file is not found but when I check to see if it exists it clearly does. I did
System.out.println(new File("worlds\world\db\MANIFEST-000025").exists());
which returned true, I also made sure it could be read by using .canRead(); which also returned true. I have no idea why this is happening and don't know if this is caused by a library issue dependent per system or what.