DatastoreException引发Non-protobuf错误!访问IDproject:提交

时间:2019-01-20 11:23:21

标签: eclipse maven google-app-engine google-cloud-datastore objectify

我正尝试通过以下方式在数据存储区中存储内容:

public void createConsumer(String username, String password, String name, String email) {
    Consumer consumer = new Consumer(username+password,username,password,name,email);
    ofy().save().entity(consumer).now();
}

结束它会引发异常:

  

com.google.cloud.datastore.DatastoreException:非protobuf错误:      未找到错误404    

HTTP错误404

问题访问   / v1 / projects / web-app2018:commit。原因:

{
    Not
Found


Powered by Jetty:// 9.4.14.v20181114

     

。 HTTP状态码为404。   com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.translate(HttpDatastoreRpc.java:129)     在   com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.commit(HttpDatastoreRpc.java:155)     在   com.google.cloud.datastore.DatastoreImpl $ 4.call(DatastoreImpl.java:485)     在   com.google.cloud.datastore.DatastoreImpl $ 4.call(DatastoreImpl.java:482)     在   com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:105)     在com.google.cloud.RetryHelper.run(RetryHelper.java:76)处   com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50)在   com.google.cloud.datastore.DatastoreImpl.commit(DatastoreImpl.java:481)     在   com.google.cloud.datastore.DatastoreImpl.commitMutation(DatastoreImpl.java:475)     在   com.google.cloud.datastore.DatastoreImpl.put(DatastoreImpl.java:435)     在   com.googlecode.objectify.impl.AsyncDatastoreReaderWriterImpl.put(AsyncDatastoreReaderWriterImpl.java:60)     在   com.googlecode.objectify.impl.WriteEngine.save(WriteEngine.java:78)     在   com.googlecode.objectify.impl.SaverImpl.entities(SaverImpl.java:60)     在com.googlecode.objectify.impl.SaverImpl.entity(SaverImpl.java:35)     在it.units.view.ConsumerView.createConsumer(ConsumerView.java:36)     在it.units.controller.storeDB.processRequest(storeDB.java:37)处   it.units.controller.storeDB.doGet(storeDB.java:54)位于   javax.servlet.http.HttpServlet.service(HttpServlet.java:687)在   javax.servlet.http.HttpServlet.service(HttpServlet.java:790)在   org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1623)     在   org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:214)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1610)     在   com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:48)     在   org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1602)     在   org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)     在   org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)     在   org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)     在   org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     在   org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)     在   org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)     在   org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)     在   org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)     在   org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)     在   org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)     在   org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)     在   org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)     在   org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)     在   org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)     在   org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)     在   org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)     在   org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     在org.eclipse.jetty.server.Server.handle(Server.java:502)处   org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)在   org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)     在   org.eclipse.jetty.io.AbstractConnection $ ReadCallback.succeeded(AbstractConnection.java:305)     在org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)     在   org.eclipse.jetty.io.ChannelEndPoint $ 2.run(ChannelEndPoint.java:118)     在   org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)     在   org.eclipse.jetty.util.thread.QueuedThreadPool $ 2.run(QueuedThreadPool.java:683)     在java.base / java.lang.Thread.run(Thread.java:844)造成原因:   com.google.datastore.v1.client.DatastoreException:非protobuf错误:      未找到错误404    

HTTP错误404

问题访问   / v1 / projects / web-app2018:commit。原因:

{
    Not
Found


Powered by Jetty:// 9.4.14.v20181114

     

。 HTTP状态代码为404。,代码为= INTERNAL,位于   com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:224)     在   com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:238)     在com.google.datastore.v1.client.RemoteRpc.call(RemoteRpc.java:185)     在com.google.datastore.v1.client.Datastore.commit(Datastore.java:87)     在   com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.commit(HttpDatastoreRpc.java:153)     ...还有49个

web-app2018是项目ID。

有人可以帮我吗?

0 个答案:

没有答案