You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "macfa (Jira)" <ji...@apache.org> on 2022/08/23 07:42:00 UTC

[jira] [Commented] (SM-5252) poi bundle 5.2.2 needs dependency import org.xml.sax.ext

    [ https://issues.apache.org/jira/browse/SM-5252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583420#comment-17583420 ] 

macfa commented on SM-5252:
---------------------------

Hello [~jbonofre], what is the planned release date for the version containing this fix?

> 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
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: bundles-2022.08
>
>         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)