Playframework 生产模式中的播放1-3问题?
我正在使用Playframework 生产模式中的播放1-3问题?,playframework,playframework-1.x,Playframework,Playframework 1.x,我正在使用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$2.acceptResult(ApplicationCompiler.java:276) at org.ecl
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$2.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不支持在一个文件中嵌套类。
但我没有这么做,为什么我会犯这个错误 播放dos不支持一个文件中包含两个类。这就是为什么我会犯这个错误 我刚上了两个不同的课,错误就消失了 埃罗是。我是这样做的 ClassTest.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
解决方案:
12:21:09,282 ERROR play:602 - Cannot start in PROD mode with errors
java.lang.NullPointerException
at play.classloading.ApplicationCompiler$2.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)
ClassTest.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
另一个.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
播放dos不支持在一个文件中包含两个类。这就是为什么我会犯这个错误 我刚上了两个不同的课,错误就消失了 埃罗是。我是这样做的 ClassTest.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
解决方案:
12:21:09,282 ERROR play:602 - Cannot start in PROD mode with errors
java.lang.NullPointerException
at play.classloading.ApplicationCompiler$2.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)
ClassTest.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
另一个.java
public class ClassTest {
// some implementation
}
// in same file i declared another class.
class another {
// some implementation
}
public ClassTest {
// some implementation
}
public class another {
//some implementation
}
您能否提供更多详细信息/共享一些代码,以便我们能够处理该问题?您能否提供更多详细信息/共享一些代码,以便我们能够处理该问题?