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

Error in importing projects #1828

Closed
anshumandeb opened this issue Oct 15, 2020 · 2 comments
Closed

Error in importing projects #1828

anshumandeb opened this issue Oct 15, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@anshumandeb
Copy link

Error in importing projects when running inceptionproject/inception:0.17.0 image. The error message in the console: java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer

To Reproduce
Steps to reproduce the behavior:

  1. run docker image inceptionproject/inception:0.17.0
  2. login as admin to the web UI
  3. download the sample project Example_Concept_Linking_2019-03-26_1502.zip from https://inception-project.github.io/example-projects/
  4. import the downloaded zip file using the Inception UI
  5. the project is not imported

Expected behavior
Sample project should be imported into Inception

Screenshots
NA

Please complete the following information:

  • inceptionproject/inception:0.17.0
  • MacOS
  • Chrome, Firefox

Additional context
NA

@reckart
Copy link
Member

reckart commented Oct 17, 2020

@anshumandeb which Java version / which JRE/JDK are you using?

@reckart reckart added the 🐛Bug Something isn't working label Oct 17, 2020
@reckart reckart added this to the 0.17.1 milestone Oct 17, 2020
@reckart
Copy link
Member

reckart commented Oct 27, 2020

The reason for this issue is that the INCEpTION release was made on a Java 14 (or at least something recent) instead of a Java 8.

Recent Java versions include a method ByteBuffer flip() method in the class ByteBuffer which overrides the Buffer flip() method in the Buffer class. When the code was compiled, the compiler decided to link against the co-variant version from ByteBuffer instead of the one from Buffer.

@reckart reckart self-assigned this Oct 27, 2020
reckart added a commit that referenced this issue Oct 27, 2020
- Add explicit type cast to avoid linking to a non-Java-8 version of the flip() method
reckart added a commit that referenced this issue Oct 27, 2020
…importing-projects

#1828 - Error in importing projects
@reckart reckart closed this as completed Oct 27, 2020
reckart added a commit that referenced this issue Oct 27, 2020
* 0.17.x:
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
reckart added a commit that referenced this issue Oct 27, 2020
* master:
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
reckart added a commit that referenced this issue Oct 27, 2020
* master:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.1
  No issue. Set to beta version of WebAnno to prepare release.
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
  No issue. Update JUnit.
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.0
  No issue. Change from version 0.17.0-SNAPSHOT to 0.18.0-SNAPSHOT
  No issue. New webanno beta version.
reckart added a commit that referenced this issue Oct 27, 2020
…r-mode

* master:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.1
  No issue. Set to beta version of WebAnno to prepare release.
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
reckart added a commit that referenced this issue Oct 27, 2020
* master:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.1
  No issue. Set to beta version of WebAnno to prepare release.
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
reckart added a commit that referenced this issue Oct 28, 2020
* master: (187 commits)
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  #1830 - Upgrade to Wicket 9
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.1
  No issue. Set to beta version of WebAnno to prepare release.
  No issue: Avoid locally failing builds because of the rat plugin stumbling over the NPM cache
  #1828 - Error in importing projects
  #1825 duplicates in search
  #1825 duplicates in search
  #1825 Search results contains duplicates
  #1825 Search results contains duplicates
  #1832 - Display project ID in developer mode
  #1830 - Upgrade to Wicket 9
  No issue. Update JUnit.
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-app-0.17.0
  No issue. Change from version 0.17.0-SNAPSHOT to 0.18.0-SNAPSHOT
  No issue. New webanno beta version.
  ...

% Conflicts:
%	pom.xml
jcklie pushed a commit that referenced this issue Feb 2, 2021
… tokenization is applied

- Added simple reader for pre-tokenized text / one sentence per line / tokens whitespace separated
jcklie pushed a commit that referenced this issue Feb 2, 2021
… tokenization is applied

- Corrected reference value in unit test
jcklie pushed a commit that referenced this issue Feb 2, 2021
…-format-support

#1828  - A simple import of already tokenized text to which no further tokenization is applied
reckart added a commit that referenced this issue Feb 4, 2021
* master: (267 commits)
  No issue. If a feature structure does not actually have a particular feature while trying to fetch the feature value (maybe the CAS has not been upgraded yet), return the null value.
  No issue. Demote non-critical issue from error to warning.
  No issue. Added missing dependency.
  #1828  - A simple import of already tokenized text to which no further tokenization is applied
  #1828  - A simple import of already tokenized text to which no further tokenization is applied
  No issue. Avoid throwing exceptions if no authentication information is available.
  No issue. Shorten commit ID in UI
  #1863 - NPE on login page
  #1862 - Creating Project with no permission
  #1860 Redirect to previous url after login does not work
  #1472 - Upgrade dependencies (4.0.0)
  #1472 - Upgrade dependencies (4.0.0)
  #1855 - Improve ordering in auto-complete string feature editor
  #1858 - Deleting very large constraints may not work
  #1472 - Upgrade dependencies
  #1581 - Wicket Ajax error when refreshing settings-page
  #1581 - Wicket Ajax error when refreshing settings-page
  #1855 - Improve ordering in auto-complete string feature editor
  #1847 - Detect Docker
  #1855 - Improve ordering in auto-complete string feature editor
  ...

% Conflicts:
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/ChainRenderer.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/RelationRenderer.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/Renderer.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/SpanRenderer.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/model/VObject.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/rendering/model/VSpan.java
%	webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/util/TypeUtil.java
%	webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/annotation/BratAnnotationEditor.java
%	webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/render/BratRenderer.java
%	webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/render/model/Entity.java
%	webanno-brat/src/test/java/de/tudarmstadt/ukp/clarin/webanno/brat/display/model/EntityTest.java
@reckart reckart added this to Kanban Aug 7, 2024
@reckart reckart moved this to 🍹 Done in Kanban Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants