ava.lang.SecurityException: class "org.apache.poi.POIXMLDocumentPart"'s signer information does not match signer information of other classes in the same package

278 views
Skip to first unread message

larry google groups

unread,
Dec 11, 2016, 12:15:47 AM12/11/16
to Clojure
I've never worked much with Java, so dealing with stuff like Maven is the stuff I understand least about Clojure. 

I've added these 3 items to the dependencies that I list in project.clj


                 [org.apache.poi/poi "3.9"]               
                 [org.apache.poi/poi-ooxml "3.9"]
                 [org.eclipse.birt.runtime/org.eclipse.birt.runtime "4.2.2"]

When I run "lein uberjar" I get this: 

java.lang.SecurityException: class "org.apache.poi.POIXMLDocumentPart"'s signer information does not match signer information of other classes in the same package

How do I get around this?




larry google groups

unread,
Dec 11, 2016, 12:19:55 AM12/11/16
to Clojure
Not sure how to exclude an imported Java class?

lein deps :tree
Possibly confusing dependencies found:
[lein-checkall "0.1.1"] -> [jonase/eastwood "0.0.2"] -> [org.clojure/tools.namespace "0.1.2"]
 overrides
[lein-checkall "0.1.1"] -> [lein-kibit "0.0.8"] -> [jonase/kibit "0.0.8"] -> [org.clojure/tools.namespace "0.2.1"]
 and
[lein-checkall "0.1.1"] -> [lein-bikeshed "0.1.3"] -> [org.clojure/tools.namespace "0.2.3"]

Consider using these exclusions:
[lein-checkall "0.1.1" :exclusions [org.clojure/tools.namespace]]
[lein-checkall "0.1.1" :exclusions [org.clojure/tools.namespace]]

Retrieving org/clojure/tools.nrepl/0.2.12/tools.nrepl-0.2.12.pom from central
Retrieving clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.pom from clojars
Retrieving org/clojure/tools.nrepl/0.2.12/tools.nrepl-0.2.12.jar from central
Retrieving clojure-complete/clojure-complete/0.2.4/clojure-complete-0.2.4.jar from clojars
 [clj-stacktrace "0.2.7"]
 [clj-time "0.6.0"]
   [joda-time "2.2"]
 [clojure-complete "0.2.4" :exclusions [[org.clojure/clojure]]]
 [com.taoensso/timbre "4.3.1"]
   [com.taoensso/encore "2.36.2"]
     [com.taoensso/truss "1.1.1"]
     [org.clojure/tools.reader "0.10.0"]
   [io.aviso/pretty "0.1.23"]
 [dire "0.5.4"]
   [org.clojure/core.incubator "0.1.3"]
   [robert/hooke "1.3.0"]
 [expectations "2.0.9"]
   [junit "4.8.1"]
 [javax.xml.stream/stax-api "1.0-2"]
 [me.raynes/fs "1.4.4"]
   [org.apache.commons/commons-compress "1.4"]
     [org.tukaani/xz "1.0"]
 [org.apache.poi/poi-ooxml "3.9"]
   [dom4j "1.6.1"]
   [org.apache.poi/poi-ooxml-schemas "3.9"]
     [org.apache.xmlbeans/xmlbeans "2.3.0"]
       [stax/stax-api "1.0.1"]
 [org.apache.poi/poi "3.9"]
   [commons-codec "1.5"]
 [org.clojure/clojure "1.7.0"]
 [org.clojure/data.xml "0.1.0-beta1"]
 [org.clojure/test.check "0.9.0"]
 [org.clojure/tools.nrepl "0.2.12" :exclusions [[org.clojure/clojure]]]
 [org.eclipse.birt.runtime "4.2.2"]
   [commons-cli "1.0"]
     [commons-lang "1.0"]
     [commons-logging "1.0"]
   [milyn/flute "1.3"]
   [org.eclipse.birt.runtime.3_7_1/Tidy "1"]
   [org.eclipse.birt.runtime.3_7_1/com.lowagie.text "2.1.7"]
   [org.eclipse.birt.runtime.3_7_1/derby "10.5.1000001"]
   [org.eclipse.birt.runtime.3_7_1/javax.wsdl "1.5.1"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.bridge "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.css "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.dom.svg "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.dom "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.ext.awt "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.parser "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.pdf "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.svggen "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.transcoder "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.util.gui "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.util "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.batik.xml "1.6.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.commons.codec "1.3.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.xerces "2.9.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.xml.resolver "1.2.0"]
   [org.eclipse.birt.runtime.3_7_1/org.apache.xml.serializer "2.7.1"]
   [org.eclipse.birt.runtime.3_7_1/org.mozilla.javascript "1.7.2"]
   [org.eclipse.birt.runtime.3_7_1/org.w3c.css.sac "1.3.0"]
   [org.eclipse.birt.runtime.3_7_1/org.w3c.dom.smil "1.0.0"]
   [org.eclipse.birt.runtime.3_7_1/org.w3c.dom.svg "1.1.0"]
   [org.eclipse.birt.runtime/com.ibm.icu "4.4.2.v20110823"]
   [org.eclipse.birt.runtime/javax.xml.stream "1.0.1.v201004272200"]
   [org.eclipse.birt.runtime/org.apache.commons.logging "1.0.4.v201101211617"]
   [org.eclipse.birt.runtime/org.eclipse.core.contenttype "3.4.200.v20120523-2004"]
   [org.eclipse.birt.runtime/org.eclipse.core.expressions "3.4.401.v20120912-155018"]
   [org.eclipse.birt.runtime/org.eclipse.core.filesystem "1.3.200.v20130115-145044"]
   [org.eclipse.birt.runtime/org.eclipse.core.jobs "3.5.300.v20120912-155018"]
   [org.eclipse.birt.runtime/org.eclipse.core.resources "3.8.1.v20121114-124432"]
   [org.eclipse.birt.runtime/org.eclipse.core.runtime "3.8.0.v20120912-155025"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.apache.derby.dbdefinition "1.0.2.v201107221459"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.apache.derby "1.0.103.v201212070447"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.console.profile "1.0.10.v201109250955"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.db.generic "1.0.1.v201107221459"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.dbdefinition.genericJDBC "1.0.1.v201107221459"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.oda.consumer "3.2.5.v201109151100"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.oda.design "3.3.6.v201212070447"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.oda.flatfile "3.1.4.v201210260850"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.oda.profile "3.2.8.v201209080429"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.oda "3.3.4.v201212070447"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity.sqm.core "1.2.6.v201212070447"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.connectivity "1.2.7.v201302060508"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.hsqldb.dbdefinition "1.0.0.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.hsqldb "1.0.0.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition "1.0.4.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.ibm.db2.luw "1.0.2.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.ibm.informix.dbdefinition "1.0.4.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.ibm.informix "1.0.1.v201107221502"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition "1.0.1.v201201240505"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.msft.sqlserver "1.0.2.v201212120617"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.mysql.dbdefinition "1.0.4.v201109022331"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.mysql "1.0.4.v201212120617"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.oda.ws "1.2.4.v201203221631"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.oda.xml "1.2.4.v201301161136"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.oracle.dbdefinition "1.0.103.v201206010214"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.oracle "1.0.0.v201107221506"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.postgresql.dbdefinition "1.0.2.v201110070445"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.enablement.postgresql "1.1.1.v201205252207"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.modelbase.dbdefinition "1.0.2.v201107221519"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.modelbase.derby "1.0.0.v201107221519"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.modelbase.sql.query "1.1.4.v201212120619"]
   [org.eclipse.birt.runtime/org.eclipse.datatools.modelbase.sql "1.0.6.v201208230744"]
   [org.eclipse.birt.runtime/org.eclipse.emf.common "2.8.0.v20130125-0546"]
   [org.eclipse.birt.runtime/org.eclipse.emf.ecore.change "2.8.0.v20130125-0546"]
   [org.eclipse.birt.runtime/org.eclipse.emf.ecore.xmi "2.8.1.v20130125-0546"]
   [org.eclipse.birt.runtime/org.eclipse.emf.ecore "2.8.3.v20130125-0546"]
   [org.eclipse.birt.runtime/org.eclipse.emf "2.6.0.v20130125-0826"]
   [org.eclipse.birt.runtime/org.eclipse.equinox.app "1.3.100.v20120522-1841"]
   [org.eclipse.birt.runtime/org.eclipse.equinox.common "3.6.100.v20120522-1841"]
   [org.eclipse.birt.runtime/org.eclipse.equinox.preferences "3.5.1.v20121031-182809"]
   [org.eclipse.birt.runtime/org.eclipse.equinox.registry "3.5.200.v20120522-1841"]
   [org.eclipse.birt.runtime/org.eclipse.osgi.services "3.3.100.v20120522-1822"]
   [org.eclipse.birt.runtime/org.eclipse.osgi "3.8.2.v20130124-134944"]
   [org.eclipse.birt.runtime/org.eclipse.update.configurator "3.3.200.v20120912-144026"]
 [overtone/at-at "1.2.0"]
 [sax "2.0.1"]
 [slamhound "1.3.1"]
 [slingshot "0.12.2"]

Dusan

unread,
Dec 11, 2016, 5:08:51 AM12/11/16
to Clojure
Looks like poi-ooxml is a signed jar, so you can't include it in uberjar.
Just add the :uberjar-exclusions[#"^org.apache.poi"] in your project.clj and add the required poi jar files to the classpath when running the app

Matching Socks

unread,
Dec 11, 2016, 6:26:04 AM12/11/16
to Clojure

larry google groups

unread,
Dec 11, 2016, 11:14:56 AM12/11/16
to Clojure
Thank you. That is a bit frustrating but I guess that is the route I will go
Reply all
Reply to author
Forward
0 new messages