tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Annie Burgess <anniebry...@gmail.com>
Subject Fwd: unit test error for new parser
Date Tue, 03 Jun 2014 22:07:09 GMT
Hi dev group,

I've put together a new parser for Matlab (.mat) files.  I successfully
compile and execute the new parser at the command line as:

javac -classpath

java -classpath
org.apache.tika.cli.TikaCLI --metadata

However, I've written a unit test for the new parser and have come to a

The new parser uses a 3rd party jar, JmatIO, file available on Maven
Central (
), which I have included as a dependency in the tika-parsers/pom.xml with
the following:


When I run the unit test in maven, maven seems to be able to find the
appropriate class files from the 3rd party jar, i.e. I don't get any
"missing package" or "can't find symbol' errors from the 'import'
commands:  import com.jmatio.io.MatFileHeader;  However, the test fails
when the first instance of one of the JmatIO classes is called within the

Are there some steps I'm missing when integrating a third party jar in a
unit test?

I have attached the new parser and the parser test.

Please let me know if any other information would be useful.



abryant:tika-parsers abryant$ mvn -Dtest=MatParserTest compile

[INFO] Building Apache Tika parsers 1.6-SNAPSHOT
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
tika-parsers ---
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
tika-parsers ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] Copying 3 resources
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
tika-parsers ---
[INFO] Compiling 1 source file to
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
cannot find symbol
symbol  : constructor
location: class com.jmatio.io.MatFileReader
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] Total time: 5.213s
[INFO] Finished at: Tue Jun 03 12:54:15 AKDT 2014
[INFO] Final Memory: 16M/81M
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]

Ann Bryant Burgess, PhD

Postdoctoral Fellow
Computer Science Department
University of Southern California
Viterbi School of Engineering
Los Angeles, CA

Alaska Science Center/USGS
Anchorage, AK

Cell:  (585) 738-7549
Office:  (907) 786-7059
Fax:  (907) 786-7150
E-mail: anniebryant.burgess@gmail.com
Office Address: 4210 University Dr., Anchorage, AK 99508-4626

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message