-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
languagetool 6.3 always reaturns status 500 - Cannot invoke contains because getAbTest() is null #9757
Comments
Should be fixed with tomorrow's build, please see https://forum.languagetool.org/t/self-hosted-languagetool-server-and-chrome-add-on/9519/2 |
Thank you. I tried the search "contains getAbTest" but this topic did not pop up, therefore, thank you again for the reference to the forum post. |
I have the same issue (cf. #9681 (comment)). Ok I read the temporary workaround about adding |
This will be fixed with the next release in March 2024. As the workaround is so simple, we don't plan an extra fix release just for this. |
The workaround does not work for me.
I have also tried it with "--config maxTextLength=10" and "--config maxTextLength 10"
|
Please specify an empty config file, not |
What is a empty config file for you? |
Since it is too much for @danielnaber to simply provide a sniped. touch /home/lang/empty.cfg
/usr/bin/java -Xmx1500M -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --public --allow-origin "*" --config /home/language/empty.cfg |
For those having a systemd unit / service file:
[Service]
# reset list to avoid append
ExecStart=
# Workaround https://github.com/languagetool-org/languagetool/issues/9757
ExecStart=/usr/bin/languagetool --http --allow-origin "*" --config /dev/null |
System: Ryzen 7700, 64GB Ram, 1tb nvme, 1gbit/s
OS: Debian 12
Languagetool: 6.3
cmd: screen -d -m /usr/bin/java -Xmx1500M -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --public --allow-origin "*"
Even the text of this ticket is resulting in a 500 error, which you can see below.
Is there a way to enable debug or logging, to see what the underlying problem is?
2023-11-27 08:22:44.976 GMT+01:00 INFO org.languagetool.server.LanguageToolHttpHandler Handling POST /v2/check
2023-11-27 08:22:45.049 GMT+01:00 ERROR org.languagetool.server.LanguageToolHttpHandler An error has occurred: 'Cannot invoke "java.util.List.contains(Object)" because the return value of "org.languagetool.server.HTTPServerConfig.getAbTest()" is null', sending HTTP code 500. Access from 192.168.6.1, HTTP user agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36, User agent param: webextension-chrome-ng, v: 8.3.0, Referrer: null, language: auto, h: 2, r: 2, time: 87m: TEXTLEVEL_ONLY, l: PICKY, iID: 12410:1701069470883, Stacktrace follows:java.lang.NullPointerException: Cannot invoke "java.util.List.contains(Object)" because the return value of "org.languagetool.server.HTTPServerConfig.getAbTest()" is null
at org.languagetool.server.TextChecker.checkText(TextChecker.java:376)
at org.languagetool.server.ApiV2.handleCheckRequest(ApiV2.java:176)
at org.languagetool.server.ApiV2.lambda$handleRequest$4(ApiV2.java:86)
at org.languagetool.tools.TelemetryProvider.createSpan(TelemetryProvider.java:96)
at org.languagetool.server.ApiV2.handleRequest(ApiV2.java:86)
at org.languagetool.server.LanguageToolHttpHandler.lambda$handle$0(LanguageToolHttpHandler.java:202)
at org.languagetool.tools.TelemetryProvider.createSpan(TelemetryProvider.java:96)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:202)
at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:98)
at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:851)
at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:818)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
The text was updated successfully, but these errors were encountered: