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

AnnotateText.java throws an exception #8

Open
rezacsedu opened this issue Jan 7, 2018 · 0 comments
Open

AnnotateText.java throws an exception #8

rezacsedu opened this issue Jan 7, 2018 · 0 comments

Comments

@rezacsedu
Copy link

AnnotateText.java execution throws an exception. The log is given below:

java.io.IOException: Server returned HTTP response code: 401 for URL: http://data.bioontology.org/annotator?text=Melanoma+is+a+malignant+tumor+of+melanocytes+which+are+found+predominantly+in+skin+but+also+in+the+bowel+and+the+eye.
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.get(AnnotateText.java:101)
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.main(AnnotateText.java:30)
com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: ; line: 1, column: 0]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3854)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3799)
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2397)
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.jsonToNode(AnnotateText.java:79)
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.main(AnnotateText.java:30)
Exception in thread "main" java.lang.NullPointerException
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.printAnnotations(AnnotateText.java:52)
at org.fit.vocabulary.neologism.OntologyRecommender.LOV.AnnotateText.main(AnnotateText.java:31)

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

No branches or pull requests

1 participant