I'm trying to compile my project with SBT, but I get this error and can not figure out why:
YoBre$ sbt compile
[info] Loading project definition from /opt/virtualenvs/venv1/scala/name/project
[info] Set current project to name (in build file:/opt/virtualenvs/venv1/scala/name/)
[info] Compiling 4 Scala sources and 5 Java sources to /opt/virtualenvs/venv1/scala/name/target/scala-2.10/classes...
[error] error while loading CTP, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTP.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] error while loading CTTbl, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTTbl.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] error while loading CTTc, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTTc.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] three errors found
[error] (compile:compile) Compilation failed
[error] Total time: 6 s, completed 18-set-2013 12.31.36
This project contains code Java and Scala. The error occurred when I translated into Scala a feature related to the splitting of the word documents that was previously written in java. The error is in fact tied to a jar file library org.apache.poi.
I tried to document but I have not found similar cases.
Any idea?
thanks