Back to LanguageTool Homepage - Privacy - Imprint

Compile error


(Ruud Baars) #1

I updated the git repo this morning; after that compiling seems okay, but testing rules (from the generated stand alone version) is not.
It reports : 'NoClassDefFoundError org/apache/commons/text/similarity/SimilarityScore

How come, and how to get it working again?


(Daniel Naber) #2

Should be fixed now (commit).


(Ruud Baars) #3

Still an error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”


(Daniel Naber) #4

Strange, it worked for me. But please try once more now (commit).


(Mike Unwalla) #5

I also have problems. I guess that they are related to the compile problem, which is why I did not write a new message.

I synched my local copy with the GitHub repo (both before and after Daniel’s latest change). Both times, Maven tests failed. These are the errors:

[ERROR] Tests run: 11, Failures: 0, Errors: 2, Skipped: 3, Time elapsed: 21.276 s <<< FAILURE! - in org.languagetool.JLa
nguageToolTest
[ERROR] testPositionsWithEnglishTwoLineBreaks(org.languagetool.JLanguageToolTest)  Time elapsed: 17.386 s  <<< ERROR!
java.lang.ExceptionInInitializerError

[ERROR] testPositionsWithEnglish(org.languagetool.JLanguageToolTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class ml.dmlc.xgboost4j.java.XGBoostJNI


[ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.2 s <<< FAILURE! - in org.languagetool.rules.e
n.SpellingCheckRuleTest
[ERROR] testIgnorePhrases(org.languagetool.rules.en.SpellingCheckRuleTest)  Time elapsed: 0.08 s  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class ml.dmlc.xgboost4j.java.XGBoostJNI

[ERROR] testIgnoreSuggestionsWithMorfologik(org.languagetool.rules.en.SpellingCheckRuleTest)  Time elapsed: 0.12 s  <<<
ERROR!
java.lang.NoClassDefFoundError: Could not initialize class ml.dmlc.xgboost4j.java.XGBoostJNI

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in org.languagetool.rules.en.
UnitConversionRuleUSTest
[ERROR] match(org.languagetool.rules.en.UnitConversionRuleUSTest)  Time elapsed: 0 s  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class ml.dmlc.xgboost4j.java.XGBoostJNI

The Maven test is stuck at this line (no change after more than 8 minutes):
[INFO] Running org.languagetool.rules.en.WordCoherencyRuleTest


(Daniel Naber) #6

This might be a Windows-specific issue. Mike, could you send me the complete output form Maven?


(Mike Unwalla) #7

Sent to your Slack channel. Cannot upload to this message.


(Ruud Baars) #8

No more errors on Kubuntu.