rmi error in google app

天大地大妈咪最大 提交于 2019-12-02 03:50:26

Commons FileUpload (1.2.1) is only semi-compatible with GAE. Only streaming API is supported but not the traditional API beacuse a local filesystem is not made available by GAE. In the stacktace, I see usage of DiskFileItem, which basically writes the uploaded file locally and deletes it later.

See the section under Apache Commons FileUpload at GAE and support for Java frameworks

Here's the streaming API usage.

The DiskFileItem class from the Commons FileUpload library uses java.rmi.server.UID internally and usage of this class is forbidden by the Google Apps runtime environment. Since DiskFileItem is caching the uploaded file on the server file system and disk access is forbidden by Google Apps anyway, removing the dependency on the RMI specific UID class won't solve your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!