上传文件时谷歌应用引擎URLFetchTransport错误

时间:2016-03-21 16:42:04

标签: java google-app-engine gae-module

在图片上传过程中,我使用以下方法 getBlobKey 获取BlobKey图片并将其保存在数据库中。

Serving URL: http://127.0.0.1:8888/_ah/img/encoded_gs_key:L2dzL25pcmFudEdhbGxlcnkvaW1hZ2VfMF9kNjlmOGFjMS05ZTUzLTRiNzUtOTI1ZC1hYzU0ZWQzNzJkNDk

问题是当我在本地系统中运行它时,它可以运行并提供本地主机URL,如

Error for /nirat-admin-portal/addGallery
java.lang.NoClassDefFoundError: com/google/api/client/extensions/appengine/http/UrlFetchTransport
    at com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory.<clinit>(OauthRawGcsServiceFactory.java:31)
    at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:59)
    at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:44)
    at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:40)
    at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:75)
    at com.sparks.nirant.datastore.DataStoreService.getBlobKey(DataStoreService.java:207)
    at com.sparks.nirant.datastore.DataStoreService.saveImageMapToDataStore(DataStoreService.java:183)
    at com.sparks.nirant.serviceImpl.AdminServiceImpl.addGallery(AdminServiceImpl.java:121)
    at com.sparks.nirant.server.AdminController.doPost(AdminController.java:297)

但是当我部署并运行时,它无法正常工作,检查登录服务器下面的详细信息。

java -jar myjar.jar

请协助。

0 个答案:

没有答案