inception-project / external-recommender-dkpro-tc

External recommender for DKPro TC
Apache License 2.0
0 stars 0 forks source link

Predicting returns 500 Internal Server Error #1

Closed jcklie closed 6 years ago

jcklie commented 6 years ago

When I run

⇒ curl -H "Content-Type: application/json" --data @jsonPredictRequestV2small.txt http://localhost:30500/predict

then the server replies with

{"timestamp":1538040463710,"status":500,"error":"Internal Server Error","exception":"java.lang.NoClassDefFoundError","message":"org/dkpro/tc/features/ngram/base/LuceneFeatureExtractorBase","path":"/predict"}

Horsmann commented 6 years ago

Ah. I changed a package path in the backend for the latest release. This leads now to this error because the class is now located elsewhere.

This problem occurs for a model that was trained with 1.0.1 and now the version is set to 1.0.2 and the package path of the class has changed. This is fixable by re-train the model with the new version. Sorry. I didn't think of that when moving the class into another package.

jcklie commented 6 years ago

Works after deleting. Thank you!