Java 无法解码带有JSTL本地化的GAE托管JSP页面中的异常

Java 无法解码带有JSTL本地化的GAE托管JSP页面中的异常,java,google-app-engine,jsp,jstl,Java,Google App Engine,Jsp,Jstl,您能帮我用JSTL本地化解码GAE托管JSP页面中的异常吗 它在dev服务器上工作,但在生产中失败,所以我无法真正调试它。我也试着用谷歌搜索 异常没有给我有意义的信息: java.io.NotSerializableException: javax.servlet.jsp.jstl.fmt.LocalizationContext at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180) at

您能帮我用JSTL本地化解码GAE托管JSP页面中的异常吗

它在dev服务器上工作,但在生产中失败,所以我无法真正调试它。我也试着用谷歌搜索

异常没有给我有意义的信息:

java.io.NotSerializableException: javax.servlet.jsp.jstl.fmt.LocalizationContext
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
    at java.util.HashMap.writeObject(HashMap.java:1018)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
JSP页面非常简单:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.inject.Injector" %>
<%@ page import="com.mine.courierApp.server.Ofy" %>
<%@ page import="com.mine.courierApp.server.model.Order" %>
<%@ page import="com.mine.courierApp.server.model.DatastoreObject" %>
<%@ page import="com.googlecode.objectify.Key" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title></title>
</head>
<body>
<c:if test="${lang == null}">
    <fmt:setBundle basename="com.mine.courierApp.server.Strings" var="lang" scope="session"/>
</c:if>
<c:if test="${param.lang != null}">
    <fmt:setLocale value="${param.lang}"/>
    <fmt:setBundle basename="com.mine.courierApp.server.Strings" var="lang" scope="session"/>
</c:if>
<%
    String orderId = request.getParameter("id");

    Injector inj = (Injector) application.getAttribute(Injector.class.getName());
    Ofy ofy = inj.getInstance(Ofy.class);

    Key<DatastoreObject> key = Key.create(orderId);
    Order order = (Order) ofy.load(key);
    if (order != null)
        application.setAttribute("stateId", "OrderState." + order.getState().name());
%>
<fmt:message key="StateOfOrderMsg" bundle="${lang}"/>
<b><fmt:message key="${stateId}" bundle="${lang}"/></b>
<br/>
</body>
</html>

看来这是我这边的小故障。最新版本的SDK不会出现这种情况