Skip to content
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

Not working in Java 9 or 10 #28

Open
jaysonfeliciano opened this issue Jun 21, 2018 · 14 comments
Open

Not working in Java 9 or 10 #28

jaysonfeliciano opened this issue Jun 21, 2018 · 14 comments

Comments

@jaysonfeliciano
Copy link

Hi,

We are forced to update our java to 10. But after upgrading to java 10, dbpedia spotlight is no longer working. We are getting this error: "ava.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present".

Do you have any suggestions to resolve this?

Thanks,
Jayson

@jaysonfeliciano
Copy link
Author

here is the exact command where we are encountering the error with java 10

curl http://localhost:1443/rest/annotate \
-H "Accept: text/xml" \
--data-urlencode "text=Brazilian state-run giant oil company Petrobras signed a three-year technology and research cooperation agreement with oil service provider Halliburton." \
--data "confidence=0" \
--data "support=0"

@mgns
Copy link

mgns commented Jun 25, 2018

The problem was discussed for Java 9 here.

I would recommend to use a docker image of spotlight, generally and here as a workaround.

Would consider this issue an enhancement.

@jaysonfeliciano
Copy link
Author

Hi Magnus,

Thank you for your response. Unfortunately, we are not allowed to use the docker image and we're pushed with the workaround.

Regarding workaround, do you have a very simple step for us to re-compile the dbpedia? Many thanks in advance!

As for the enhancement, would you be able to provide timeline?

Thank you very much!
Jayson

@jaysonfeliciano
Copy link
Author

Hi Magnus/Any support,

Java will end their support in Java 10 and there are vulnerabilities found with this lower version. Just wanted to know where are you at on the enhancement that supports Java 11?

Regards,
Jayson

@sandroacoelho
Copy link
Collaborator

Hi @jaysonfeliciano

We can start a project to migrate it Java 11. What about to help me with it? Please ping me if you are in.

Best,

@jaysonfeliciano
Copy link
Author

Hi Sandro,

Wow, great idea! But unfortunately, we are not familiar with it as well as the Java language. We are just plainly consuming DBPedia Spotlight for our NLP engine. Are you part of the support?

Thanks,
Jayson

@rovicsellado
Copy link

Hi,
I have the same issue on this thread, DBPedia Spotlight is not Working in Java 11. Is there a commercial support that can help us on this? Or on call support we can reach out to?

Thanks in advance.
Rovic

@sandroacoelho
Copy link
Collaborator

sandroacoelho commented Oct 20, 2018

Hi @jaysonfeliciano , @rovicsellado

I am commiter in the repo. Unfortunately, we are short on workforce and infrastructure for maintaining the Spotlight service online and up to date.

What about to start a crowdfunding campaign to upgrade DBpedia Spotlight to Java 11 and deliver new models? All raised money will be applied to rent cloud servers to keep it running for one year.

Please, consider supporting it, especially if you use our solution for commercial purpose.

All the best,

@rovicsellado
Copy link

Hi Sandro,

Thanks for the proposal, we'll consider this. One question though, what do we mean when we say "to rent cloud servers to keep it running for one year"? Are we going to put the new version of DBPedia Spotlight on the cloud and comsumers will just connect it from there? If so, I think it won't work for us. We need a distributable version of the DBPedia Spotlight that can be installed on our own servers.

Thanks,
Rovic

@sandroacoelho
Copy link
Collaborator

Hi @rovicsellado,

As always, we intend to continue delivery releases in jar and docker through Docker hub.

Beside it, we rent servers to compile new models and made available live endpoints that are used by the community under our demo site

All the best,

@rovicsellado
Copy link

Hi Sandro,

Thanks for providing the info. By the way if we help in migrating the project to Java 11, how long would the upgrade be and the complexity? What skills are needed?

Thanks in advance.
Rovic

@sandroacoelho
Copy link
Collaborator

Hi @rovicsellado,

I was thinking about how to have it quickly. DBpedia Spotlight has 3 modules (core, index and rest). Upgrade them in one shot would be no so easy mainly because of Scala library incompatibilities. We can split it into two services: indexing service and REST/query service.

The good news is: REST endpoints are almost done here (it is pending unit/integration tests and swagger). It uses Spring boot. So, the work would be move/reimplement the codebase that read/query the language models.

What skills are needed?

  • Java / Scala;
  • Gradle/Maven;

Best,

@rovicsellado
Copy link

rovicsellado commented Oct 26, 2018

Hi Sandro,

In terms of skills you mentioned, we just have limited coding experience in terms of Java and 0 experience on the rest. Not sure how or where we could contribute on this area. Do you have any timeframe we could start the effort and ETC on how long do you think we can do this?

Thanks.
Rovic

@rovicsellado
Copy link

Hello @sandroacoelho,

Good day! Any news about this initiative?

Thanks.
Bic

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

No branches or pull requests

4 participants