Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
Static Content Dev_UnitTests Failure -- HTTP server did not start
Kyle Reich
For a couple weeks now, whenever I have been unable to use the Dev_UnitTests script (StaticContent/build/Dev_UnitTests.bat). As far as I know, I didn't change any network related settings but it hasn't cleared up either (multiple days/weeks, restarts, etc). The dump contains some information about 'Property "server.host.stopPort" has not been set'. I don't know if that's related or normal since I never paid much attention to the output until now.
This is a partial dump of the output:
-init-cleanup:
Checking for listener at localhost:38003
[echo] There is no HTTP server currently running to stop.
[echo] Deleting old test reports, if any exist...
[delete] Deleting directory C:\development\AlertsDevelopment\StaticContent\Logs\CarswellStaticContent\TestReports
[delete] Deleting directory C:\development\AlertsDevelopment\StaticContent\Logs\CarswellStaticContent\TestReports
-init:
[echo] Creating directories...
[mkdir] Skipping C:\development\AlertsDevelopment\StaticContent\buildTemp\CarswellStaticContent because it already exists.
[mkdir] Created dir: C:\development\AlertsDevelopment\StaticContent\Logs\CarswellStaticContent\TestReports
-ant-fail-workaround:
-start-http:
Checking for listener at localhost:38003
[echo] Starting HTTP server on port 38003, hosting the files from site
Property "server.host.stopPort" has not been set
[exec] Current OS is Windows 7
[exec] Executing 'cmd' with arguments:
[exec] '/c'
[exec] 'java'
[exec] '-jar'
[exec] 'start.jar'
[exec] '-Dorg.eclipse.jetty.LEVEL=INFO'
[exec] '--ini'
[exec] '"..\..\..\common\jetty-server-config.xml"'
[exec] 'jetty.port=38003'
[exec] 'files.base="..\..\..\..\site"'
[exec] 'STOP.PORT=39003'
[exec] 'STOP.KEY=0xDEADBEEF'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
spawned process java.lang.ProcessImpl@529b2735
Checking for listener at localhost:38003
Checking for listener at localhost:38003
Checking for listener at localhost:38003
Checking for listener at localhost:38003
Checking for listener at localhost:38003
Checking for listener at localhost:38003
Checking for listener at localhost:38003
waitfor: timeout
Checking for listener at localhost:38003
BUILD FAILED
C:\development\AlertsDevelopment\StaticContent\build\Platform\UnitTestAntScript.xml:56: The following error occurred while executing this line:
C:\development\AlertsDevelopment\StaticContent\build\common\UnitTestUtils.xml:130: FAILED! The HTTP server did not start.
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 16 seconds
Tests FAILED [ExitCode = 1]
Press any key to continue . . .
Find more posts tagged with
static-data
refinitiv-internal
Accepted answers
Adam.Morris
This error is caused by the wrong version of Java for Jetty. The version of Jetty we are using requires Java 7. Any references to Java 6 on your system in the console that the Unit Tests run in will cause this failure. Uninstalling works but my suspicion is that there is a stray environment variable on your system that is the root of this issue.
All comments
Adam.Morris
Kyle, what version of Java do you have installed?
Kyle Reich
@Adam
Morris I have both Java 6 & 7 installed, but all my environment variables (JAVA_HOME, CLASSPATH, etc.) are set to the Java 7 installation.
Kyle Reich
@Adam
Morris I uninstalled Java 6 since i didn't have a need for it. Seems to have fixed the problem. I'm unsure as to why since I couldn't find any environment variables pointing to it, but it's resolved nonetheless. Thanks.
Adam.Morris
@Kyle
Reich Yes, I meant to submit an answer to that effect, but I didn't get a chance, I will do so now for any others who have the same problem.
Adam.Morris
This error is caused by the wrong version of Java for Jetty. The version of Jetty we are using requires Java 7. Any references to Java 6 on your system in the console that the Unit Tests run in will cause this failure. Uninstalling works but my suspicion is that there is a stray environment variable on your system that is the root of this issue.
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act