New user. Tried editing
ctakes-gui/src/main/java/org/apache/ctakes/gui/pipeline/MainPanel2.java
to look into potential bug that was supposedly resolved in
https://issues.apache.org/jira/browse/CTAKES-442 but appears to still be
causing error...
> 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)
>
>
in version 4.0.1. Yet when changing the code snippet to...
>
>
private JComponent createWestPanel() {
final JTable fakeTable = new JTable();
LOGGER.info( "** DEBUG: fakeTable: " + fakeTable );
LOGGER.info( "** DEBUG: fakeTable: " + fakeTable );
final JTableHeader fakeHeader = fakeTable.getTableHeader();
LOGGER.info( "** DEBUG: fakeHeader: " + fakeHeader );
final Component header = fakeHeader.getDefaultRenderer()
.getTableCellRendererComponent( fakeTable,
>
> "Available Pipe Bits", false, false, -1, -1 );
>
trying to build with...
>
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
>
and extracting the binaries via...
➜ trunk cp
> ctakes-distribution/target/apache-ctakes-4.0.1-SNAPSHOT-bin.tar.gz
> ctakes-distribution/target/apache-ctakes-4.0.1-SNAPSHOT-bin.tar.gz.md5 ../
>
>
(by the way, I explicitly show the steps I took only because I have never
worked on a maven project before so giving a chance for someone to point
out if I'm doing something wrong here), yet still seeing error
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)
>
Notice it states the error is on line 94 as if the change that I
implemented is not actually affecting the code that is being used (yet
running
>
➜ trunk find . -name 'MainPanel2.java'
>
./ctakes-gui/src/main/java/org/apache/ctakes/gui/pipeline/MainPanel2.java
>
>
in the trunk directory shows that this is the only place that that file
exists).
Am I missing something here (never worked on a maven project before, so I'm
thinking that I may not be changing the right file here)? How can I change
the code so that it actually gets used in the compiled binaries? Thanks