JavaScript ScriptEngine isn't working within Google App Engine for Java (GAE/J)
问题 I am having an issue where I always get a 0 value returned when I try to use the ScriptEngine eval. By using Logger, I was able to determine that there are NullPointerExceptions being generated. After further inspection, it appears that GAE doesn't always return a valid script engine (if ever), because it throws an exception when you try to use it. My code looks like: public double myEval(String JsFormulaStr ) { double solutionValue = 0; ScriptEngineManager mgr = new ScriptEngineManager();