Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auto-loading of new Javadoc ZIPs #6

Open
mangstadt opened this issue Apr 11, 2015 · 2 comments
Open

Fix auto-loading of new Javadoc ZIPs #6

mangstadt opened this issue Apr 11, 2015 · 2 comments
Labels

Comments

@mangstadt
Copy link
Member

SEVERE: Uncaught exception thrown.
java.util.zip.ZipError: zip END header not found
at com.sun.nio.zipfs.ZipFileSystem.zerror(ZipFileSystem.java:1605)
at com.sun.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:1021)
at com.sun.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1030)
at com.sun.nio.zipfs.ZipFileSystem.(ZipFileSystem.java:130)
at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139)
at java.nio.file.FileSystems.newFileSystem(FileSystems.java:390)
at oakbot.command.javadoc.LibraryZipFile.(LibraryZipFile.java:36)
at oakbot.command.javadoc.JavadocDao.addApi(JavadocDao.java:73)
at oakbot.command.javadoc.JavadocDao.access$200(JavadocDao.java:28)
at oakbot.command.javadoc.JavadocDao$WatchThread.add(JavadocDao.java:204)
at oakbot.command.javadoc.JavadocDao$WatchThread.run(JavadocDao.java:178)

@mangstadt
Copy link
Member Author

Always seems to happen when uploading a ZIP directly into the Javadocs folder--like it's trying to read the ZIP before the upload has completed.

@mangstadt mangstadt added the bug label Nov 18, 2015
@mangstadt
Copy link
Member Author

Low priority.

Have since switched to a system where the Javadoc info is not cached at all, so it loads the data from the ZIP files fresh every time. This means that there is no longer a need to monitor the Javadoc ZIP files for changes. Much simpler implementation. No noticeable difference in performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant