playframework - play test nullpoint exception -
i run play(1.2.5) test in terminal , visit localhost/@tests page says
oops: nullpointerexception unexpected error occured caused exception nullpointerexception: null
then next error stack printed in terminal
internal server error (500) request /@tests oops: nullpointerexception unexpected error occured caused exception nullpointerexception: null play.exceptions.unexpectedexception: unexpected error @ play.play.start(play.java:556) @ play.play.detectchanges(play.java:642) @ play.invoker$invocation.init(invoker.java:198) @ invocation.http request(play!) caused by: java.lang.nullpointerexception @ play.classloading.applicationcompiler$2.acceptresult(applicationcompiler.java:266) @ org.eclipse.jdt.internal.compiler.compiler.compile(compiler.java:478) @ play.classloading.applicationcompiler.compile(applicationcompiler.java:282) @ play.classloading.applicationclassloader.getallclasses(applicationclassloader.java:426) @ play.play.start(play.java:516) ... 3 more
finally found how ride of exception. because have file 2 classes.like
foo.java:
public class foo {} class bar{}
then rewrite bar class nested class, every thing ok! thoung didn't know why, seems due bug of eclipse java compiler
playframework playframework-1.x
No comments:
Post a Comment