playframework 1.2.3, greenscript 1.2.6k
当访问一个页面,我得到一个NullPointerException在行174的GreenScriptPlugin.java
第174行是下面示例中的最后一行(JobsPlugin)。):
@Override
public void afterApplicationStart() {
Properties p = Play.configuration;
for (ResourceType type: ResourceType.values()) {
final Minimizer m = type == ResourceType.JS ? jsM_ : cssM_;
String s = fetchProp_(p, String.format("greenscript%s.cache.check", type.getExtension()));
int i = "never".equalsIgnoreCase(s) ? -1 : Time.parseDuration(s);
if (-1 != i) {
Job<Object> j = new Job<Object>() {
@Override
public void doJob() {
m.checkCache();
}
};
JobsPlugin.executor.scheduleWithFixedDelay(j, i, i, TimeUnit.SECONDS);
}
}
}
发现谷歌应用程序引擎有自己的错误是导致这一点。修复后,greenscript正常工作