生产模式中的 play-1-3 问题?

play-1-3 issues in production mode?

我正在使用 play framework-1.3。我在 运行 我的项目处于生产模式时遇到问题。

异常:

12:21:09,282 ERROR play:602 - Cannot start in PROD mode with errors
java.lang.NullPointerException
    at play.classloading.ApplicationCompiler.acceptResult(ApplicationCompiler.java:276)
    at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:480)
    at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:292)
    at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:428)
    at play.Play.preCompile(Play.java:604)
    at play.Play.init(Play.java:308)
    at play.server.Server.main(Server.java:160)

我不知道为什么会出现此错误。我发现在网上播放的某个地方不支持在一个文件中嵌套 类。 但我没有那样做,为什么我有这个错误?

Play 不支持一个文件中有两个 类。这就是我收到该错误的原因。

我刚刚制作了 2 个不同的 类,错误消失了。

错误是。我正在做如下。

ClassTest.java

public class ClassTest {
  // some implementation
}

// in same file i declared another class.

class another {
  // some implementation

}

解法:

ClassTest.java

public ClassTest {
 // some implementation
}

another.java

public class another {
 //some implementation

}