Static Content Dev_UnitTests Failure -- HTTP server did not start
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 . . .
Tagged:
0
Best Answer
-
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.0
Answers
-
Kyle, what version of Java do you have installed?0
-
@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.0
-
@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.0
-
@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.0
Categories
- All Categories
- 6 AHS
- 38 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛