Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

NoSuchMethodError while running Docker images #1

Open
kubikb opened this issue Jan 1, 2018 · 0 comments
Open

NoSuchMethodError while running Docker images #1

kubikb opened this issue Jan 1, 2018 · 0 comments

Comments

@kubikb
Copy link

kubikb commented Jan 1, 2018

Hello,
I experience an issue with Docker images. There seems to be an issue with the magyarlanc jar, because a NoSuchMethodError is raised when trying to start hunlp. Traceback:

Exception in thread "main" java.lang.NoSuchMethodError: hu.u_szeged.magyarlanc.Magyarlanc.fullInit()V
        at hu.nlp.api.HuNlp.<init>(HuNlp.kt:12)
        at hu.nlp.api.AppKt.main(App.kt:11)

Steps to reproduce

Just run docker run -it -p 9090:9090 oroszgy/hunlp. The exception above should appear.

Steps to fix

rm magyarlanc-3.0.jar
wget http://rgai.inf.u-szeged.hu/project/nlp/research/magyarlanc/magyarlanc-3.0.jar

The tool seems to be functional afterwards:

root@3e67897273ef:/app# ./hunlp.sh
29.51.633  is2.data.Cluster -1:<init> ->               Read cluster with 0 words
29.58.814  is2.parser.ParametersFloat -1:read ->       read parameters 134217727 not zero 18650065
29.58.819  is2.parser.Extractor -1:initStat ->         mult  (d4)
Used parser   class is2.parser.Parser
Creation date 2016.01.19 15:39:08
Training data szk.mate.train
Iterations    10 Used sentences 10000000
Cluster       null
29.58.821  hu.u_szeged.dep.parser.MyMateParser 108:readModel -> Reading data finnished
29.58.822  is2.parser.Extractor -1:initStat ->         mult  (d4)
[Thread-1] INFO org.eclipse.jetty.util.log - Logging initialized @45240ms
[Thread-1] INFO spark.embeddedserver.jetty.EmbeddedJettyServer - == Spark has ignited ...
[Thread-1] INFO spark.embeddedserver.jetty.EmbeddedJettyServer - >> Listening on 0.0.0.0:9090
[Thread-1] INFO org.eclipse.jetty.server.Server - jetty-9.3.6.v20151106
[Thread-1] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@1989765a{HTTP/1.1,[http/1.1]}{0.0.0.0:9090}
[Thread-1] INFO org.eclipse.jetty.server.Server - Started @45373ms

Could you publish a new image? :)

Thank you for this cool tool! Happy new year!

Balint

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant