Back to LanguageTool Homepage - Privacy - Imprint

Error at the first place: Maven clean package


(John) #1

Hi,

Thanks for help at first....

I just git clone a copy of LanguageTool, and tried to mvn the project...However, mvn not OK.

The final messages are as follows:

Results :

Tests in error:
testHTTPServer(org.languagetool.server.HTTPServerLoadTest): java.lang.RuntimeE
xception: java.io.IOException: Server returned HTTP response code: 500 for URL:
http://localhost:8081/?language=de&disabled=HUNSPELL_RULE&text=
runRequestLimitationTest(org.languagetool.server.HTTPSServerTest): Server retu
rned HTTP response code: 500 for URL: https://localhost:8081/?language=de&disabl
ed=HUNSPELL_RULE&text=foo

Tests run: 20, Failures: 0, Errors: 2, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] languagetool-parent ................................ SUCCESS [ 16.012 s]
[INFO] LanguageTool Style and Grammar Checker Core ........ SUCCESS [ 24.116 s]
[INFO] English module for LanguageTool .................... SUCCESS [01:20 min]
[INFO] Persian module for LanguageTool .................... SUCCESS [ 7.642 s]
[INFO] Hunspell native libs for LanguageTool .............. SUCCESS [ 8.670 s]
[INFO] French module for LanguageTool ..................... SUCCESS [ 9.605 s]
[INFO] German module for LanguageTool ..................... SUCCESS [ 39.814 s]
[INFO] Polish module for LanguageTool ..................... SUCCESS [ 44.639 s]
[INFO] Catalan module for LanguageTool .................... SUCCESS [ 47.101 s]
[INFO] Italian module for LanguageTool .................... SUCCESS [ 2.897 s]
[INFO] Breton module for LanguageTool ..................... SUCCESS [ 3.751 s]
[INFO] Dutch module for LanguageTool ...................... SUCCESS [ 4.297 s]
[INFO] Portuguese module for LanguageTool ................. SUCCESS [ 3.801 s]
[INFO] Russian module for LanguageTool .................... SUCCESS [ 7.963 s]
[INFO] Asturian module for LanguageTool ................... SUCCESS [ 2.013 s]
[INFO] Belarusian module for LanguageTool ................. SUCCESS [ 1.552 s]
[INFO] Chinese module for LanguageTool .................... SUCCESS [ 8.280 s]
[INFO] Danish module for LanguageTool ..................... SUCCESS [ 2.599 s]
[INFO] Esperanto module for LanguageTool .................. SUCCESS [ 4.720 s]
[INFO] Galician module for LanguageTool ................... SUCCESS [ 3.063 s]
[INFO] Greek module for LanguageTool ...................... SUCCESS [ 2.076 s]
[INFO] Icelandic module for LanguageTool .................. SUCCESS [ 2.240 s]
[INFO] Japanese module for LanguageTool ................... SUCCESS [ 3.265 s]
[INFO] Khmer module for LanguageTool ...................... SUCCESS [ 2.178 s]
[INFO] Lithuanian module for LanguageTool ................. SUCCESS [ 1.661 s]
[INFO] Malayalam module for LanguageTool .................. SUCCESS [ 1.877 s]
[INFO] Romanian module for LanguageTool ................... SUCCESS [ 4.255 s]
[INFO] Slovak module for LanguageTool ..................... SUCCESS [ 6.014 s]
[INFO] Slovenian module for LanguageTool .................. SUCCESS [ 2.137 s]
[INFO] Spanish module for LanguageTool .................... SUCCESS [ 4.061 s]
[INFO] Swedish module for LanguageTool .................... SUCCESS [ 2.535 s]
[INFO] Tamil module for LanguageTool ...................... SUCCESS [ 1.681 s]
[INFO] Tagalog module for LanguageTool .................... SUCCESS [ 1.682 s]
[INFO] Ukrainian module for LanguageTool .................. SUCCESS [ 6.883 s]
[INFO] Simple German module for LanguageTool .............. SUCCESS [ 2.032 s]
[INFO] All language modules for LanguageTool .............. SUCCESS [ 0.496 s]
[INFO] LanguageTool common GUI classes .................... SUCCESS [ 2.227 s]
[INFO] LanguageTool command-line version .................. SUCCESS [ 13.831 s]
[INFO] LanguageTool embedded HTTP server .................. FAILURE [ 21.771 s]
[INFO] LanguageTool stand-alone GUI ....................... SKIPPED
[INFO] LanguageTool LibreOffice/OpenOffice extension ...... SKIPPED
[INFO] LanguageTool Wikipedia tools ....................... SKIPPED
[INFO] LanguageTool development tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:46 min
[INFO] Finished at: 2014-09-16T19:56:24+08:00
[INFO] Final Memory: 245M/494M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
12.4:test (default-test) on project languagetool-server: There are test failures
.
[ERROR]
[ERROR] Please refer to E:\languagetool\languagetool-server\target\surefire-reports for the ind
ividual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.

Some clips about the exceptions:

Setting up thread pool with 10 threads
Starting LanguageTool 2.7-SNAPSHOT (build date: 2014-09-16 11:49) server on http
://localhost:8081...
Server started
=== Testing 'enabledOnly parameter' now, please ignore the following exception =
==
2014-09-16 19:56:05 An error has occurred. Stacktrace follows:
java.lang.IllegalArgumentException: You cannot specify disabled rules using enab
ledOnly=yes
at org.languagetool.server.LanguageToolHttpHandler.checkText(LanguageToo
lHttpHandler.java:270)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHt
tpHandler.java:160)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
Stopping server
Server stopped
Setting up thread pool with 10 threads
Starting LanguageTool 2.7-SNAPSHOT (build date: 2014-09-16 11:49) server on http
://localhost:8081...
Server started
=== Testing 'missing language parameter' now, please ignore the following except
ion ===
2014-09-16 19:56:05 An error has occurred. Stacktrace follows:
java.lang.IllegalArgumentException: Missing 'language' parameter. Specify langua
ge or use autodetect=1 for auto-detecting the language of the input text.
at org.languagetool.server.LanguageToolHttpHandler.getLanguageAutoDetect
(LanguageToolHttpHandler.java:323)
at org.languagetool.server.LanguageToolHttpHandler.checkText(LanguageToo
lHttpHandler.java:252)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHt
tpHandler.java:160)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
Stopping server
Server stopped
Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.035 sec
Running org.languagetool.server.HTTPSServerConfigTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.languagetool.server.HTTPSServerTest
Setting up thread pool with 10 threads
Starting LanguageTool 2.7-SNAPSHOT (build date: 2014-09-16 11:49) server on http
s://localhost:8081...
Server started
2014-09-16 19:56:08 Check done: 7 chars, en, null, handlers:1, queue:0, 1 matche
s, 1826ms, sent
2014-09-16 19:56:08 Check done: 490 chars, en, null, handlers:1, queue:0, 485 ma
tches, 300ms, sent
=== Now checking text that is too long, please ignore the following exception ==
=
2014-09-16 19:56:08 An error has occurred. Stacktrace follows:
java.lang.IllegalArgumentException: Text is 533 characters long, exceeding maxim
um length of 500
at org.languagetool.server.LanguageToolHttpHandler.checkText(LanguageToo
lHttpHandler.java:249)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHt
tpHandler.java:160)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:645)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)


(Daniel Naber) #2

Could you check if you can find the stack trace in E:\languagetool\languagetool-server\target\surefire-reports? The exceptions you posted are actually okay (note the "=== Testting ... now ... ===" text above those exceptions).