You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by Reed Villanueva <vi...@gmail.com> on 2018/03/23 06:40:56 UTC
YTEX build errors and piper creator gui null pointer in version 4.0.1
Downloaded the linux binaries and was experiencing an error when trying to
use the simple piper fabricator gui ($CTAKES_HOME/bin/runPiperCreator.sh):
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at
> javax.swing.plaf.synth.SynthTableHeaderUI$HeaderRenderer.
> getTableCellRendererComponent(SynthTableHeaderUI.java:234)
> at
> org.apache.ctakes.gui.pipeline.MainPanel2.createWestPanel(MainPanel2.
> java:94)
Looking at this previously resolved jira issue (https://issues.apache.org/
jira/browse/CTAKES-442), it appears that the problem has been resolved in
version 4.0.1. However, binaries of this version are not yet available on
the downloads page of the cTAKES site (https://ctakes.apache.org/
downloads.cgi) (if available elsewhere please let me know). Thus, I tried
to install the dev version following the associated guide (
https://cwiki.apache.org/confluence/display/CTAKES/
cTAKES+4.0+Developer+Install+Guide). Created the dev home ~/projects/ctakes
as recommended by the guide, checked out the code (via svn), and at this
point I run into another problem:
Running the dev guide's build instructions (see https://cwiki.apache.org/
confluence/display/CTAKES/cTAKES+4.0+Developer+Install+Guide#cTAKES4.
0DeveloperInstallGuide-Build):
$ rm -fr /tmp/ctakes-*
> $ exports MAVEN_OPTS='-Xms3072m -Xmx4g -Xss128M
> -XX:+CMSClassUnloadingEnabled -XX:-UseGCOverheadLimit
> -Dmaven.test.failure.ignore=false'
> $ mvn --fail-at-end --errors --update-snapshots clean install sonar:sonar
> -DskipTests=false -Dsonar.scm.provider=svn -Dsonar.host.url=https://builds
> .apache.org/analysis
I get the error
> [INFO] Apache cTAKES YTEX ................................. FAILURE
> [01:10 min]
> [INFO] Apache cTAKES YTEX UIMA ............................ SKIPPED
> [INFO] Apache cTAKES YTEX Web ............................. SKIPPED
> [INFO] Apache cTAKES Distribution ......................... SKIPPED
> [INFO] Apache cTAKES Regression-test ...................... SUCCESS [
> 26.852 s]
> [INFO] Apache cTAKES template filler 4.0.1-SNAPSHOT ....... SUCCESS [
> 0.659 s]
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------
> ------------
> [INFO] Total time: 13:36 min
> [INFO] Finished at: 2018-03-22T12:38:47-10:00
> [INFO] ------------------------------------------------------------
> ------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-failsafe-plugin:2.20.1:verify (default) on project ctakes-ytex:
> There are test failures.
> [ERROR]
> [ERROR] Please refer to /home/reedv/projects/ctakes/
> trunk/ctakes-ytex/target/failsafe-reports for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
> [date].dumpstream and [date]-jvmRun[N].dumpstream.
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-failsafe-plugin:2.20.1:verify
> (default) on project ctakes-ytex: There are test failures.
> Please refer to /home/reedv/projects/ctakes/trunk/ctakes-ytex/target/failsafe-reports
> for the individual test results.
> Please refer to dump files (if any exist) [date]-jvmRun[N].dump,
> [date].dumpstream and [date]-jvmRun[N].dumpstream.
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:213)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:154)
(could not determine a next course of action after visiting
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException).
Trying "$mvn clean install" did not seem to help either. Furthermore,
compiling the project with -DskipTests=true (to skip the problematic final
test) still resulted in the error that had supposedly been solved in
version 4.0.1 (https://issues.apache.org/jira/browse/CTAKES-442):
> ➜ trunk $ mvn --fail-at-end --errors --update-snapshots clean install
> sonar:sonar -DskipTests=true -Dsonar.scm.provider=svn -Dsonar.host.url=
> https://builds.apache.org/analysis
> ...
> BUILD SUCCESSFUL
> ...
> ➜ trunk $ unzip
> ctakes-distribution/target/apache-ctakes-4.0.1-SNAPSHOT-bin.zip -d ..
> ...
> extracting
> ...
> ➜ trunk cd ..
> ➜ ctakes cd apache-ctakes-4.0.1-SNAPSHOT
> ➜ apache-ctakes-4.0.1-SNAPSHOT ls
> bin config desc lib LICENSE NOTICE README RELEASE_NOTES.html
> resources
> ➜ apache-ctakes-4.0.1-SNAPSHOT ./bin/runPiperCreator.sh
> log4j: reset attribute= "false".
> log4j: Threshold ="null".
> log4j: Retreiving an instance of org.apache.log4j.Logger.
> log4j: Setting [ProgressAppender] additivity to [false].
> log4j: Level value for ProgressAppender is [INFO].
> log4j: ProgressAppender level set to INFO
> log4j: Class name: [org.apache.log4j.ConsoleAppender]
> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
> log4j: Setting property [conversionPattern] to [%m].
> log4j: Adding appender named [noEolAppender] to category
> [ProgressAppender].
> log4j: Retreiving an instance of org.apache.log4j.Logger.
> log4j: Setting [ProgressDone] additivity to [false].
> log4j: Level value for ProgressDone is [INFO].
> log4j: ProgressDone level set to INFO
> log4j: Class name: [org.apache.log4j.ConsoleAppender]
> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
> log4j: Setting property [conversionPattern] to [%m%n].
> log4j: Adding appender named [eolAppender] to category [ProgressDone].
> log4j: Level value for root is [INFO].
> log4j: root level set to INFO
> log4j: Class name: [org.apache.log4j.ConsoleAppender]
> log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
> log4j: Setting property [conversionPattern] to [%d{dd MMM yyyy HH:mm:ss}
> %5p %c{1} - %m%n].
> log4j: Adding appender named [consoleAppender] to category [root].
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at
> javax.swing.plaf.synth.SynthTableHeaderUI$HeaderRenderer.getTableCellRendererComponent(SynthTableHeaderUI.java:234)
> at
> org.apache.ctakes.gui.pipeline.MainPanel2.createWestPanel(MainPanel2.java:94)
> ...
Am I misinterpreting something here? Please advise, thank you.
*Extra details:*
➜ ~ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
➜ ~ javac -version
javac 1.8.0_161
➜ trunk echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
➜ ~ svn --version
svn, version 1.9.3 (r1718519)
compiled Aug 10 2017, 16:59:15 on x86_64-pc-linux-gnu
Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using
serf.
- using serf 1.3.8 (compiled with 1.3.8)
- handles 'http' scheme
- handles 'https' scheme
The following authentication credential caches are available:
* Plaintext cache in $HOME/.subversion
* Gnome Keyring
* GPG-Agent
* KWallet (KDE)
➜ ~ mvn -version
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
2018-02-24T09:49:05-10:00)
Maven home: $HOME/apache-maven-3.5.3
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.13.0-36-generic", arch: "amd64", family:
"unix"
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial