I'm getting an error when I update my extension class files:
Exception in thread "extensionReloader" java.lang.ClassFormatError: Truncated class file
Any idea why that would be?
Error with AutoReload
Hi,
reloading from the Admin Tool should never fail.
Unfortunately the auto-reload can fail at times if the server realizes that new files were written and starts reloading while the files are still being transferred.
We'll try to better address this problem in a next release, but there is no perfect solution to this because there's no way to know how many files are being written. In fact the reloading is triggered when the server sees a change in the "last modified" date of the main extension file.
When there's many files being transferred or the transfer is slow (e.g. via FTP / HTTP) the prolem can arise.
Reloading from AdminTool does not incur in this issue for obvious reason: the developer first transfer the data then goes to the admin tool and hits the Reload button, acting as a mean of synchronization
I can reload from the Admin tool. Oddly, the admin tool shows one of my java extensions as type Actionscript.
reloading from the Admin Tool should never fail.
Unfortunately the auto-reload can fail at times if the server realizes that new files were written and starts reloading while the files are still being transferred.
We'll try to better address this problem in a next release, but there is no perfect solution to this because there's no way to know how many files are being written. In fact the reloading is triggered when the server sees a change in the "last modified" date of the main extension file.
When there's many files being transferred or the transfer is slow (e.g. via FTP / HTTP) the prolem can arise.
Reloading from AdminTool does not incur in this issue for obvious reason: the developer first transfer the data then goes to the admin tool and hits the Reload button, acting as a mean of synchronization
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 56 guests