{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/3234","repository_url":"https://api.github.com/repos/playframework/playframework","labels_url":"https://api.github.com/repos/playframework/playframework/issues/3234/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/3234/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/3234/events","html_url":"https://github.com/playframework/playframework/issues/3234","id":39097782,"number":3234,"title":"Assets are not found with Play on IDEA when running integration tests","user":{"login":"jarmo","id":174160,"avatar_url":"https://avatars.githubusercontent.com/u/174160?v=3","gravatar_id":"","url":"https://api.github.com/users/jarmo","html_url":"https://github.com/jarmo","followers_url":"https://api.github.com/users/jarmo/followers","following_url":"https://api.github.com/users/jarmo/following{/other_user}","gists_url":"https://api.github.com/users/jarmo/gists{/gist_id}","starred_url":"https://api.github.com/users/jarmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarmo/subscriptions","organizations_url":"https://api.github.com/users/jarmo/orgs","repos_url":"https://api.github.com/users/jarmo/repos","events_url":"https://api.github.com/users/jarmo/events{/privacy}","received_events_url":"https://api.github.com/users/jarmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2014-07-30T14:31:20Z","updated_at":"2016-09-28T14:54:55Z","closed_at":null,"body":"* Create new project with Play 2.3.2 `activator` for IDEA:\r\n```\r\n> activator new my-first-app play-java\r\n> cd my-first-app\r\n> activator idea\r\n```\r\n\r\n* Open `my-first-app` with IDEA and run all tests.\r\n\r\n* Tests pass, but this is written to `application.log`:\r\n\r\n```\r\n2014-07-30 17:25:05,231 - [ERROR] - from com.gargoylesoftware.htmlunit.html.HtmlPage in main \r\nError loading JavaScript from [http://localhost:3333/assets/javascripts/hello.js].\r\njava.io.IOException: Unable to download JavaScript from 'http://localhost:3333/assets/javascripts/hello.js' (status 404).\r\n\tat com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1106) ~[htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1039) ~[htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:409) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HtmlScript$3.execute(HtmlScript.java:266) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:286) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:683) [htmlunit-2.13.jar:2.13]\r\n\tat org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) [xercesImpl-2.11.0.jar:na]\r\n\tat com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:642) [htmlunit-2.13.jar:2.13]\r\n\tat org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1170) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1072) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) [nekohtml-1.9.19.jar:na]\r\n\tat org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:330) [nekohtml-1.9.19.jar:na]\r\n\tat org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3116) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2083) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:918) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) [nekohtml-1.9.19.jar:1.9.19]\r\n\tat org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl-2.11.0.jar:na]\r\n\tat com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:899) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:242) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:188) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:268) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:156) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:437) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311) [htmlunit-2.13.jar:2.13]\r\n\tat com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376) [htmlunit-2.13.jar:2.13]\r\n\tat org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:474) [selenium-htmlunit-driver-2.39.0.jar:na]\r\n\tat org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:463) [selenium-htmlunit-driver-2.39.0.jar:na]\r\n\tat org.fluentlenium.core.Fluent.goTo(Fluent.java:336) [fluentlenium-core-0.9.2.jar:na]\r\n\tat IntegrationTest$1.invoke(IntegrationTest.java:22) [test-classes/:na]\r\n\tat IntegrationTest$1.invoke(IntegrationTest.java:20) [test-classes/:na]\r\n\tat play.test.Helpers.running(Helpers.java:549) [play-test_2.11-2.3.2.jar:2.3.2]\r\n\tat play.test.Helpers.running(Helpers.java:536) [play-test_2.11-2.3.2.jar:2.3.2]\r\n\tat IntegrationTest.test(IntegrationTest.java:20) [test-classes/:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]\r\n\tat java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:na]\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na]\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:na]\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na]\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]\r\n\tat org.junit.runners.Suite.runChild(Suite.java:127) [junit-4.11.jar:na]\r\n\tat org.junit.runners.Suite.runChild(Suite.java:26) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:160) [junit-4.11.jar:na]\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) [junit-rt.jar:na]\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) [junit-rt.jar:na]\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) [junit-rt.jar:na]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51]\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51]\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51]\r\n\tat java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51]\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) [idea_rt.jar:na]\r\n```\r\n\r\nIf writing more complex integration tests, where JavaScript is actually needed, then running tests is impossible with `IDEA`. Play 2.2 works well. Also, when running `activator test` then everything works as expected."},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/250191157","html_url":"https://github.com/playframework/playframework/issues/3234#issuecomment-250191157","issue_url":"https://api.github.com/repos/playframework/playframework/issues/3234","id":250191157,"user":{"login":"llb4ll","id":2950250,"avatar_url":"https://avatars.githubusercontent.com/u/2950250?v=3","gravatar_id":"","url":"https://api.github.com/users/llb4ll","html_url":"https://github.com/llb4ll","followers_url":"https://api.github.com/users/llb4ll/followers","following_url":"https://api.github.com/users/llb4ll/following{/other_user}","gists_url":"https://api.github.com/users/llb4ll/gists{/gist_id}","starred_url":"https://api.github.com/users/llb4ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llb4ll/subscriptions","organizations_url":"https://api.github.com/users/llb4ll/orgs","repos_url":"https://api.github.com/users/llb4ll/repos","events_url":"https://api.github.com/users/llb4ll/events{/privacy}","received_events_url":"https://api.github.com/users/llb4ll/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T14:54:55Z","updated_at":"2016-09-28T14:54:55Z","body":"Same issue here: IntelliJ IDEA 2016.1.13 + Play 2.5.6"}}
{"actor":{"display_login":"llb4ll"}}