You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Laurie C (Jira)" <ji...@apache.org> on 2022/08/02 06:23:00 UTC
[jira] [Created] (SM-5252) poi bundle 5.2.2 needs dependency import org.xml.sax.ext
Laurie C created SM-5252:
----------------------------
Summary: poi bundle 5.2.2 needs dependency import org.xml.sax.ext
Key: SM-5252
URL: https://issues.apache.org/jira/browse/SM-5252
Project: ServiceMix
Issue Type: Bug
Components: bundles
Affects Versions: bundles-2022.07
Reporter: Laurie C
Attachments: stack trace.txt
I tried using servicemix poi 5.2.2_2 in karaf 4.4.1 running in open JDK 17.0.3+7-alpine-r2 in alpine docker, and got the following exception:
{code:java}
java.lang.ClassNotFoundException: org.xml.sax.ext.LexicalHandler not found by org.apache.servicemix.bundles.poi {code}
I attached the relevant part of the stack trace should that be of interest.
Locally patching the bundle like so let the bundle load and poi to parse the xlsx file:
{code:java}
diff --git a/poi-5.2.2/pom.xml b/poi-5.2.2/pom.xml
index 35c726643..92e6dd3d2 100644
--- a/poi-5.2.2/pom.xml
+++ b/poi-5.2.2/pom.xml
@@ -86,6 +86,7 @@
</servicemix.osgi.export.pkg>
<servicemix.osgi.import.pkg>
org.xml.sax*,
+ org.xml.sax.ext,
org.w3c.dom*,
javax.xml.*,
org.apache.xmlbeans.*,{code}
xref:
# SM-5183
--
This message was sent by Atlassian Jira
(v8.20.10#820010)