看似随机的 GAE Java 错误正在破坏我的 SEO
收到错误
Error for /la/truckpage
java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.java.net.Proxy
我在短时间内 。它会发生 10 分钟,然后在接下来的一个小时内工作正常,但很快又会再次发生 5 分钟。当错误发生时,用户会收到 404。除了让用户感到困惑之外,这对 SEO 来说也很糟糕。没有理由发生这种情况,考虑到我在 GAE 遇到的所有其他问题,这确实令人担忧。我每个月都要花一大笔钱来让我的应用程序在 GAE 上运行,这些任意错误是绝对不可接受的。
我该如何解决这个问题?
I'm getting the error
Error for /la/truckpage
java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.java.net.Proxy
For short spurts of time. It will happen for 10 minutes, and then work fine for the next hour, only to happen again for another 5 minutes soon. When the error happens, the user gets a 404. On top of confusing the hell out of users, its awful for SEO. There's NO REASON that this ought to be happening and it's really worrying considering all the other issues I've had with GAE. I pay a whole lot of money every month to keep my app running on GAE and these arbitrary errors are absolutely unacceptable.
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的猜测是,如果您遇到使用高峰,您会暂时达到资源配额,或者 DOS 保护会激活。请阅读配额相关文档和DOS 保护相关文档。
如果您超出限制,GAE 会故意阻止您访问课程。了解您的应用程序如何使用 java.net.Proxy 会很有趣。它可能正在做一些它不应该做的事情,至少不是未缓存和不受控制的。
My guess would be that you hit momentarily resource quota or the DOS protection activates if you get usage spikes. Please read the quota related documentation, and the DOS protection related documentation.
GAE blocks your access to classes on purpose if you overstep the limits. Would be interesting to see what your application does with java.net.Proxy. It is probably doing something it should not be doing, at least not uncached and noncontrolled.