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 while "make run-scripts" #57

Closed
fabianschan opened this issue Aug 17, 2018 · 13 comments
Closed

Error while "make run-scripts" #57

fabianschan opened this issue Aug 17, 2018 · 13 comments
Assignees
Labels

Comments

@fabianschan
Copy link

fabianschan commented Aug 17, 2018

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
	at de.unistuttgart.ims.uimautil.AnnotationUtil.trim(AnnotationUtil.java:61)
	at de.unistuttgart.ims.uimautil.AnnotationUtil.trim(AnnotationUtil.java:111)
	at de.unistuttgart.quadrama.io.tei.CoreTeiReader.getNext(CoreTeiReader.java:102)
	at de.unistuttgart.quadrama.io.core.AbstractDramaUrlReader.getNext(AbstractDramaUrlReader.java:163)
	at org.apache.uima.fit.component.JCasCollectionReader_ImplBase.getNext(JCasCollectionReader_ImplBase.java:74)
	at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:149)
	at de.unistuttgart.ims.drama.main.TEI2XMI.main(TEI2XMI.java:96)
make: *** [run-scripts] Error 1
@pagelj pagelj self-assigned this Aug 17, 2018
@pagelj pagelj added the bug label Aug 17, 2018
@pagelj
Copy link
Member

pagelj commented Aug 17, 2018

What was the branch and version that you were running this on?

@fabianschan
Copy link
Author

I think version 4.0 or 1.0 (?):

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>de.unistuttgart.ims</groupId> <artifactId>de.unistuttgart.ims.drama</artifactId> <version>1.0.0</version> </parent>

I tried to run it with 771 XML-files and after two, it crashes.

@fabianschan
Copy link
Author

Ran it on /DramaNLP/de.unistuttgart.ims.drama.main$ and made and own make command:

run-scripts:
        java -cp target/assembly/drama.Main.jar ${TEI2XMI} --input ~/scripts/data/ --csvOutput ~/scripts/csv/  --collectionId "scripts" --language "en" --corpus CORETEI

@nilsreiter nilsreiter self-assigned this Aug 23, 2018
@nilsreiter
Copy link
Member

@fabsurd Did you check out the code from GitHub and compiled it yourself? Or did I sent you a packaged version?

@fabianschan
Copy link
Author

@nilsreiter I think I cloned it from this github, but we compiled it together in your office

@nilsreiter
Copy link
Member

nilsreiter commented Aug 23, 2018

@fabsurd Can you go in the DramaNLP directory in the Terminal and enter git log -n 1 and copy the output? That way I know which version you're using.

@fabianschan
Copy link
Author

@nilsreiter sure!

commit 697dffd318d78a3ffa6180d73be8cc4434c7becc
Merge: b9dcdd0 887ff9d
Author: Nils Reiter <nils.reiter@ims.uni-stuttgart.de>
Date:   Mon Mar 26 15:11:14 2018 +0200

Release 1.0

nilsreiter pushed a commit that referenced this issue Aug 26, 2018
* fix/57:
  this prevents the crash reported in #57, but doesn't solve the underlying problem
nilsreiter pushed a commit that referenced this issue Aug 26, 2018
* fix/57:
  this prevents the crash reported in #57, but doesn't solve the underlying problem
  Updates to pom
  1.0.0
  0.5.1
  0.5.0

# Conflicts:
#	de.unistuttgart.ims.drama.api/pom.xml
#	de.unistuttgart.ims.drama.core.cr/pom.xml
#	de.unistuttgart.ims.drama.core.ml/pom.xml
#	de.unistuttgart.ims.drama.core/pom.xml
#	de.unistuttgart.ims.drama.io.core/pom.xml
#	de.unistuttgart.ims.drama.io.core/src/main/java/de/unistuttgart/quadrama/io/tei/CoreTeiReader.java
#	de.unistuttgart.ims.drama.io.tei.folger/pom.xml
#	de.unistuttgart.ims.drama.main/pom.xml
#	de.unistuttgart.ims.drama.util/pom.xml
#	pom.xml
nilsreiter pushed a commit that referenced this issue Aug 26, 2018
* release/1.0.1:
  1.0.1
  this prevents the crash reported in #57, but doesn't solve the underlying problem
@nilsreiter
Copy link
Member

Fixed in 1.0.1.

@fabsurd

  1. Enter the DramaNLP top level directory in the terminal
  2. Run git pull
  3. Run mvn clean compile (takes a while, but if it worked before, it should work again)

@nilsreiter
Copy link
Member

(if it works now, we can close this issue)

@fabianschan
Copy link
Author

@nilsreiter

pulling and compiling worked. Now i get this Error right after i start "run-scripts":

fabian@Fabians-MacBook-Pro:~/scripts/DramaNLP/de.unistuttgart.ims.drama.main$ make run-scripts
java -cp target/assembly/drama.Main.jar "de.unistuttgart.ims.drama.main.TEI2XMI" --input ~/scripts/data/ --csvOutput ~/scripts/csv/  --collectionId "scripts" --language "en" --corpus CORETEI
Error: Could not find or load main class de.unistuttgart.ims.drama.main.TEI2XMI
make: *** [run-scripts] Error 1

@pagelj
Copy link
Member

pagelj commented Aug 26, 2018

Did you also compile the main files? If not you can follow step 4 in the readme on https://github.com/quadrama/DramaNLP/blob/master/README.md

@fabianschan
Copy link
Author

@pagelj @nilsreiter seems to work now - thanks!

@nilsreiter
Copy link
Member

Cool, thanks @pagelj

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

No branches or pull requests

3 participants