GAE java.lang.IllegalStateException: Must call one of set*BlobStorage() first

前端 未结 5 558
情歌与酒
情歌与酒 2021-01-14 18:41

I am trying to upload a file in GAE using the Blobstore API. I am getting the following exception when running the GAE server locally (dev mode):

WARNING: /_         


        
5条回答
  •  粉色の甜心
    2021-01-14 19:21

    The issue was caused by having the stubs and testing jars included on the classpath when running the dev app server. If you are using maven, simply change the scope of the dependency:

    
        com.google.appengine
        appengine-api-stubs
        ${gae.version}
        test
    
    
        com.google.appengine
        appengine-testing
        ${gae.version}
        test
    
    

    If you are not using maven, make sure these jars are not in your WEB-INF/lib or classpath.

提交回复
热议问题