Closed vhotspur closed 10 years ago
It still fails with following error (after ant run-server
and submitting request from the web pages generated by ant run-demo
):
run-server:
[java] Sep 08, 2014 12:45:17 PM cz.cuni.mff.d3s.tools.perfdoc.server.cache.ResultDatabaseCache checkTablesAndCreate
[java] INFO: New table "results" was created
[java] Sep 08, 2014 12:45:17 PM cz.cuni.mff.d3s.tools.perfdoc.server.HttpMeasureServer main
[java] INFO: Server started and is listening on port 8080
[java] Sep 08, 2014 12:45:30 PM cz.cuni.mff.d3s.tools.perfdoc.server.MeasureRequestHandler handle
[java] INFO: Got new Ajax request. Starting to handle it.
[java] Sep 08, 2014 12:45:30 PM cz.cuni.mff.d3s.tools.perfdoc.server.MeasureRequestHandler handle
[java] INFO: An exception occured when trying to close comunnication with client
[java] java.io.IOException: response headers not sent yet
[java] at sun.net.httpserver.PlaceholderOutputStream.checkWrap(ExchangeImpl.java:428)
[java] at sun.net.httpserver.PlaceholderOutputStream.close(ExchangeImpl.java:453)
[java] at cz.cuni.mff.d3s.tools.perfdoc.server.MeasureRequestHandler.handle(MeasureRequestHandler.java:92)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
[java] at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
[java] at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
[java] at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
[java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[java] at java.lang.Thread.run(Thread.java:745)
[java]
[java] Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/json/JSONObject
[java] at cz.cuni.mff.d3s.tools.perfdoc.server.MethodMeasurer$JSONParser.parseData(MethodMeasurer.java:336)
[java] at cz.cuni.mff.d3s.tools.perfdoc.server.MethodMeasurer$JSONParser.access$100(MethodMeasurer.java:324)
[java] at cz.cuni.mff.d3s.tools.perfdoc.server.MethodMeasurer.<init>(MethodMeasurer.java:61)
[java] at cz.cuni.mff.d3s.tools.perfdoc.server.MeasureRequestHandler.handle(MeasureRequestHandler.java:69)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
[java] at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
[java] at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
[java] at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
[java] at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
[java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[java] at java.lang.Thread.run(Thread.java:745)
[java] Caused by: java.lang.ClassNotFoundException: org.json.JSONObject
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[java] ... 13 more
Executed with Ant 1.9.4, Java Hotspot 64bit Server (1.8.0_11) on Arch Linux.
Fixed in 379e607.
Please, add target to compile the measurement server to the Ant script. It shall be possible to start it with Ant as well.