Note that there are some explanatory texts on larger screens.

plurals
  1. POPlay framework: Setting up automatic/continous testing
    primarykey
    data
    text
    <p>When I run the command <code>play test</code>, I am able to traverse to <code>http://localhosts:9000/@tests</code> and choose the tests to run.</p> <p>However, I would like to have play automatically run all my unit tests whenever I make a code change. When I try <code>play auto-test</code> errors and the application does not start. How do I resolve this?</p> <p>I get the following trace</p> <pre><code>16:21:57,428 WARN ~ You're running Play! in DEV mode ~ ~ Go to http://localhost:9000/@tests to run the tests ~ 16:21:57,493 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ... ~ ~ *The application does not start. There are errors: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:9000/@tests.list* </code></pre> <p>[<strong><em>UPDATED</em></strong>]</p> <p>Looks like the error is in the SecureSocial.UserService. I am not sure why this would be as I am not running on https]</p> <p>I am using play 1.24 with securesocial 0.2.3</p> <pre><code> 17:56:10,323 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ... 17:56:18,030 ERROR ~ @69ac4j243 Internal Server Error (500) for request GET /@tests.list Oops: UnexpectedException An unexpected error occured caused by exception UnexpectedException: While applying class play.classloading.enhancers.ControllersEnhancer on securesocial.provider.DefaultUserService play.exceptions.UnexpectedException: While applying play.CorePlugin@11a06e38 on securesocial.provider.DefaultUserService at play.plugins.PluginCollection.enhance(PluginCollection.java:511) at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235) at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:165) at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:84) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructors(Class.java:1459) at play.plugins.PluginCollection.reloadApplicationPlugins(PluginCollection.java:199) at play.Play.start(Play.java:460) at play.Play.detectChanges(Play.java:629) at play.Invoker$Invocation.init(Invoker.java:198) at Invocation.HTTP Request(Play!) Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.ControllersEnhancer on securesocial.provider.DefaultUserService at play.CorePlugin.enhance(CorePlugin.java:302) at play.plugins.PluginCollection.enhance(PluginCollection.java:506) ... 12 more Caused by: java.lang.RuntimeException: Trying to visit uncompiled class while enhancing. Uncompiled class: securesocial.provider.UserService$Service at play.classloading.enhancers.Enhancer$ApplicationClassesClasspath.openClassfile(Enhancer.java:75) at javassist.ClassPoolTail.openClassfile(ClassPoolTail.java:335) at javassist.ClassPool.openClassfile(ClassPool.java:594) at javassist.CtClassType.getClassFile2(CtClassType.java:185) at javassist.CtClassType.subtypeOf(CtClassType.java:303) at javassist.CtClassType.subtypeOf(CtClassType.java:318) at play.classloading.enhancers.ControllersEnhancer.enhanceThisClass(ControllersEnhancer.java:37) at play.CorePlugin.enhance(CorePlugin.java:297) ... 13 more @KILLED </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload