Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirejs supports hangs 'mvn test' when a module can not be found #111

Closed
phtrivier opened this issue Oct 2, 2012 · 1 comment
Closed

Comments

@phtrivier
Copy link

Steps:

  • configure the plugin to use REQUIRE_JS
  • in a spec module, require a module that can not be found
  • execute 'mvn test'

Seen:

  • an error is reported in the console, like this :
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: Error: Load timeout for modules: file:/home/phtrivier/prj/platform/svn/platform/avop/trunk/net.m2mop.app/avop-portal/target/jasmine/spec/systemConfig/model/systemConfigSpecHelper.js src/test/spec/systemConfig/model/systemConfigSpecHelper.js 
http://requirejs.org/docs/errors.html#timeout (file:/home/phtrivier/prj/my-project/target/jasmine/src//vendor/requirejs/require.js#1542)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595)
    at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:545)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:520)
    at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:896)
    at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:53)
    at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:84)
    at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:313)
    at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutor.run(JavaScriptExecutor.java:148)
    at java.lang.Thread.run(Thread.java:662)
Caused by: net.sourceforge.htmlunit.corejs.javascript.JavaScriptException: Error: Load timeout for modules: file:/home/phtrivier/prj/my-project/target/jasmine/spec/systemConfig/model/systemConfigSpecHelper.js src/test/spec/systemConfig/model/systemConfigSpecHelper.js 
http://requirejs.org/docs/errors.html#timeout (file:/home/phtrivier/prj/my-project/target/jasmine/src//vendor/requirejs/require.js#1542)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1057)
    at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:854)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267)
    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3183)
    at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:538)
    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:589)
    ... 10 more
JavaScriptException value = Error: Load timeout for modules: file:/home/phtrivier/prj/my-project//target/jasmine/spec/systemConfig/model/systemConfigSpecHelper.js src/test/spec/systemConfig/model/systemConfigSpecHelper.js 
http://requirejs.org/docs/errors.html#timeout
== CALLING JAVASCRIPT ==

  function () {
      checkLoadedTimeoutId = 0;
      checkLoaded();
  }
  • the build never finishes (it just hangs there)
@phtrivier
Copy link
Author

So actually, the build will timeout after the "timeout" (by default 300s, or 5minutes). My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant