Google app engine 对API调用datastore_v3.Put()的请求太大。使用Objectify(数据存储)而不上载文件

Google app engine 对API调用datastore_v3.Put()的请求太大。使用Objectify(数据存储)而不上载文件,google-app-engine,session,primefaces,jsf-2,google-cloud-datastore,Google App Engine,Session,Primefaces,Jsf 2,Google Cloud Datastore,我得到以下错误 ApiProxy$RequestTooLargeException: 对API调用数据存储_v3.Put()的请求太大 我正在使用Objectify 4.0,没有上传任何文件。我正在为我的应用程序使用数据存储,但1Mb以上的唯一项目是\u值\u ah\u会话实体中的blob 控制台的图像位于: 我不知道如何解决这个问题,即使以前有人问过这个错误,我的问题是我没有使用文件,我实际上在使用数据存储 编辑:再次测试,似乎在删除操作中中断。这是日志 谢谢你的帮助 AppStat错误堆栈

我得到以下错误

ApiProxy$RequestTooLargeException: 对API调用数据存储_v3.Put()的请求太大

我正在使用Objectify 4.0,没有上传任何文件。我正在为我的应用程序使用数据存储,但1Mb以上的唯一项目是
\u值
\u ah\u会话
实体中的blob

控制台的图像位于:

我不知道如何解决这个问题,即使以前有人问过这个错误,我的问题是我没有使用文件,我实际上在使用数据存储

编辑:再次测试,似乎在删除操作中中断。这是日志

谢谢你的帮助

AppStat错误堆栈

@2998ms datastore_v3.RunQuery real=7ms api=0ms cost=0 billed_ops=[]
Stack:
  com.google.appengine.tools.appstats.Recorder:276 makeAsyncCall()
  com.google.apphosting.api.ApiProxy:199 makeAsyncCall()
  com.google.appengine.api.datastore.DatastoreApiHelper:82 makeAsyncCall()
  com.google.appengine.api.datastore.QueryRunnerV3:36 runQuery()
  com.google.appengine.api.datastore.PreparedQueryImpl:32 runQuery()
  com.google.appengine.api.datastore.PreparedQueryImpl:61 asQueryResultIterator()
  com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:100 <init>()
  com.googlecode.objectify.impl.engine.QueryEngine$1:64 iterator()
  com.googlecode.objectify.util.TranslatingQueryResultIterable:28 iterator()
  com.googlecode.objectify.util.TranslatingQueryResultIterable:11 iterator()
  com.googlecode.objectify.util.ResultProxy$1:26 translate()
  com.googlecode.objectify.util.ResultProxy$1:22 translate()
  com.googlecode.objectify.util.ResultTranslator:21 nowUncached()
  com.googlecode.objectify.util.ResultCache:30 now()
  com.googlecode.objectify.util.ResultProxy:52 invoke()
  com.sun.proxy.$Proxy16:164 toArray()
  co.gov.fonada.planeacion.mb.ContratoMB:67 fillContratos()

 @4218ms memcache.Get real=71ms api=0ms cost=0 billed_ops=[]
Stack:
  com.google.appengine.tools.appstats.Recorder:276 makeAsyncCall()
  com.google.apphosting.api.ApiProxy:199 makeAsyncCall()
  com.google.apphosting.api.ApiProxy:138 makeAsyncCall()
  com.google.appengine.api.memcache.MemcacheServiceApiHelper:95 makeAsyncCall()
  com.google.appengine.api.memcache.AsyncMemcacheServiceImpl:475 doGetAll()
  com.google.appengine.api.memcache.AsyncMemcacheServiceImpl:436 getIdentifiables()
  com.google.appengine.api.memcache.MemcacheServiceImpl:59 getIdentifiables()
  com.googlecode.objectify.cache.EntityMemcache:215 getAll()
  com.googlecode.objectify.cache.CachingAsyncDatastoreService:253 get()
  com.googlecode.objectify.impl.engine.LoadEngine$Round:172 fetchPending()
  com.googlecode.objectify.impl.engine.LoadEngine$Round:118 execute()
  com.googlecode.objectify.impl.engine.LoadEngine:258 execute()
  com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:152 advanceBatch()
  com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:105 <init>()
  com.googlecode.objectify.impl.engine.QueryEngine$1:64 iterator()
  com.googlecode.objectify.util.TranslatingQueryResultIterable:28 iterator()
  com.googlecode.objectify.util.TranslatingQueryResultIterable:11 iterator()
  com.googlecode.objectify.util.ResultProxy$1:26 translate()
  com.googlecode.objectify.util.ResultProxy$1:22 translate()
  com.googlecode.objectify.util.ResultTranslator:21 nowUncached()
  com.googlecode.objectify.util.ResultCache:30 now()
  com.googlecode.objectify.util.ResultProxy:52 invoke()
  com.sun.proxy.$Proxy16:164 toArray()
  co.gov.fonada.planeacion.mb.ContratoMB:67 fillContratos()
@2998ms数据存储\u v3.RunQuery real=7ms api=0ms成本=0计费\u ops=[]
堆栈:
com.google.appengine.tools.appstats.Recorder:276 makeAsyncCall()
ApiProxy:199 makeAsyncCall()
com.google.appengine.api.datastore.DatastoreApiHelper:82 makeAsyncCall()
com.google.appengine.api.datastore.QueryRunnerV3:36 runQuery()
com.google.appengine.api.datastore.PreparedQueryImpl:32 runQuery()
com.google.appengine.api.datastore.PreparedQueryImpl:61 AsQueryResulterator()
com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:100()
com.googlecode.objectify.impl.engine.QueryEngine$1:64迭代器()
com.googlecode.objectify.util.TranslatingQueryResulterable:28迭代器()
com.googlecode.objectify.util.TranslatingQueryResulterable:11迭代器()
com.googlecode.objectify.util.ResultProxy$1:26 translate()
com.googlecode.objectify.util.ResultProxy$1:22 translate()
com.googlecode.objectify.util.ResultTranslator:21 nowUnached()
com.googlecode.objectify.util.ResultCache:30 now()
com.googlecode.objectify.util.ResultProxy:52 invoke()
com.sun.proxy.$Proxy16:164 toArray()
co.gov.fonada.planeacion.mb.contracolm:67 fillcontractos()
@4218ms memcache.Get real=71ms api=0ms cost=0 billed_ops=[]
堆栈:
com.google.appengine.tools.appstats.Recorder:276 makeAsyncCall()
ApiProxy:199 makeAsyncCall()
ApiProxy:138 makeAsyncCall()
com.google.appengine.api.memcache.MemcacheServiceApiHelper:95 makeAsyncCall()
com.google.appengine.api.memcache.asynchmemcacheserviceinpl:475 doGetAll()
com.google.appengine.api.memcache.AsyncMemcacheServiceImpl:436 getIdentifiables()
com.google.appengine.api.memcache.memcacheserviceinpl:59 getIdentifiables()
com.googlecode.objectify.cache.EntityMemcache:215 getAll()
com.googlecode.objectify.cache.cachingasyncatastoreservice:253 get()
com.googlecode.objectify.impl.engine.LoadEngine$Round:172 fetchPending()
com.googlecode.objectify.impl.engine.LoadEngine$Round:118 execute()
com.googlecode.objectify.impl.engine.LoadEngine:258 execute()
com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:152 advanceBatch()
com.googlecode.objectify.impl.engine.QueryEngine$ChunkingToRefIterator:105()
com.googlecode.objectify.impl.engine.QueryEngine$1:64迭代器()
com.googlecode.objectify.util.TranslatingQueryResulterable:28迭代器()
com.googlecode.objectify.util.TranslatingQueryResulterable:11迭代器()
com.googlecode.objectify.util.ResultProxy$1:26 translate()
com.googlecode.objectify.util.ResultProxy$1:22 translate()
com.googlecode.objectify.util.ResultTranslator:21 nowUnached()
com.googlecode.objectify.util.ResultCache:30 now()
com.googlecode.objectify.util.ResultProxy:52 invoke()
com.sun.proxy.$Proxy16:164 toArray()
co.gov.fonada.planeacion.mb.contracolm:67 fillcontractos()
新编辑:

我在memcache中发现了一个大字符串,带有_ahs*键,它应该是一个会话变量。我认为这是变量变得太大了。文本包括一份用于“调试”的HTML副本以及一系列产品的版权免责声明

全文如下:

这是正文的一部分:

> pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2016uq~uq~uq~ppppuq~q~q~ �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2015uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2018uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2017uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt%mainAccordion:formPago:dataPagos:ajaxuq~uq~uq~sq~Ssq~Ww#{pagoMB.buttonCrear}uq~Yq~[ppxwDB/formContrato.xhtml @806,33 actionListener="#{pagoMB.buttonCrear}"xsq~Ww'#{pagoMB.buttonCrear}java.lang.Voiduq~Yppxppppxxxtfacelets.ui.DebugOutputsr'com.sun.faces.facelets.tag.ui.UIDebug$2#E�#�  -xq~
?@wt
1427384717777|9<!--

    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

    Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.

    The contents of this file are subject to the terms of either the GNU
    General Public License Version 2 only ("GPL") or the Common Development
    and Distribution License("CDDL") (collectively, the "License").  You
    may not use this file except in compliance with the License.  You can
    obtain a copy of the License at
    https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
    or packager/legal/LICENSE.txt.  See the License for the specific
    language governing permissions and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file at packager/legal/LICENSE.txt.

    GPL Classpath Exception:
    Oracle designates this particular file as subject to the "Classpath"
    exception as provided by Oracle in the GPL Version 2 section of the License
    file that accompanied this code.

    Modifications:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"

    Contributor(s):
    If you wish your version of this file to be governed by only the CDDL or
    only the GPL Version 2, indicate your decision by adding "[Contributor]
    elects to include this software in this distribution under the [CDDL or GPL
    Version 2] license."  If you don't indicate a single choice of license, a
    recipient has the option to distribute your version of this file under
    either the CDDL, the GPL Version 2 or to extend the choice of license to
    its licensees as provided above.  However, if you add GPL Version 2 code
    and therefore, elected the GPL Version 2 license, then the option applies
    only if the new code is made subject to such option by the copyright
    holder.


    This file incorporates work covered by the following copyright and
    permission notice:

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Debug - /editarContrato.xhtml</title>
<style type="text/css">
body, div, span, td, th, caption { font-family: 'Trebuchet MS', Verdana, Arial, Sans-Serif; font-size: small; }
ul, li, pre { padding: 0; margin: 0; }
h1 { color: #090; }
h2, h2 span { font-size: large; color: #339; }
h2 a { text-decoration: none; color: #339; }
.grayBox { padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9;  }
#view { color: #090; font-weight: bold; font-size: medium; }
#tree, #vars { display: none; }
code { font-size: medium; }
#tree dl { color: #006; }
#tree dd { margin-top: 2px; margin-bottom: 2px; }
#tree dt { border: 1px solid #DDD; padding: 4px; border-left: 2px solid #666; font-family: "Courier New", Courier, mono; font-size: small; }
.uicText { color: #999;  }
table { border: 1px solid #CCC; border-collapse: collapse; border-spacing: 0px; width: 100%; text-align: left; }
td { border: 1px solid #CCC; }
thead tr th { padding: 2px; color: #030; background-color: #F9F9F9; }
tbody tr td { padding: 10px 6px; }
>ppppp t6main手风琴:formPago:dataPagos:modelInputFebrero2016uq~uq~uq~ppppuq~q~q~�q~!q~$q~%q~�PPPPP T6main手风琴:formPago:dataPagos:modelInputFebrero2015uq~uq~uq~ppppuq~q~q~q~�q~!q~$q~%q~�ppppp t6main手风琴:formPago:dataPagos:modelInputFebrero2018uq~uq~uq~ppppuq~q~q~�q~!q~$q~%q~�PPPPP T6main手风琴:formPago:dataPagos:modelInputFebrero2017uq~uq~uq~ppppuq~q~q~q~�q~!q~$q~%q~�ppppp t%main手风琴:formPago:dataPagos:ajaxuq~uq~uq~sq~Ssq~Ww{pagoMB.buttonCrear}uq~Yq~[ppxwDB/formcontato.xhtml@806,33 actionListener=“#{pagoMB.buttonCrear}”xsq~Ww'{pagoMB buttonCrear}java.lang Voiduq~yppxpxxfacextlets.ui.debugutsr com.sun.faces.outpute$2�#�  -xq~
?@wt
1427384717777|9
调试-/editarContrato.xhtml
正文,div,span,td,th,标题{字体系列:'Trebuchet MS',Verdana,Arial,无衬线;字体大小:small;}
ul,li,pre{padding:0;margin:0;}
h1{颜色:#090;}
h2,h2 span{字体大小:大;颜色:#339;}
h2 a{文本装饰:无;颜色:#339;}
.grayBox{填充:8px;边距:10px 0;边框:1px实心#CCC;背景色:#f9f9f9;}
#视图{颜色:#090;字体大小:粗体;字体大小:中等;}
#树,#vars{display:none;}
代码{字体大小:中等;}
#树dl{color:#006;}
#树dd{页边距顶部:2px;页边距底部:2px;}
#树dt{border:1px solid#DDD;padding:4px;border left:2px solid#666;字体系列:“Courier New”,Courier,mono;字体大小:small;}
.uicText{color:#999;}
表{边框:1px实心#CCC;边框折叠:折叠;边框间距:0px;宽度:100%;文本对齐:左;}
td{border:1px solid#CCC;}
thead tr th{padding:2px;color:#030;background color:#F9F9F9;}
tbody tr td{padding:10px 6px;}
使用@BalusC
“穷人的调试”方法来侦听和调试JSF生命周期阶段
,我在
结束阶段RENDER\u RESPONSE 6
后发现了错误

> pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2016uq~uq~uq~ppppuq~q~q~ �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2015uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2018uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt6mainAccordion:formPago:dataPagos:modelInputFebrero2017uq~uq~uq~ppppuq~q~q~  �q~!q~$q~%q~    �pppppt%mainAccordion:formPago:dataPagos:ajaxuq~uq~uq~sq~Ssq~Ww#{pagoMB.buttonCrear}uq~Yq~[ppxwDB/formContrato.xhtml @806,33 actionListener="#{pagoMB.buttonCrear}"xsq~Ww'#{pagoMB.buttonCrear}java.lang.Voiduq~Yppxppppxxxtfacelets.ui.DebugOutputsr'com.sun.faces.facelets.tag.ui.UIDebug$2#E�#�  -xq~
?@wt
1427384717777|9<!--

    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

    Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.

    The contents of this file are subject to the terms of either the GNU
    General Public License Version 2 only ("GPL") or the Common Development
    and Distribution License("CDDL") (collectively, the "License").  You
    may not use this file except in compliance with the License.  You can
    obtain a copy of the License at
    https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
    or packager/legal/LICENSE.txt.  See the License for the specific
    language governing permissions and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file at packager/legal/LICENSE.txt.

    GPL Classpath Exception:
    Oracle designates this particular file as subject to the "Classpath"
    exception as provided by Oracle in the GPL Version 2 section of the License
    file that accompanied this code.

    Modifications:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"

    Contributor(s):
    If you wish your version of this file to be governed by only the CDDL or
    only the GPL Version 2, indicate your decision by adding "[Contributor]
    elects to include this software in this distribution under the [CDDL or GPL
    Version 2] license."  If you don't indicate a single choice of license, a
    recipient has the option to distribute your version of this file under
    either the CDDL, the GPL Version 2 or to extend the choice of license to
    its licensees as provided above.  However, if you add GPL Version 2 code
    and therefore, elected the GPL Version 2 license, then the option applies
    only if the new code is made subject to such option by the copyright
    holder.


    This file incorporates work covered by the following copyright and
    permission notice:

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Debug - /editarContrato.xhtml</title>
<style type="text/css">
body, div, span, td, th, caption { font-family: 'Trebuchet MS', Verdana, Arial, Sans-Serif; font-size: small; }
ul, li, pre { padding: 0; margin: 0; }
h1 { color: #090; }
h2, h2 span { font-size: large; color: #339; }
h2 a { text-decoration: none; color: #339; }
.grayBox { padding: 8px; margin: 10px 0; border: 1px solid #CCC; background-color: #f9f9f9;  }
#view { color: #090; font-weight: bold; font-size: medium; }
#tree, #vars { display: none; }
code { font-size: medium; }
#tree dl { color: #006; }
#tree dd { margin-top: 2px; margin-bottom: 2px; }
#tree dt { border: 1px solid #DDD; padding: 4px; border-left: 2px solid #666; font-family: "Courier New", Courier, mono; font-size: small; }
.uicText { color: #999;  }
table { border: 1px solid #CCC; border-collapse: collapse; border-spacing: 0px; width: 100%; text-align: left; }
td { border: 1px solid #CCC; }
thead tr th { padding: 2px; color: #030; background-color: #F9F9F9; }
tbody tr td { padding: 10px 6px; }